-
Notifications
You must be signed in to change notification settings - Fork 4
/
00_all_nodes.pp
72 lines (60 loc) · 1.73 KB
/
00_all_nodes.pp
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
class { 'apt':
update => { frequency => 'daily' }
}
apt::source { 'puppetlabs':
location => 'http://apt.puppetlabs.com',
repos => 'main dependencies',
key => { 'server' => 'pgp.mit.edu', 'id' => '47B320EB4C7C375AA9DAE1A01054B7A24BD6EC30' }
}
if $lsbdistcodename == 'precise' {
apt::ppa { 'ppa:vbulax/collectd5': }
}
#
# Hetzner's default Ubuntu image points at their outdated mirrors, so we add our own sources.list here.
#
apt::source { 'de-archive':
location => 'http://de.archive.ubuntu.com/ubuntu/',
release => $lsbdistcodename,
repos => 'main restricted universe multiverse',
}
apt::source { 'de-archive-updates':
location => 'http://de.archive.ubuntu.com/ubuntu/',
release => "${lsbdistcodename}-updates",
repos => 'main restricted universe multiverse',
}
apt::source { 'de-archive-backports':
location => 'http://de.archive.ubuntu.com/ubuntu/',
release => "${lsbdistcodename}-backports",
repos => 'main restricted universe multiverse',
}
apt::source { 'security':
location => 'http://security.ubuntu.com/ubuntu',
release => "${lsbdistcodename}-security",
repos => 'main restricted universe multiverse',
}
Exec {
logoutput => on_failure,
path => [
'/usr/bin',
'/bin',
'/usr/local/bin'
]
}
package { ['build-essential']:
ensure => installed,
}
class { 'hiera':
eyaml => true,
hiera_yaml => '/etc/puppet/hiera.yaml',
eyaml_datadir => '/opt/hdo-puppet/hiera',
datadir => '/opt/hdo-puppet/hiera',
datadir_manage => false,
hierarchy => [ 'secure', '%{hostname}', 'common' ]
}
logrotate::conf { '/etc/logrotate.conf':
su_user => root,
su_group => syslog
}
include hdo::users
include hdo::timezone
include '::ntp'