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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bba92b3fe6fb4188c4fd6394bbd6fdc779555dff
4
- data.tar.gz: fbe3fbc1efdb2b878d1186153f2ba93de6ed182e
3
+ metadata.gz: e7ae0ffa2cbb40d89465093703fa10a64776f256
4
+ data.tar.gz: 8aecb94e1ff2be8119d20efee585d3a7932963fe
5
5
  SHA512:
6
- metadata.gz: 7ca0739bd614b43b9317479dea35c8eebaabbfb3c5d3b34ef3bccdbb5aa54feebc533f5560eae3f060c6bb8537fff1b58bd518d5807770f961eaaa3162fc9fd4
7
- data.tar.gz: beaea3a1ebf505ffaa6092c55efc9851b4031ab0fb2ce264a381fd7b07e0f1aef8eb3440aa314b57e4bcbf436d490a49ebf6f688ca9fff2160e35e0d096538fd
6
+ metadata.gz: db9b90e1515109854500ab24b82d9bdbfbe93d152802a059c3c7b59dbb3012839654550b972a98641457b1075f450ce9ba04c9854566e3eeeeeca00cfc0b2cff
7
+ data.tar.gz: 6e84b488806170f8624d8a574587042b8f807282334180d7024e9e7ebdccebdc1a830c7bea302244503fd6e16114f2bfeb0e59cfc99fb37885d2d726ff085ebe
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  CHANGELOG of Itamae::Kitchen
2
2
 
3
+ ## 0.0.4
4
+
5
+ - Bugfix: itamae not found on centos6.
6
+
3
7
  ## 0.0.3
4
8
 
5
9
  - use chef-apply for install itamae-plugins(idempotent operation).
@@ -1,5 +1,5 @@
1
1
  module Kitchen
2
2
  module Itamae
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -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
- cat <<EOL > /tmp/install_itamae.sh
110
- [ -f /usr/local/bin/itamae ] && exit
111
- /opt/chef/embedded/bin/gem install itamae --no-ri --no-rdoc
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
- #{sudo("sh")} /tmp/install_itamae.sh
113
+ #{sudo("sh")} /tmp/install_itamae.sh
115
114
  INSTALL_ITAMAE
116
115
  end
117
116
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-itamae
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - sawanoboly