OLD | NEW |
| (Empty) |
1 define hostentry ( | |
2 $host = $title['host'], | |
3 $ip = $title['ip'] | |
4 ) { | |
5 host {$host: | |
6 ensure => present, | |
7 ip => $ip, | |
8 name => $host | |
9 } | |
10 } | |
11 | |
12 node default { | |
13 | |
14 $hosts = [ | |
15 {host => 'localhost', ip => '127.0.0.1'}, | |
16 {host => $hostname, ip => '127.0.0.1'}, | |
17 {host => 'monitoring.adblockplus.org', ip => '10.8.0.99'}, | |
18 {host => 'intraforum.adblockplus.org', ip => '10.8.0.105'}, | |
19 {host => 'downloads.adblockplus.org', ip => '10.8.0.108'}, | |
20 {host => 'notification.adblockplus.org', ip => '10.8.0.112'}, | |
21 {host => 'update.adblockplus.org', ip => '10.8.0.116'}, | |
22 {host => 'stats.adblockplus.org', ip => '10.8.0.117'}, | |
23 {host => 'server_4.adblockplus.org', ip => '10.8.0.99'}, | |
24 {host => 'server_5.adblockplus.org', ip => '10.8.0.100'}, | |
25 {host => 'server_6.adblockplus.org', ip => '10.8.0.101'}, | |
26 {host => 'server_7.adblockplus.org', ip => '10.8.0.102'}, | |
27 {host => 'server_10.adblockplus.org', ip => '10.8.0.105'}, | |
28 {host => 'server_11.adblockplus.org', ip => '10.8.0.106'}, | |
29 {host => 'server_12.adblockplus.org', ip => '10.8.0.107'}, | |
30 {host => 'server_15.adblockplus.org', ip => '10.8.0.110'}, | |
31 {host => 'server_19.adblockplus.org', ip => '10.8.0.114'}, | |
32 {host => 'notification1.adblockplus.org', ip => '10.8.0.118'}, | |
33 {host => 'notification2.adblockplus.org', ip => '10.8.0.119'}, | |
34 {host => 'filter1.adblockplus.org', ip => '10.8.0.120'}, | |
35 {host => 'filter2.adblockplus.org', ip => '10.8.0.121'}, | |
36 {host => 'filter3.adblockplus.org', ip => '10.8.0.122'}, | |
37 {host => 'filter4.adblockplus.org', ip => '10.8.0.123'}, | |
38 {host => 'filter5.adblockplus.org', ip => '10.8.0.124'}, | |
39 {host => 'filter6.adblockplus.org', ip => '10.8.0.125'}, | |
40 {host => 'download1.adblockplus.org', ip => '10.8.0.126'}, | |
41 {host => 'filtermaster1.adblockplus.org', ip => '10.8.0.127'}, | |
42 {host => 'update1.adblockplus.org', ip => '10.8.0.128'}, | |
43 {host => 'web1.adblockplus.org', ip => '10.8.0.129'}, | |
44 {host => 'stats1.adblockplus.org', ip => '10.8.0.130'}, | |
45 {host => 'issues1.adblockplus.org', ip => '10.8.0.131'}, | |
46 {host => 'codereview1.adblockplus.org', ip => '10.8.0.132'}, | |
47 {host => 'filter7.adblockplus.org', ip => '10.8.0.133'}, | |
48 {host => 'filter8.adblockplus.org', ip => '10.8.0.134'}, | |
49 {host => 'filter9.adblockplus.org', ip => '10.8.0.135'}, | |
50 {host => 'filter10.adblockplus.org', ip => '10.8.0.136'}, | |
51 {host => 'filter11.adblockplus.org', ip => '10.8.0.137'}, | |
52 {host => 'filter12.adblockplus.org', ip => '10.8.0.138'}, | |
53 {host => 'filter13.adblockplus.org', ip => '10.8.0.139'}, | |
54 {host => 'filter14.adblockplus.org', ip => '10.8.0.140'}, | |
55 {host => 'filter15.adblockplus.org', ip => '10.8.0.141'}, | |
56 {host => 'filter16.adblockplus.org', ip => '10.8.0.142'}, | |
57 {host => 'filter17.adblockplus.org', ip => '10.8.0.143'}, | |
58 {host => 'filter18.adblockplus.org', ip => '10.8.0.144'}, | |
59 {host => 'web2.adblockplus.org', ip => '10.8.0.145'}, | |
60 ] | |
61 | |
62 hostentry { $hosts: } | |
63 } | |
OLD | NEW |