blob: 94d5896ac605f90075a368a8b75625e69df6dae3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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
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,
}
|