OLD | NEW |
1 define hostentry ( | 1 define hostentry ( |
2 $host = $title['host'], | 2 $host = $title['host'], |
3 $ip = $title['ip'] | 3 $ip = $title['ip'] |
4 ) { | 4 ) { |
5 host {$host: | 5 host {$host: |
6 ensure => present, | 6 ensure => present, |
7 ip => $ip, | 7 ip => $ip, |
8 name => $host | 8 name => $host |
9 } | 9 } |
10 } | 10 } |
11 | 11 |
12 node default { | 12 node default { |
13 | 13 |
14 $hosts = [ | 14 $hosts = [ |
15 {host => 'localhost', ip => '127.0.0.1'}, | 15 {host => 'localhost', ip => '127.0.0.1'}, |
16 {host => $hostname, ip => '127.0.0.1'}, | 16 {host => $hostname, ip => '127.0.0.1'}, |
17 {host => 'monitoring.adblockplus.org', ip => '10.8.0.98'}, | 17 {host => 'monitoring.adblockplus.org', ip => '10.8.0.98'}, |
18 {host => 'intraforum.adblockplus.org', ip => '10.8.0.105'}, | 18 {host => 'intraforum.adblockplus.org', ip => '10.8.0.105'}, |
19 {host => 'server_1.adblockplus.org', ip => '10.8.0.105'}, | 19 {host => 'server_1.adblockplus.org', ip => '10.8.0.105'}, |
20 {host => 'server_3.adblockplus.org', ip => '10.8.0.99'}, | 20 {host => 'server_3.adblockplus.org', ip => '10.8.0.99'}, |
21 {host => 'server_4.adblockplus.org', ip => '10.8.0.98'}, | 21 {host => 'server_4.adblockplus.org', ip => '10.8.0.98'}, |
22 {host => 'server_5.adblockplus.org', ip => '10.8.0.100'}, | 22 {host => 'server_5.adblockplus.org', ip => '10.8.0.100'}, |
23 {host => 'server_6.adblockplus.org', ip => '10.8.0.101'}, | 23 {host => 'server_6.adblockplus.org', ip => '10.8.0.101'}, |
24 {host => 'server_7.adblockplus.org', ip => '10.8.0.102'}, | 24 {host => 'server_7.adblockplus.org', ip => '10.8.0.102'}, |
25 {host => 'server_8.adblockplus.org', ip => '10.8.0.103'}, | 25 {host => 'server_8.adblockplus.org', ip => '10.8.0.103'}, |
26 {host => 'server_9.adblockplus.org', ip => '10.8.0.104'}, | 26 {host => 'server_9.adblockplus.org', ip => '10.8.0.104'}, |
27 {host => 'server_10.adblockplus.org', ip => '10.8.0.105'} | 27 {host => 'server_10.adblockplus.org', ip => '10.8.0.105'}, |
28 {host => 'server_11.adblockplus.org', ip => '10.8.0.106'} | 28 {host => 'server_11.adblockplus.org', ip => '10.8.0.106'}, |
29 {host => 'server_12.adblockplus.org', ip => '10.8.0.107'} | 29 {host => 'server_12.adblockplus.org', ip => '10.8.0.107'}, |
| 30 {host => 'server_13.adblockplus.org', ip => '10.8.0.108'}, |
30 ] | 31 ] |
31 | 32 |
32 hostentry { $hosts: } | 33 hostentry { $hosts: } |
33 } | 34 } |
OLD | NEW |