aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-01-28 15:06:44 -0200
committerSilvio Rhatto <rhatto@riseup.net>2014-01-28 15:06:44 -0200
commit0aa8510b29568a7001e1f5257c245fb532760a61 (patch)
treeae3d0ea329040938a0bda331d60fcfba1c43247a /manifests
parent93ee664156c86145fd460c5ca7b96518a8eb4ecc (diff)
downloadpuppet-bootstrap-0aa8510b29568a7001e1f5257c245fb532760a61.tar.gz
puppet-bootstrap-0aa8510b29568a7001e1f5257c245fb532760a61.tar.bz2
Adding hiera configuration
Diffstat (limited to 'manifests')
-rw-r--r--manifests/vagrant.pp41
1 files changed, 37 insertions, 4 deletions
diff --git a/manifests/vagrant.pp b/manifests/vagrant.pp
index 619bc66..94d5896 100644
--- a/manifests/vagrant.pp
+++ b/manifests/vagrant.pp
@@ -1,11 +1,44 @@
# Import main module
import "nodo"
+#
+# Stage definitions
+#
+
+stage { 'first':
+ before => Stage['main'],
+}
+
+stage { 'last': }
+Stage['main'] -> Stage['last']
+
+#
+# Class definitions
+#
+
# Vagrant classes
include nodo::role::vagrant
-# Symlink to the mounted module folder
-file { '/etc/puppet/modules':
- ensure => '/etc/puppet/modules-0',
- force => true,
+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,
}