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
|
node '<%= hostname %>-proxy.<%= domain %>' {
#$mail_delivery = 'tunnel'
#$mail_hostname = 'mail'
#$mail_ssh_port = '2202'
include nodo::proxy
# encrypted local backups
#backup::duplicity { "localhost":
# encryptkey => "ABCDEF12",
# password => 'xxxyyy',
#}
# encrypted data remote backup
#backup::rdiff { "other-host":
# port => "10102",
#}
# reference to admin vserver
host { "<%= hostname %>-master":
ensure => present,
ip => "192.168.0.2",
host_aliases => [ "<%= hostname %>-master.<%= domain %>", "puppet", "admin" ],
notify => Service["nginx"],
}
# reference to proxy vserver
#host { "<%= hostname %>-proxy":
# ensure => present,
# ip => "192.168.0.3",
# host_aliases => [ "<%= hostname %>-proxy.<%= domain %>", "<%= hostname %>-proxy" ],
# notify => Service["nginx"],
#}
# reference to web vserver
host { "<%= hostname %>-web":
ensure => present,
ip => "192.168.0.4",
host_aliases => [ "<%= hostname %>-web.<%= domain %>", "<%= hostname %>-web", "weblocal" ],
notify => Service["nginx"],
}
# reference to storage vserver
host { "<%= hostname %>-storage":
ensure => present,
ip => "192.168.0.5",
host_aliases => [ "<%= hostname %>-storage.<%= domain %>", "<%= hostname %>-storage" ],
notify => Service["nginx"],
}
# reference to test vserver
host { "<%= hostname %>-test":
ensure => present,
ip => "192.168.0.6",
host_aliases => [ "<%= hostname %>-test.<%= domain %>", "<%= hostname %>-test" ],
notify => Service["nginx"],
}
}
|