-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathdefault.pp
More file actions
37 lines (29 loc) · 697 Bytes
/
default.pp
File metadata and controls
37 lines (29 loc) · 697 Bytes
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
# installs software required for development
$settings = loadyaml('/vagrant/settings.yaml')
$versions = $settings[versions]
node default {
include stdlib
# start in /vagrant
file_line { 'start-dir':
path => '/home/vagrant/.bashrc',
line => 'cd /vagrant',
}
# install ldap client tools
package { 'openldap-clients':
ensure => 'installed',
}
# install docker
class { 'docker':
docker_users => ['vagrant'],
}
# install compose
class { 'docker::compose':
version => $versions[compose],
ensure => present,
}
# alias dc = docker-compose
file { '/usr/local/bin/dc':
ensure => 'link',
target => '/usr/local/bin/docker-compose',
}
}