Class: VagrantPlugins::ProviderZone::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-zones/config.rb

Overview

This is used define the variables for the project

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

rubocop:enable Layout/LineLength



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/vagrant-zones/config.rb', line 14

def initialize
  super
  @brand = 'bhyve'
  @additional_disks = UNSET_VALUE
  @autoboot = true
  @post_provision_boot = false
  @kernel = nil
  @boxshortname = UNSET_VALUE
  @cdroms = nil
  @shared_dir = nil
  @os_type = 'generic'
  @lcheck = UNSET_VALUE
  @booted_string = UNSET_VALUE
  @winbooted_string = UNSET_VALUE
  @allowed_address = true
  @alcheck = 'login: '
  @winalcheck = 'EVENT: The CMD command is now available.'
  @winlcheck = 'EVENT: The CMD command is now available.'
  @zunlockbootkey = ''
  @zunlockboot = 'Importing ZFS root pool'
  @safe_restart = nil
  @safe_shutdown = nil
  @debug_boot = nil
  @debug = nil
  @shared_disk_enabled = true
  @consoleport = nil
  @consolehost = '0.0.0.0'
  @console_onboot = 'false'
  @console = 'webvnc'
  @memory = '2G'
  @diskif = 'virtio-blk'
  @netif = 'virtio-net-viona'
  @cpus = 1
  @cpu_configuration = 'simple'
  @complex_cpu_conf = UNSET_VALUE
  @boot = UNSET_VALUE
  @hostbridge = 'i440fx'
  @acpi = 'on'
  @setup_wait = 90
  @on_demand_vnics = 'true'
  @box = UNSET_VALUE
  @clean_shutdown_time = 300
  @vmtype = 'production'
  @partition_id = '0000'
  @sshport = '22'
  @rdpport = '3389'
  @vagrant_user = 'vagrant'
  @vagrant_user_pass = 'vagrant'
  @vagrant_user_private_key_path = './id_rsa'
  @xhci_enabled = 'off'
  @override = false
  @login_wait = 5
  @cloud_init_enabled = false
  @cloud_init_conf = 'on'
  @cloud_init_dnsdomain = nil
  @cloud_init_password = nil
  @cloud_init_resolvers = nil
  @cloud_init_sshkey = nil
  @private_network = nil
  @firmware_type = 'compatability'
  @vm_type = 'production'
  @setup_method = nil
  @snapshot_script = '/opt/vagrant/bin/Snapshooter.sh'
end

Instance Attribute Details

#acpiObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def acpi
  @acpi
end

#additional_disksObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def additional_disks
  @additional_disks
end

#alcheckObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def alcheck
  @alcheck
end

#allowed_addressObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def allowed_address
  @allowed_address
end

#autobootObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def autoboot
  @autoboot
end

#bootObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def boot
  @boot
end

#booted_stringObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def booted_string
  @booted_string
end

#boxObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def box
  @box
end

#boxshortnameObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def boxshortname
  @boxshortname
end

#brandObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def brand
  @brand
end

#cdromsObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def cdroms
  @cdroms
end

#clean_shutdown_timeObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def clean_shutdown_time
  @clean_shutdown_time
end

#cloud_init_confObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def cloud_init_conf
  @cloud_init_conf
end

#cloud_init_dnsdomainObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def cloud_init_dnsdomain
  @cloud_init_dnsdomain
end

#cloud_init_enabledObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def cloud_init_enabled
  @cloud_init_enabled
end

#cloud_init_passwordObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def cloud_init_password
  @cloud_init_password
end

#cloud_init_resolversObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def cloud_init_resolvers
  @cloud_init_resolvers
end

#cloud_init_sshkeyObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def cloud_init_sshkey
  @cloud_init_sshkey
end

#complex_cpu_confObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def complex_cpu_conf
  @complex_cpu_conf
end

#consoleObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def console
  @console
end

#console_onbootObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def console_onboot
  @console_onboot
end

#consolehostObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def consolehost
  @consolehost
end

#consoleportObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def consoleport
  @consoleport
end

#cpu_configurationObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def cpu_configuration
  @cpu_configuration
end

#cpusObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def cpus
  @cpus
end

#debugObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def debug
  @debug
end

#debug_bootObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def debug_boot
  @debug_boot
end

#dhcp4Object

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def dhcp4
  @dhcp4
end

#disk1pathObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def disk1path
  @disk1path
end

#disk1sizeObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def disk1size
  @disk1size
end

#diskifObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def diskif
  @diskif
end

#dnsObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def dns
  @dns
end

#firmware_typeObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def firmware_type
  @firmware_type
end

#hostbridgeObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def hostbridge
  @hostbridge
end

#kernelObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def kernel
  @kernel
end

#lcheckObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def lcheck
  @lcheck
end

#login_waitObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def 
  @login_wait
end

#memoryObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def memory
  @memory
end

#netifObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def netif
  @netif
end

#on_demand_vnicsObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def on_demand_vnics
  @on_demand_vnics
end

#os_typeObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def os_type
  @os_type
end

#overrideObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def override
  @override
end

#partition_idObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def partition_id
  @partition_id
end

#post_provision_bootObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def post_provision_boot
  @post_provision_boot
end

#private_networkObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def private_network
  @private_network
end

#rdpportObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def rdpport
  @rdpport
end

#safe_restartObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def safe_restart
  @safe_restart
end

#safe_shutdownObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def safe_shutdown
  @safe_shutdown
end

#setup_methodObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def setup_method
  @setup_method
end

#setup_waitObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def setup_wait
  @setup_wait
end

#shared_dirObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def shared_dir
  @shared_dir
end

#shared_disk_enabledObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def shared_disk_enabled
  @shared_disk_enabled
end

#snapshot_scriptObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def snapshot_script
  @snapshot_script
end

#sshportObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def sshport
  @sshport
end

#vagrant_cloud_creatorObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def vagrant_cloud_creator
  @vagrant_cloud_creator
end

#vagrant_userObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def vagrant_user
  @vagrant_user
end

#vagrant_user_passObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def vagrant_user_pass
  @vagrant_user_pass
end

#vagrant_user_private_key_pathObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def vagrant_user_private_key_path
  @vagrant_user_private_key_path
end

#vm_typeObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def vm_type
  @vm_type
end

#winalcheckObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def winalcheck
  @winalcheck
end

#winbooted_stringObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def winbooted_string
  @winbooted_string
end

#winlcheckObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def winlcheck
  @winlcheck
end

#xhci_enabledObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def xhci_enabled
  @xhci_enabled
end

#zunlockbootObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def zunlockboot
  @zunlockboot
end

#zunlockbootkeyObject

rubocop:disable Layout/LineLength



10
11
12
# File 'lib/vagrant-zones/config.rb', line 10

def zunlockbootkey
  @zunlockbootkey
end