So I am an UBER-NOOB at Puppet. Today is my first day using it. I am following along with the book: Puppet 3 Beginners guide. Everything was going fine until I start creating a nodes.pp file and applying the site.pp. *The error I am getting is this:* [root@puppet-san2 manifests]# puppet apply site.pp Error: Could not find default node or by name with ''puppet-san2.domain.com, puppet-san2.domain, puppet-san2'' on node puppet-san2.domain.com Error: Could not find default node or by name with ''puppet-san2.domain.com, puppet-san2.domain, puppet-san2'' on node puppet-san2.domain.com *This is my site.pp:* import ''nodes.pp'' *This is my nodes.pp:* node ''demo'' { file { ''/tmp/hello'': content => "Hello, world\n", } } My puppet server is in DNS and resolves properly. So I''m at a loss. Any thoughts? I am running puppet community edition 3.3.1 on a CentOS 6.4 server Any help would be greatly appreciated. Thanks! - Philippe -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/0778d8c4-9ac9-46cd-a2b3-7e0a813552c5%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
hello, On 06/11/13 08:29 PM, Philippe Conway wrote:> So I am an UBER-NOOB at Puppet. Today is my first day using it. I am > following along with the book: Puppet 3 Beginners guide. > > Everything was going fine until I start creating a nodes.pp file and > applying the site.pp.nodes need to be matched by fqdn in your manifests.> *The error I am getting is this:* > > [root@puppet-san2 manifests]# puppet apply site.pp > Error: Could not find default node or by name with > ''puppet-san2.domain.com, puppet-san2.domain, puppet-san2'' on node > puppet-san2.domain.com > Error: Could not find default node or by name with > ''puppet-san2.domain.com, puppet-san2.domain, puppet-san2'' on node > puppet-san2.domain.comaccording to the above, your host has an fqdn of puppet-san2.domain.com, so> *This is my nodes.pp:* > > node ''demo'' { > file { ''/tmp/hello'': > content => "Hello, world\n", > } > }here you could rename that node to: node ''puppet-san2'' { or node ''puppet-san2.domain'' { or node ''puppet-san2.domain.com'' { or you could have a node named "default" that would be used when puppet can''t match with anything else, although from personal experience I don''t recomment using the default node since this can lead to pretty annoying surprises when you forget to create your node and run puppet on the client. -- Gabriel Filion
Philippe Conway
2013-Nov-07 02:51 UTC
Re: [Puppet Users] Can''t get puppet manifest to run
Gabriel, That is exactly what the problem was. I somehow did not catch that in the reading. I think I was just too excited. :) Thanks for your help! On Wednesday, November 6, 2013 6:14:41 PM UTC-8, Lelutin wrote:> > hello, > > On 06/11/13 08:29 PM, Philippe Conway wrote: > > So I am an UBER-NOOB at Puppet. Today is my first day using it. I am > > following along with the book: Puppet 3 Beginners guide. > > > > Everything was going fine until I start creating a nodes.pp file and > > applying the site.pp. > > nodes need to be matched by fqdn in your manifests. > > > *The error I am getting is this:* > > > > [root@puppet-san2 manifests]# puppet apply site.pp > > Error: Could not find default node or by name with > > ''puppet-san2.domain.com, puppet-san2.domain, puppet-san2'' on node > > puppet-san2.domain.com > > Error: Could not find default node or by name with > > ''puppet-san2.domain.com, puppet-san2.domain, puppet-san2'' on node > > puppet-san2.domain.com > > according to the above, your host has an fqdn of puppet-san2.domain.com, > so > > > *This is my nodes.pp:* > > > > node ''demo'' { > > file { ''/tmp/hello'': > > content => "Hello, world\n", > > } > > } > > here you could rename that node to: > > node ''puppet-san2'' { > > or > > node ''puppet-san2.domain'' { > > or > > node ''puppet-san2.domain.com'' { > > > or you could have a node named "default" that would be used when puppet > can''t match with anything else, although from personal experience I > don''t recomment using the default node since this can lead to pretty > annoying surprises when you forget to create your node and run puppet on > the client. > > -- > Gabriel Filion > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/94d0eac9-58e2-43de-8669-4f853c1cdf60%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.