vagrant-dotvm 0.26.0 → 0.27.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 761d7388cc8c79acef4962bb3612bcdc4d2d703c
4
- data.tar.gz: 83c59133a04e3911572ac52be423c53851259543
3
+ metadata.gz: a3741c33af778361df094226b8ee04095478677e
4
+ data.tar.gz: 070ffb7649d83eb279de16ef5da589b7fb89b2a3
5
5
  SHA512:
6
- metadata.gz: 93aa6bf24bdd66d1b7bbfd4fc107447653bc190dbf119f8dbe5c9684c41e33425a29620b1fac336298732ac1725e2f3aa8d677d67aea2ab5785c5974ac3ddcd4
7
- data.tar.gz: 3791e5d01a3589572f58e6be652a652937da623558d19a718cc6559c5572ac0f3c4b2683ea37dcd1d2865aecd636324add9855b1b2b41537664448432078f93b
6
+ metadata.gz: e6d9a977df0c577e91d401bbe766f2672cbc67e53f13843f3448422e28ba1560e4c911e056bf1b4ac4766eabf28ca12dd6fb74bab0d88bcd46a5fc53a3b0ca0d
7
+ data.tar.gz: be493b14ed0e792ec75182a336a587e6fc50cfa3bf8b5cb7eaddcab6af477d70ab30a5dd4faf5c4a36cc1df206fa4346ef6048c66bb0c31006ffdcf5d1bfa742
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 0.27.0
2
+ * CFEngine provision
3
+
1
4
  # 0.26.0
2
5
  * Do validation of types in config
3
6
  * vCPUs and memory options are not passed to VMWare Fusion
@@ -3,7 +3,7 @@ module VagrantPlugins
3
3
  module Config
4
4
  class Machine < AbstractConfig
5
5
  attr_accessor :nick
6
- attr_accessor :name
6
+ attr_accessor :hostname # name
7
7
  attr_accessor :box
8
8
  attr_accessor :memory
9
9
  attr_accessor :cpus
@@ -61,6 +61,10 @@ module VagrantPlugins
61
61
  )
62
62
  end
63
63
 
64
+ def name=(value)
65
+ @hostname = value
66
+ end
67
+
64
68
  def usable_port_range=(value)
65
69
  m = value.scan(/^(\d+)\.\.(\d+)$/)
66
70
  raise "Invalid usable_port_range, it must be in A..B format." if m.length == 0
@@ -5,8 +5,8 @@ module VagrantPlugins
5
5
  attr_reader :net
6
6
  attr_accessor :type
7
7
  attr_accessor :ip
8
- attr_accessor :mask # netmask
9
- attr_accessor :interface
8
+ attr_accessor :netmask # mask
9
+ attr_accessor :virtualbox__intnet # interface
10
10
  attr_accessor :guest
11
11
  attr_accessor :host
12
12
  attr_accessor :protocol
@@ -33,8 +33,12 @@ module VagrantPlugins
33
33
  @net = nets[value]
34
34
  end
35
35
 
36
- def netmask=(value)
37
- @mask = value
36
+ def mask=(value)
37
+ @netmask = value
38
+ end
39
+
40
+ def interface=(value)
41
+ @virtualbox__intnet = value
38
42
  end
39
43
  end
40
44
  end
@@ -58,6 +58,23 @@ module VagrantPlugins
58
58
  attr_accessor :orchestrations
59
59
  attr_accessor :colorize
60
60
  attr_accessor :log_level
61
+ attr_accessor :am_policy_hub
62
+ attr_accessor :am_policy_hub
63
+ attr_accessor :extra_agent_args
64
+ attr_accessor :classes
65
+ attr_accessor :deb_repo_file
66
+ attr_accessor :deb_repo_line
67
+ attr_accessor :files_path
68
+ attr_accessor :force_bootstrap
69
+ attr_accessor :install
70
+ attr_accessor :mode
71
+ attr_accessor :policy_server_address
72
+ attr_accessor :repo_gpg_key_url
73
+ attr_accessor :run_file
74
+ attr_accessor :upload_path
75
+ attr_accessor :yum_repo_file
76
+ attr_accessor :yum_repo_url
77
+ attr_accessor :package_name
61
78
  end
