Puppet agent doesn't run manifest from regexp
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
node 'node-slave01'
include repo::git
include fun::cmatrix
node 'node-slave02'
include repo::hg
include fun::toilet
node 'node-slave03'
include fun::rup
include repo::svn
include fun::cmatrix
node 'node-slave04'
include repo::git
include repo::hg
include repo::svn
include fun::cmatrix
include fun::toilet
node /node-slaved+/
include lamp
include test
include fun::rup
include sup
So everything in /node-slaved+/
doesn't run. If I take the sup
module and put it under any of the 4 nodes, it runs after I write sudo puppet agent --test
, but not if it's under the regexp.
How do I do it if I want to have certain nodes do certain things, but there are some commands that I want all of them to do? Writing include sup
under every node seems extremely annoying.
puppet
add a comment |Â
up vote
0
down vote
favorite
node 'node-slave01'
include repo::git
include fun::cmatrix
node 'node-slave02'
include repo::hg
include fun::toilet
node 'node-slave03'
include fun::rup
include repo::svn
include fun::cmatrix
node 'node-slave04'
include repo::git
include repo::hg
include repo::svn
include fun::cmatrix
include fun::toilet
node /node-slaved+/
include lamp
include test
include fun::rup
include sup
So everything in /node-slaved+/
doesn't run. If I take the sup
module and put it under any of the 4 nodes, it runs after I write sudo puppet agent --test
, but not if it's under the regexp.
How do I do it if I want to have certain nodes do certain things, but there are some commands that I want all of them to do? Writing include sup
under every node seems extremely annoying.
puppet
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
node 'node-slave01'
include repo::git
include fun::cmatrix
node 'node-slave02'
include repo::hg
include fun::toilet
node 'node-slave03'
include fun::rup
include repo::svn
include fun::cmatrix
node 'node-slave04'
include repo::git
include repo::hg
include repo::svn
include fun::cmatrix
include fun::toilet
node /node-slaved+/
include lamp
include test
include fun::rup
include sup
So everything in /node-slaved+/
doesn't run. If I take the sup
module and put it under any of the 4 nodes, it runs after I write sudo puppet agent --test
, but not if it's under the regexp.
How do I do it if I want to have certain nodes do certain things, but there are some commands that I want all of them to do? Writing include sup
under every node seems extremely annoying.
puppet
node 'node-slave01'
include repo::git
include fun::cmatrix
node 'node-slave02'
include repo::hg
include fun::toilet
node 'node-slave03'
include fun::rup
include repo::svn
include fun::cmatrix
node 'node-slave04'
include repo::git
include repo::hg
include repo::svn
include fun::cmatrix
include fun::toilet
node /node-slaved+/
include lamp
include test
include fun::rup
include sup
So everything in /node-slaved+/
doesn't run. If I take the sup
module and put it under any of the 4 nodes, it runs after I write sudo puppet agent --test
, but not if it's under the regexp.
How do I do it if I want to have certain nodes do certain things, but there are some commands that I want all of them to do? Writing include sup
under every node seems extremely annoying.
puppet
puppet
asked Sep 17 at 8:40
iamAguest
985
985
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
Puppet matches one node and once it does that it stops. FQDN is highest and it works down to default. See matching section - https://puppet.com/docs/puppet/4.10/lang_node_definitions.html.
One way to do it is to have just your regex node and then use a case statement for things that are unique to each node
node /node-slaved+/
include lamp
include test
include fun::rup
include sup
case $::hostname
'node-slave01':
include repo::git
include fun::cmatrix
node-slave02':
include repo::hg
include fun::toilet
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
Puppet matches one node and once it does that it stops. FQDN is highest and it works down to default. See matching section - https://puppet.com/docs/puppet/4.10/lang_node_definitions.html.
One way to do it is to have just your regex node and then use a case statement for things that are unique to each node
node /node-slaved+/
include lamp
include test
include fun::rup
include sup
case $::hostname
'node-slave01':
include repo::git
include fun::cmatrix
node-slave02':
include repo::hg
include fun::toilet
add a comment |Â
up vote
0
down vote
accepted
Puppet matches one node and once it does that it stops. FQDN is highest and it works down to default. See matching section - https://puppet.com/docs/puppet/4.10/lang_node_definitions.html.
One way to do it is to have just your regex node and then use a case statement for things that are unique to each node
node /node-slaved+/
include lamp
include test
include fun::rup
include sup
case $::hostname
'node-slave01':
include repo::git
include fun::cmatrix
node-slave02':
include repo::hg
include fun::toilet
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
Puppet matches one node and once it does that it stops. FQDN is highest and it works down to default. See matching section - https://puppet.com/docs/puppet/4.10/lang_node_definitions.html.
One way to do it is to have just your regex node and then use a case statement for things that are unique to each node
node /node-slaved+/
include lamp
include test
include fun::rup
include sup
case $::hostname
'node-slave01':
include repo::git
include fun::cmatrix
node-slave02':
include repo::hg
include fun::toilet
Puppet matches one node and once it does that it stops. FQDN is highest and it works down to default. See matching section - https://puppet.com/docs/puppet/4.10/lang_node_definitions.html.
One way to do it is to have just your regex node and then use a case statement for things that are unique to each node
node /node-slaved+/
include lamp
include test
include fun::rup
include sup
case $::hostname
'node-slave01':
include repo::git
include fun::cmatrix
node-slave02':
include repo::hg
include fun::toilet
answered Sep 17 at 12:01
user103944
161
161
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f469510%2fpuppet-agent-doesnt-run-manifest-from-regexp%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password