Skip to content

Commit e80eff8

Browse files
author
Pavel Pulec
committed
get rid of node inheritance (future parser compatibility)
Signed-off-by: Pavel Pulec <[email protected]>
1 parent 23b1055 commit e80eff8

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

vagrant/puppet/manifests/site.pp

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
node default {
1+
# puppetmaster
2+
node puppet {
3+
24
# this will get put on every host...
3-
$url = 'https://ttboj.wordpress.com/'
45
file { '/etc/motd':
5-
content => "This is Puppet-Gluster+Vagrant! (${url})\n",
6+
content => "This is Puppet-Gluster+Vagrant! (https://ttboj.wordpress.com/)\n",
67
}
7-
}
8-
9-
# puppetmaster
10-
node puppet inherits default {
118

129
if "${::vagrant_gluster_firewall}" != 'false' {
1310
include firewall
@@ -38,7 +35,12 @@
3835
}
3936
}
4037

41-
node /^annex\d+$/ inherits default { # annex{1,2,..N}
38+
node /^annex\d+$/ { # annex{1,2,..N}
39+
40+
# this will get put on every host...
41+
file { '/etc/motd':
42+
content => "This is Puppet-Gluster+Vagrant! (https://ttboj.wordpress.com/)\n",
43+
}
4244

4345
if "${::vagrant_gluster_firewall}" != 'false' {
4446
include firewall
@@ -105,7 +107,12 @@
105107
}
106108
}
107109

108-
node /^client\d+$/ inherits default { # client{1,2,..N}
110+
node /^client\d+$/ { # client{1,2,..N}
111+
112+
# this will get put on every host...
113+
file { '/etc/motd':
114+
content => "This is Puppet-Gluster+Vagrant! (https://ttboj.wordpress.com/)\n",
115+
}
109116

110117
if "${::vagrant_gluster_firewall}" != 'false' {
111118
include firewall

0 commit comments

Comments
 (0)