Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: manifests/vagrant.pp

Issue 9349025: Generate /etc/hosts via usual host class, do not define a custom one (Closed)
Patch Set: Created Feb. 8, 2013, 10:11 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | modules/hosts/manifests/init.pp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 node default { 1 define hostentry (
2 class {'hosts': 2 $host = $title['host'],
3 hosts => { 3 $ip = $title['ip']
4 'localhost' => '127.0.0.1', 4 ) {
5 "${hostname}" => '127.0.0.1', 5 host {$host:
6 'www.adblockplus.org' => '10.8.0.97', 6 ensure => present,
7 'monitoring.adblockplus.org' => '10.8.0.98', 7 ip => $ip,
8 'server_1.adblockplus.org' => '10.8.0.105', 8 name => $host
9 'server_3.adblockplus.org' => '10.8.0.99',
10 'server_4.adblockplus.org' => '10.8.0.98',
11 'server_5.adblockplus.org' => '10.8.0.100',
12 'server_6.adblockplus.org' => '10.8.0.101',
13 'server_7.adblockplus.org' => '10.8.0.102',
14 'server_8.adblockplus.org' => '10.8.0.103',
15 'server_9.adblockplus.org' => '10.8.0.104'
16 }
17 } 9 }
18 } 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 => 'www.adblockplus.org', ip => '10.8.0.97'},
18 {host => 'monitoring.adblockplus.org', ip => '10.8.0.98'},
19 {host => 'server_1.adblockplus.org', ip => '10.8.0.105'},
20 {host => 'server_3.adblockplus.org', ip => '10.8.0.99'},
21 {host => 'server_4.adblockplus.org', ip => '10.8.0.98'},
22 {host => 'server_5.adblockplus.org', ip => '10.8.0.100'},
23 {host => 'server_6.adblockplus.org', ip => '10.8.0.101'},
24 {host => 'server_7.adblockplus.org', ip => '10.8.0.102'},
25 {host => 'server_8.adblockplus.org', ip => '10.8.0.103'},
26 {host => 'server_9.adblockplus.org', ip => '10.8.0.104'}
27 ]
28
29 hostentry { $hosts: }
30 }
OLDNEW
« no previous file with comments | « no previous file | modules/hosts/manifests/init.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld