[packages/vagrant] add shell provisioner sample to install chef
glen
glen at pld-linux.org
Thu Nov 7 21:08:25 CET 2013
commit ca9ac262267649edb0afef55b83e597c3830443b
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Nov 7 22:04:24 2013 +0200
add shell provisioner sample to install chef
vagrant.spec | 2 ++
vagrantfile-shell-provision.patch | 21 +++++++++++++++++++++
2 files changed, 23 insertions(+)
---
diff --git a/vagrant.spec b/vagrant.spec
index 5f2cdc7..e31fed8 100644
--- a/vagrant.spec
+++ b/vagrant.spec
@@ -11,6 +11,7 @@ Source0: https://github.com/mitchellh/vagrant/archive/v%{version}/%{name}-%{vers
Patch0: source_root.patch
Patch1: rubygems.patch
Patch2: no-warning.patch
+Patch3: vagrantfile-shell-provision.patch
URL: http://www.vagrantup.com/
BuildRequires: bash
BuildRequires: rpm-rubyprov
@@ -105,6 +106,7 @@ Ruby documentation for %{gem_name}
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p1
# cleanup backups after patching
find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
diff --git a/vagrantfile-shell-provision.patch b/vagrantfile-shell-provision.patch
new file mode 100644
index 0000000..ab6bbff
--- /dev/null
+++ b/vagrantfile-shell-provision.patch
@@ -0,0 +1,21 @@
+--- vagrant-1.3.4/templates/commands/init/Vagrantfile.erb~ 2013-10-02 18:42:06.000000000 +0300
++++ vagrant-1.3.4/templates/commands/init/Vagrantfile.erb 2013-11-07 22:01:54.574403429 +0200
+@@ -55,6 +55,18 @@
+ # View the documentation for the provider you're using for more
+ # information on available options.
+
++ # The shell provisioner allows you to upload and execute a script as the root
++ # user within the guest machine.
++ #
++ # Shell provisioning is ideal for users new to Vagrant who want to get up and
++ # running quickly and provides a strong alternative for users who aren't
++ # comfortable with a full configuration management system such as Chef or
++ # Puppet.
++ #
++ # http://docs.vagrantup.com/v2/provisioning/shell.html
++ #
++ # config.vm.provision :shell, :inline => "poldek -u chef --noask"
++
+ # Enable provisioning with Puppet stand alone. Puppet manifests
+ # are contained in a directory path relative to this Vagrantfile.
+ # You will need to create the manifests directory and a manifest in
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/vagrant.git/commitdiff/e4c3e8b40c4dca9857eb015325a6676263f3e941
More information about the pld-cvs-commit
mailing list