[packages/vagrant] chef: add pld cap to install chef
glen
glen at pld-linux.org
Wed Aug 19 16:31:51 CEST 2015
commit 27c6553b589c1c67c960d487ba46e142ef2d40c9
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Aug 19 17:31:44 2015 +0300
chef: add pld cap to install chef
pld-chef-installed.patch | 37 ++++++++++++++++++++++++++++++++++---
1 file changed, 34 insertions(+), 3 deletions(-)
---
diff --git a/pld-chef-installed.patch b/pld-chef-installed.patch
index 96f1667..a56afd2 100644
--- a/pld-chef-installed.patch
+++ b/pld-chef-installed.patch
@@ -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
@@ -37,3 +47,24 @@
+ 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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/vagrant.git/commitdiff/27c6553b589c1c67c960d487ba46e142ef2d40c9
More information about the pld-cvs-commit
mailing list