aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-01-27 16:04:31 -0200
committerSilvio Rhatto <rhatto@riseup.net>2014-01-27 16:04:31 -0200
commit431f716381a6be6d7bd092acc2b33540ea6b766b (patch)
tree9b0f254e8b4b7542d91e27e74ee34e64fc7ec2e9
parent6733898a5e2a5ed38c89037767c848f5206351c4 (diff)
downloadpuppet-bootstrap-431f716381a6be6d7bd092acc2b33540ea6b766b.tar.gz
puppet-bootstrap-431f716381a6be6d7bd092acc2b33540ea6b766b.tar.bz2
Vagrant compatibility
-rw-r--r--Vagrantfile15
-rw-r--r--manifests/vagrant.pp5
-rwxr-xr-xmisc/mrconfig.sh (renamed from mrconfig.sh)2
l---------puppet1
4 files changed, 22 insertions, 1 deletions
diff --git a/Vagrantfile b/Vagrantfile
new file mode 100644
index 0000000..ecf1c91
--- /dev/null
+++ b/Vagrantfile
@@ -0,0 +1,15 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+
+Vagrant::Config.run do |config|
+ # Every Vagrant virtual environment requires a box to build off of.
+ config.vm.box = "wheezy"
+
+ # Enable provisioning with Puppet stand alone.
+ config.vm.provision :puppet do |puppet|
+ puppet.manifest_file = "vagrant.pp"
+ puppet.manifests_path = "puppet/manifests"
+ puppet.module_path = "puppet/modules"
+ puppet.pp_path = "/etc/puppet"
+ end
+end
diff --git a/manifests/vagrant.pp b/manifests/vagrant.pp
new file mode 100644
index 0000000..61bbc28
--- /dev/null
+++ b/manifests/vagrant.pp
@@ -0,0 +1,5 @@
+# Import main module
+import "nodo"
+
+# Vagrant classes
+include nodo::role::vagrant
diff --git a/mrconfig.sh b/misc/mrconfig.sh
index 3ea3646..043ea74 100755
--- a/mrconfig.sh
+++ b/misc/mrconfig.sh
@@ -7,7 +7,7 @@
GIT="git.sarava.org"
URL="https://$GIT/?a=project_index"
CWD="`pwd`"
-WORK="`dirname $0`"
+WORK="`dirname $0`/.."
# Create a new config
cd $WORK
diff --git a/puppet b/puppet
new file mode 120000
index 0000000..945c9b4
--- /dev/null
+++ b/puppet
@@ -0,0 +1 @@
+. \ No newline at end of file