62
79
  end
63
80
  end
@@ -22,24 +22,15 @@ module VagrantPlugins
22
22
  define_opts[:autostart] = machine_cfg.autostart unless machine_cfg.autostart.nil?
23
23
 
24
24
  vc.vm.define machine_cfg.nick, **define_opts do |machine|
25
- machine.vm.box = machine_cfg.box unless machine_cfg.box.nil?
26
- machine.vm.hostname = machine_cfg.name unless machine_cfg.name.nil?
27
- machine.vm.boot_timeout = machine_cfg.boot_timeout unless machine_cfg.boot_timeout.nil?
28
- machine.vm.box_check_update = machine_cfg.box_check_update unless machine_cfg.box_check_update.nil?
29
- machine.vm.box_version = machine_cfg.box_version unless machine_cfg.box_version.nil?
30
- machine.vm.graceful_halt_timeout = machine_cfg.graceful_halt_timeout unless machine_cfg.graceful_halt_timeout.nil?
31
- machine.vm.post_up_message = machine_cfg.post_up_message unless machine_cfg.post_up_message.nil?
32
- machine.vm.box_download_checksum = machine_cfg.box_download_checksum unless machine_cfg.box_download_checksum.nil?
33
- machine.vm.box_download_checksum_type = machine_cfg.box_download_checksum_type unless machine_cfg.box_download_checksum_type.nil?
34
- machine.vm.box_download_client_cert = machine_cfg.box_download_client_cert unless machine_cfg.box_download_client_cert.nil?
35
- machine.vm.box_download_ca_cert = machine_cfg.box_download_ca_cert unless machine_cfg.box_download_ca_cert.nil?
36
- machine.vm.box_download_ca_path = machine_cfg.box_download_ca_path unless machine_cfg.box_download_ca_path.nil?
37
- machine.vm.box_download_insecure = machine_cfg.box_download_insecure unless machine_cfg.box_download_insecure.nil?
38
- machine.vm.box_download_location_trusted = machine_cfg.box_download_location_trusted unless machine_cfg.box_download_location_trusted.nil?
39
- machine.vm.box_url = machine_cfg.box_url unless machine_cfg.box_url.nil?
40
- machine.vm.communicator = machine_cfg.communicator unless machine_cfg.communicator.nil?
41
- machine.vm.guest = machine_cfg.guest unless machine_cfg.guest.nil?
42
- machine.vm.usable_port_range = machine_cfg.usable_port_range unless machine_cfg.usable_port_range.nil?
25
+ [
26
+ :box, :hostname, :boot_timeout, :box_check_update, :box_version, :graceful_halt_timeout, :post_up_message,
27
+ :box_download_checksum, :box_download_checksum_type, :box_download_client_cert, :box_download_ca_cert,
28
+ :box_download_ca_path, :box_download_insecure, :box_download_location_trusted, :box_url, :communicator,
29
+ :guest, :usable_port_range
30
+ ].each do |opt|
31
+ val = machine_cfg.send(opt)
32
+ machine.vm.send("#{opt}=", val) unless val.nil?
33
+ end
43
34
 
44
35
  machine.vm.provider "virtualbox" do |vb|
45
36
  vb.customize ["modifyvm", :id, "--memory", machine_cfg.memory] unless machine_cfg.memory.nil?
@@ -59,18 +50,14 @@ module VagrantPlugins
59
50
 
60
51
  machine_cfg.networks.each do |net|
61
52
  hash = {}
62
- hash[:type] = net.type unless net.type.nil?
63
- hash[:ip] = net.ip unless net.ip.nil?
64
- hash[:netmask] = net.mask unless net.mask.nil?
65
- hash[:virtualbox__intnet] = net.interface unless net.interface.nil?
66
- hash[:guest] = net.guest unless net.guest.nil?
67
- hash[:host] = net.host unless net.host.nil?
68
- hash[:protocol] = net.protocol unless net.protocol.nil?
69
- hash[:bridge] = net.bridge unless net.bridge.nil?
70
- hash[:guest_ip] = net.guest_ip unless net.guest_ip.nil?
71
- hash[:host_ip] = net.host_ip unless net.host_ip.nil?
72
- hash[:auto_correct] = net.auto_correct unless net.auto_correct.nil?
73
- hash[:auto_config] = net.auto_config unless net.auto_config.nil?
53
+
54
+ [
55
+ :type, :ip, :netmask, :virtualbox__intnet, :guest, :host, :protocol, :bridge,
56
+ :guest_ip, :host_ip, :auto_correct, :auto_config,
57
+ ].each do |opt|
58
+ val = net.send(opt)
59
+ hash[opt] = val unless val.nil?
60
+ end
74
61
 
