diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-01-27 16:04:31 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-01-27 16:04:31 -0200 |
commit | 431f716381a6be6d7bd092acc2b33540ea6b766b (patch) | |
tree | 9b0f254e8b4b7542d91e27e74ee34e64fc7ec2e9 | |
parent | 6733898a5e2a5ed38c89037767c848f5206351c4 (diff) | |
download | puppet-bootstrap-431f716381a6be6d7bd092acc2b33540ea6b766b.tar.gz puppet-bootstrap-431f716381a6be6d7bd092acc2b33540ea6b766b.tar.bz2 |
Vagrant compatibility
-rw-r--r-- | Vagrantfile | 15 | ||||
-rw-r--r-- | manifests/vagrant.pp | 5 | ||||
-rwxr-xr-x | misc/mrconfig.sh (renamed from mrconfig.sh) | 2 | ||||
l--------- | puppet | 1 |
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 @@ -0,0 +1 @@ +.
\ No newline at end of file |