aboutsummaryrefslogtreecommitdiff
path: root/manifests/bootstrap/vagrant.pp
blob: e592d738c75e6d75e2f8e0deb577f48c8c0c9947 (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
45
46
47
48
#
# This manifest is intended to configure a vagrant
# virtual machine.
#

#
# Stage definitions
#

stage { 'first':
  before => Stage['main'],
}

stage { 'last': }
Stage['main'] -> Stage['last']

#
# Class definitions
#

# Vagrant classes
class { '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,
}