vagrant-invade 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -0
- data/lib/vagrant-invade/module/provision/provision.rb +0 -1
- data/lib/vagrant-invade/module/provision/salt/rules.yml +26 -0
- data/lib/vagrant-invade/module/provision/salt/salt.rb +14 -0
- data/lib/vagrant-invade/module/provision/salt/template.erb +21 -8
- data/lib/vagrant-invade/module/provision/shell/rules.yml +21 -0
- data/lib/vagrant-invade/module/provision/shell/shell.rb +1 -6
- data/lib/vagrant-invade/module/provision/shell/template.erb +8 -1
- data/lib/vagrant-invade/module/vagrant/machine/template.erb +2 -1
- data/lib/vagrant-invade/module/vagrant/vagrantfile/template.erb +1 -1
- data/lib/vagrant-invade/version.rb +1 -1
- metadata +2 -5
- data/lib/vagrant-invade/module/provision/shell_inline/rules.yml +0 -12
- data/lib/vagrant-invade/module/provision/shell_inline/shell_inline.rb +0 -42
- data/lib/vagrant-invade/module/provision/shell_inline/template.erb +0 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a4c1bea715489a8245c212a230950d76a5edf15b
|
|
4
|
+
data.tar.gz: fe03ae6e9a1f448de2aa9f8d5c64161914f00151
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: abd4f07f368386344eebb666843bab9cdb7cf109782bb5496d13c545f0ea40fd21a08a4adf36c83e7f0f9b2c5265b0fd3a2b70fb0b8b32026ce362c7a6b555ed
|
|
7
|
+
data.tar.gz: 6a91d43bbc87cf42e56b3ecef57cba45baaedadab1103f64e429c36a8354eddc3f962fae9912a01839b501fb1df0b98d02282195cd74cb61ca5aa86088196f0d
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -4,7 +4,6 @@ module VagrantPlugins
|
|
|
4
4
|
module Provision
|
|
5
5
|
|
|
6
6
|
autoload :Shell, 'vagrant-invade/module/provision/shell/shell'
|
|
7
|
-
autoload :ShellInline, 'vagrant-invade/module/provision/shell_inline/shell_inline'
|
|
8
7
|
autoload :PuppetApply, 'vagrant-invade/module/provision/puppet_apply/puppet_apply'
|
|
9
8
|
autoload :PuppetAgent, 'vagrant-invade/module/provision/puppet_agent/puppet_agent'
|
|
10
9
|
autoload :Salt, 'vagrant-invade/module/provision/salt/salt'
|
|
@@ -61,4 +61,30 @@ master_pub:
|
|
|
61
61
|
default: nil
|
|
62
62
|
seed_master:
|
|
63
63
|
type: String
|
|
64
|
+
default: nil
|
|
65
|
+
|
|
66
|
+
# EXECUTE STATS
|
|
67
|
+
run_highstate:
|
|
68
|
+
type: Boolean
|
|
69
|
+
default: nil
|
|
70
|
+
|
|
71
|
+
# EXCECUTE RUNNERS
|
|
72
|
+
run_overstate:
|
|
73
|
+
type: Boolean
|
|
74
|
+
default: nil
|
|
75
|
+
orchestration:
|
|
76
|
+
type: Array
|
|
77
|
+
default: nil
|
|
78
|
+
|
|
79
|
+
# OUTPUT CONTROL
|
|
80
|
+
colorize:
|
|
81
|
+
type: Boolean
|
|
82
|
+
default: true
|
|
83
|
+
log_level:
|
|
84
|
+
type: String
|
|
85
|
+
default: 'debug'
|
|
86
|
+
|
|
87
|
+
# PILLAR DATA
|
|
88
|
+
pillar:
|
|
89
|
+
type: Hash
|
|
64
90
|
default: nil
|
|
@@ -47,6 +47,20 @@ module VagrantPlugins
|
|
|
47
47
|
master_pub = @salt_data['master_pub']
|
|
48
48
|
seed_master = @salt_data['seed_master']
|
|
49
49
|
|
|
50
|
+
# EXECUTE STATS
|
|
51
|
+
run_highstate = @salt_data['run_highstate']
|
|
52
|
+
|
|
53
|
+
# EXCECUTE RUNNERS
|
|
54
|
+
run_overstate = @salt_data['run_overstate']
|
|
55
|
+
orchestration = @salt_data['orchestration']
|
|
56
|
+
|
|
57
|
+
# OUTPUT CONTROL
|
|
58
|
+
colorize = @salt_data['colorize']
|
|
59
|
+
log_level = @salt_data['log_level']
|
|
60
|
+
|
|
61
|
+
# PILLAR DATA
|
|
62
|
+
pillar = @salt_data['pillar']
|
|
63
|
+
|
|
50
64
|
eruby = Erubis::Eruby.new(File.read(self.get_template_path(__FILE__)))
|
|
51
65
|
@result = eruby.result b
|
|
52
66
|
rescue TypeError, SyntaxError, SystemCallError => e
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
|
|
2
1
|
<%= machine_name %>.vm.provision :salt do |salt|
|
|
3
2
|
<% if install_master %>
|
|
4
|
-
# -- INSTALL OPTIONS -- #
|
|
5
3
|
salt.install_master = <%= install_master %>
|
|
6
4
|
<% end %>
|
|
7
5
|
<% if no_minion %>
|
|
8
6
|
salt.no_minion = <%= no_minion %>
|
|
9
7
|
<% end %>
|
|
10
|
-
<% if
|
|
11
|
-
salt.
|
|
8
|
+
<% if install_syncdir %>
|
|
9
|
+
salt.install_syncdir = <%= install_syncdir %>
|
|
12
10
|
<% end %>
|
|
13
11
|
<% if install_type %>
|
|
14
|
-
salt.install_type = <%= install_type %>
|
|
12
|
+
salt.install_type = '<%= install_type %>'
|
|
15
13
|
<% end %>
|
|
16
14
|
<% if install_args %>
|
|
17
15
|
salt.install_args = '<%= install_args %>'
|
|
@@ -29,7 +27,6 @@
|
|
|
29
27
|
salt.version = '<%= version %>'
|
|
30
28
|
<% end %>
|
|
31
29
|
<% if minion_config %>
|
|
32
|
-
# -- MINION OPTIONS -- #
|
|
33
30
|
salt.minion_config = '<%= minion_config %>'
|
|
34
31
|
<% end %>
|
|
35
32
|
<% if minion_key %>
|
|
@@ -51,7 +48,6 @@
|
|
|
51
48
|
salt.minion_pub = '<%= minion_pub %>'
|
|
52
49
|
<% end %>
|
|
53
50
|
<% if master_config %>
|
|
54
|
-
# -- MASTER OPTIONS -- #
|
|
55
51
|
salt.master_config = '<%= master_config %>'
|
|
56
52
|
<% end %>
|
|
57
53
|
<% if master_key %>
|
|
@@ -63,5 +59,22 @@
|
|
|
63
59
|
<% if seed_master %>
|
|
64
60
|
salt.seed_master = '<%= seed_master %>'
|
|
65
61
|
<% end %>
|
|
66
|
-
|
|
62
|
+
<% if run_highstate %>
|
|
63
|
+
salt.run_highstate = <%= run_highstate %>
|
|
64
|
+
<% end %>
|
|
65
|
+
<% if run_overstate %>
|
|
66
|
+
salt.run_overstate = <%= run_overstate %>
|
|
67
|
+
<% end %>
|
|
68
|
+
<% if orchestration %>
|
|
69
|
+
salt.orchestration = <%= orchestration %>
|
|
70
|
+
<% end %>
|
|
71
|
+
<% if colorize %>
|
|
72
|
+
salt.colorize = <%= colorize %>
|
|
73
|
+
<% end %>
|
|
74
|
+
<% if log_level %>
|
|
75
|
+
salt.log_level = '<%= log_level %>'
|
|
76
|
+
<% end %>
|
|
77
|
+
<% if pillar %>
|
|
78
|
+
salt.pillar = <%= pillar %>
|
|
79
|
+
<% end %>
|
|
67
80
|
end
|
|
@@ -4,9 +4,30 @@ name:
|
|
|
4
4
|
path:
|
|
5
5
|
type: String
|
|
6
6
|
default: nil
|
|
7
|
+
inline:
|
|
8
|
+
type: String
|
|
9
|
+
default: nil
|
|
10
|
+
args:
|
|
11
|
+
type: StringOrArray
|
|
12
|
+
default: nil
|
|
13
|
+
env:
|
|
14
|
+
type: Hash
|
|
15
|
+
default: nil
|
|
7
16
|
binary:
|
|
8
17
|
type: Boolean
|
|
9
18
|
default: nil
|
|
10
19
|
privileged:
|
|
11
20
|
type: Boolean
|
|
12
21
|
default: nil
|
|
22
|
+
upload_path:
|
|
23
|
+
type: String
|
|
24
|
+
default: nil
|
|
25
|
+
keep_color:
|
|
26
|
+
type: Boolean
|
|
27
|
+
default: nil
|
|
28
|
+
powershell_args:
|
|
29
|
+
type: String
|
|
30
|
+
default: nil
|
|
31
|
+
powershell_elevated_interactive:
|
|
32
|
+
type: Boolean
|
|
33
|
+
default: nil
|
|
@@ -21,12 +21,7 @@ module VagrantPlugins
|
|
|
21
21
|
|
|
22
22
|
# Get machine name
|
|
23
23
|
machine_name = @machine_name
|
|
24
|
-
|
|
25
|
-
# Values for shell provision section
|
|
26
|
-
name = @shell_data['name']
|
|
27
|
-
path = @shell_data['path']
|
|
28
|
-
binary = @shell_data['binary']
|
|
29
|
-
privileged = @shell_data['privileged']
|
|
24
|
+
data = @shell_data
|
|
30
25
|
|
|
31
26
|
eruby = Erubis::Eruby.new(File.read(self.get_template_path(__FILE__)))
|
|
32
27
|
@result = eruby.result b
|
|
@@ -1 +1,8 @@
|
|
|
1
|
-
<%= machine_name %>.vm.provision "shell",
|
|
1
|
+
<%= machine_name %>.vm.provision "shell",
|
|
2
|
+
<% data.each_with_index do |(k, v), index| %>
|
|
3
|
+
<% if k['args'] %>
|
|
4
|
+
<%= k %>: <%= v %><% unless index == data.size - 1 %>,<% end %>
|
|
5
|
+
<% else %>
|
|
6
|
+
<%= k %>: '<%= v %>'<% unless index == data.size - 1 %>,<% end %>
|
|
7
|
+
<% end %>
|
|
8
|
+
<% end %>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vagrant-invade
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lennart Stein
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-11-
|
|
11
|
+
date: 2016-11-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -126,9 +126,6 @@ files:
|
|
|
126
126
|
- lib/vagrant-invade/module/provision/shell/rules.yml
|
|
127
127
|
- lib/vagrant-invade/module/provision/shell/shell.rb
|
|
128
128
|
- lib/vagrant-invade/module/provision/shell/template.erb
|
|
129
|
-
- lib/vagrant-invade/module/provision/shell_inline/rules.yml
|
|
130
|
-
- lib/vagrant-invade/module/provision/shell_inline/shell_inline.rb
|
|
131
|
-
- lib/vagrant-invade/module/provision/shell_inline/template.erb
|
|
132
129
|
- lib/vagrant-invade/module/ssh/rules.yml
|
|
133
130
|
- lib/vagrant-invade/module/ssh/ssh.rb
|
|
134
131
|
- lib/vagrant-invade/module/ssh/template.erb
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
module VagrantPlugins
|
|
2
|
-
module Invade
|
|
3
|
-
module InvadeModule
|
|
4
|
-
module Provision
|
|
5
|
-
|
|
6
|
-
class ShellInline < InvadeModule
|
|
7
|
-
|
|
8
|
-
attr_reader :result
|
|
9
|
-
attr_accessor :machine_name, :shell_inline_data
|
|
10
|
-
|
|
11
|
-
def initialize(machine_name, shell_inline_data, result: nil)
|
|
12
|
-
@machine_name = machine_name
|
|
13
|
-
@shell_inline_data = shell_inline_data
|
|
14
|
-
@result = result
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
def build
|
|
18
|
-
b = binding
|
|
19
|
-
|
|
20
|
-
begin
|
|
21
|
-
|
|
22
|
-
# Get machine name
|
|
23
|
-
machine_name = @machine_name
|
|
24
|
-
|
|
25
|
-
# Values for shell provision section
|
|
26
|
-
name = @shell_inline_data['name']
|
|
27
|
-
inline = @shell_inline_data['inline']
|
|
28
|
-
binary = @shell_inline_data['binary']
|
|
29
|
-
privileged = @shell_inline_data['privileged']
|
|
30
|
-
|
|
31
|
-
eruby = Erubis::Eruby.new(File.read(self.get_template_path(__FILE__)))
|
|
32
|
-
@result = eruby.result b
|
|
33
|
-
rescue TypeError, SyntaxError, SystemCallError => e
|
|
34
|
-
raise(e)
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
end
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<%= machine_name %>.vm.provision "shell", inline: '<%= inline %>'<% if name %>, name: '<%= name %>'<% end %><% if binary %>, binary: <%= binary %><% end %><% if privileged %>, privileged: <%= privileged %><% end %>
|