summaryrefslogtreecommitdiff
path: root/manifests/bootstrap/vagrant.pp
blob: 9206db6eb0f01255d837bd6082c9ecfba1d7d316 (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
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,
}