Ask Your Question

First time puppet configuration..

asked 2013-11-19 09:39:29 -0600

MS gravatar image

hi, i configured a Pupper Master & a Agent, After signing certificates, when i try to run "puppet apply node.pp" from Master i am getting below error....

-- cat node.pp content-- node '' { file { '/tmp/hello': content => "Hello, world\n", } }

Error: Could not find default node or by name with ', master' on node

My intention is to create this 'hello' text file in Agent node..

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-11-19 18:46:39 -0600

rjc gravatar image

Specifying node in a manifest file and running puppet apply on an individual node does not make much sense.

Either drop the node from the manifest or provide node default along with other nodes as it seems that you are experiencing the same issue when site.pp has a specific node defined, but not the remaining ones, and does have node default.

edit flag offensive delete link more


Thanks for the suggestion.. I replaced '' as 'default in node.pp .. Then i ran puppet apply from master.. But this time it executed the command only in ...(more)

MS gravatar imageMS ( 2013-11-20 00:28:47 -0600 )edit

Let me guess, are you running `puppet apply` on `master`? If you'd like the manifest to apply to agent, you will either need to run it on agent, or ...(more)

rjc gravatar imagerjc ( 2013-11-20 06:01:19 -0600 )edit

I'm having the exactly same problem and it does make sense for me. I wanna to try some configuration in one test node and if it's ok consolidate ...(more)

bismark gravatar imagebismark ( 2014-02-03 15:17:56 -0600 )edit

Then simply do that, but specify a node in `site.pp` on the master and then restart the client on the node (or wait for it to re-execute). `puppet apply ...(more)

rjc gravatar imagerjc ( 2014-02-18 06:45:03 -0600 )edit

I have the same issue. On master host I have define site.pp in /etc/puppetlabs/puppet/manifests. On the agent host host1, I ran the command 'puppet agent --test' but manifest does not apply on agent. site.pp, node default {exec{ command => ..}} node 'host1' {exec{ command => ..}}

DT gravatar imageDT ( 2014-12-10 21:23:20 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2013-11-19 09:39:29 -0600

Seen: 2,381 times

Last updated: Nov 19 '13