]> git.pld-linux.org Git - packages/vagrant.git/commitdiff
chef: add pld cap to install chef
authorElan Ruusamäe <glen@delfi.ee>
Wed, 19 Aug 2015 14:31:44 +0000 (17:31 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 19 Aug 2015 14:31:44 +0000 (17:31 +0300)
pld-chef-installed.patch

index 96f16675ac503899867d421c70e228f34efeaaf7..a56afd2f64306c3a49eab9d07d44305903886142 100644 (file)
@@ -1,6 +1,16 @@
---- vagrant-1.7.4/plugins/provisioners/chef/plugin.rb~ 2015-07-17 22:38:51.000000000 +0300
-+++ vagrant-1.7.4/plugins/provisioners/chef/plugin.rb  2015-08-19 17:03:47.474659244 +0300
-@@ -78,6 +78,11 @@
+--- vagrant-1.7.4/plugins/provisioners/chef/plugin.rb  2015-08-19 17:03:47.474659244 +0300
++++ vagrant-1.7.4/plugins/provisioners/chef/plugin.rb  2015-08-19 17:28:22.723434523 +0300
+@@ -73,11 +73,21 @@
+         Cap::Redhat::ChefInstall
+       end
++      guest_capability(:pld, :chef_install) do
++        require_relative "cap/pld/chef_install"
++        Cap::PLD::ChefInstall
++      end
++
+       guest_capability(:omnios, :chef_installed) do
+         require_relative "cap/omnios/chef_installed"
          Cap::OmniOS::ChefInstalled
        end
  
 +    end
 +  end
 +end
+--- /dev/null  2015-05-25 21:49:42.000000000 +0300
++++ vagrant-1.7.4/plugins/provisioners/chef/cap/pld/chef_install.rb    2015-08-19 17:27:55.925638979 +0300
+@@ -0,0 +1,18 @@
++require_relative "../../omnibus"
++
++module VagrantPlugins
++  module Chef
++    module Cap
++      module PLD
++        module ChefInstall
++          def self.chef_install(machine, version, prerelease, download_path)
++            machine.communicate.sudo("poldek --up && poldek -u chef --noask")
++
++            command = Omnibus.build_command(version, prerelease, download_path)
++            machine.communicate.sudo(command)
++          end
++        end
++      end
++    end
++  end
++end
This page took 0.078856 seconds and 4 git commands to generate.