kitchen-itamae 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/kitchen-itamae/version.rb +1 -1
- data/lib/kitchen/provisioner/itamae.rb +5 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7ae0ffa2cbb40d89465093703fa10a64776f256
|
4
|
+
data.tar.gz: 8aecb94e1ff2be8119d20efee585d3a7932963fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db9b90e1515109854500ab24b82d9bdbfbe93d152802a059c3c7b59dbb3012839654550b972a98641457b1075f450ce9ba04c9854566e3eeeeeca00cfc0b2cff
|
7
|
+
data.tar.gz: 6e84b488806170f8624d8a574587042b8f807282334180d7024e9e7ebdccebdc1a830c7bea302244503fd6e16114f2bfeb0e59cfc99fb37885d2d726ff085ebe
|
data/CHANGELOG.md
CHANGED
@@ -47,7 +47,7 @@ module Kitchen
|
|
47
47
|
debug(instance.inspect)
|
48
48
|
debug(JSON.pretty_generate(config))
|
49
49
|
runlist = config[:recipe_list].map do |recipe|
|
50
|
-
cmd = ["cd #{config[:root_path]};", sudo('itamae')]
|
50
|
+
cmd = ["cd #{config[:root_path]};", sudo('/opt/chef/bin/itamae')]
|
51
51
|
cmd << 'local'
|
52
52
|
cmd << '--ohai' if config[:with_ohai]
|
53
53
|
cmd << config[:itamae_option]
|
@@ -106,12 +106,11 @@ module Kitchen
|
|
106
106
|
|
107
107
|
def itamae_install_function
|
108
108
|
<<-INSTALL_ITAMAE
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
ln -sf /opt/chef/embedded/bin/itamae /usr/local/bin/
|
109
|
+
cat <<EOL > /tmp/install_itamae.sh
|
110
|
+
%Q{#{sudo('chef-apply')} -e "chef_gem %Q{itamae} do action :upgrade end"}
|
111
|
+
ln -sf /opt/chef/embedded/bin/itamae /opt/chef/bin/itamae
|
113
112
|
EOL
|
114
|
-
|
113
|
+
#{sudo("sh")} /tmp/install_itamae.sh
|
115
114
|
INSTALL_ITAMAE
|
116
115
|
end
|
117
116
|
end
|