diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-04 13:50:56 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-04 13:50:56 -0300 |
commit | b50dd8ae86f3d8bb52c5ad32de559395c6f46e21 (patch) | |
tree | c39d802ed54fb587e38c32dd25f75642be2b2df3 /manifests/bootstrap/vagrant.pp | |
parent | 9d4f47a2b6f3231e870249823dbe0f7db1baa111 (diff) | |
download | puppet-bootstrap-b50dd8ae86f3d8bb52c5ad32de559395c6f46e21.tar.gz puppet-bootstrap-b50dd8ae86f3d8bb52c5ad32de559395c6f46e21.tar.bz2 |
Move bootstrap specific manifests to a folder
Diffstat (limited to 'manifests/bootstrap/vagrant.pp')
-rw-r--r-- | manifests/bootstrap/vagrant.pp | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/manifests/bootstrap/vagrant.pp b/manifests/bootstrap/vagrant.pp new file mode 100644 index 0000000..9206db6 --- /dev/null +++ b/manifests/bootstrap/vagrant.pp @@ -0,0 +1,49 @@ +# +# This manifest is intended to configure a vagrant +# virtual machine. +# + +# Import site configuration +import "../site.pp" + +# +# Stage definitions +# + +stage { 'first': + before => Stage['main'], +} + +stage { 'last': } +Stage['main'] -> Stage['last'] + +# +# Class definitions +# + +# Vagrant classes +include nodo::role::vagrant + +class vagrant_config { + # Symlink to the mounted module folder + file { '/etc/puppet/modules': + ensure => '/etc/puppet/modules-0', + force => true, + } + + # Ensure a custom hiera configuration + file { '/etc/puppet/hiera.yaml': + owner => root, + group => root, + mode => 0644, + force => true, + ensure => '/etc/puppet/hiera/hiera.yaml', + } +} + +# +# Class instantiations +# +class { 'vagrant_config': + stage => first, +} |