75
62
  machine.vm.network net.net, **hash
76
63
  end
@@ -102,7 +89,10 @@ module VagrantPlugins
102
89
  :install_syndic, :install_type, :install_args, :install_command, :always_install, :bootstrap_script,
103
90
  :bootstrap_options, :version, :minion_key, :minion_id, :minion_pub, :grains_config, :masterless,
104
91
  :master_config, :master_key, :master_pub, :seed_master, :run_highstate, :run_overstate,
105
- :orchestrations, :colorize, :log_level,
92
+ :orchestrations, :colorize, :log_level, :am_policy_hub, :extra_agent_args, :classes,
93
+ :deb_repo_file, :deb_repo_line, :files_path, :force_bootstrap, :install, :mode,
94
+ :policy_server_address, :repo_gpg_key_url, :run_file, :upload_path, :yum_repo_file,
95
+ :yum_repo_url, :package_name,
106
96
  ].each do |opt|
107
97
  val = provision.send(opt)
108
98
  p.send("#{opt}=", val) unless val.nil?
@@ -112,24 +102,15 @@ module VagrantPlugins
112
102
 
113
103
  machine_cfg.shared_folders.each do |folder|
114
104
  hash = {}
115
- hash[:disabled] = folder.disabled unless folder.disabled.nil?
116
- hash[:create] = folder.create unless folder.create.nil?
117
- hash[:type] = folder.type unless folder.type.nil?
118
- hash[:group] = folder.group unless folder.group.nil?
119
- hash[:mount_options] = folder.mount_options unless folder.mount_options.nil?
120
- hash[:owner] = folder.owner unless folder.owner.nil?
121
- hash[:nfs_export] = folder.nfs_export unless folder.nfs_export.nil?
122
- hash[:nfs_udp] = folder.nfs_udp unless folder.nfs_udp.nil?
123
- hash[:nfs_version] = folder.nfs_version unless folder.nfs_version.nil?
124
- hash[:rsync__args] = folder.rsync__args unless folder.rsync__args.nil?
125
- hash[:rsync__auto] = folder.rsync__auto unless folder.rsync__auto.nil?
126
- hash[:rsync__chown] = folder.rsync__chown unless folder.rsync__chown.nil?
127
- hash[:rsync__exclude] = folder.rsync__exclude unless folder.rsync__exclude.nil?
128
- hash[:rsync__rsync_path] = folder.rsync__rsync_path unless folder.rsync__rsync_path.nil?
129
- hash[:rsync__verbose] = folder.rsync__verbose unless folder.rsync__verbose.nil?
130
- hash[:smb_host] = folder.smb_host unless folder.smb_host.nil?
131
- hash[:smb_password] = folder.smb_password unless folder.smb_password.nil?
132
- hash[:smb_username] = folder.smb_username unless folder.smb_username.nil?
105
+
106
+ [
107
+ :disabled, :create, :type, :group, :mount_options, :owner, :nfs_export, :nfs_udp, :nfs_version,
108
+ :rsync__args, :rsync__auto, :rsync__chown, :rsync__exclude, :rsync__rsync_path, :rsync__verbose,
109
+ :smb_host, :smb_password, :smb_username
110
+ ].each do |opt|
111
+ val = folder.send(opt)
112
+ hash[opt] = val unless val.nil?
113
+ end
133
114
 
134
115
  machine.vm.synced_folder folder.host, folder.guest, **hash
135
116
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Dotvm
3
- VERSION = "0.26.0"
3
+ VERSION = "0.27.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-dotvm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.0
4
+ version: 0.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Magosa