Hello
When I add one more nodes define into 'etc/puppet/manifests/site.pp'.
All the others nodes added in foreman but did not define in site.pp will
got this error:
[root@puppet manifests]# puppet agent --test
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Info: Loading facts in
/var/lib/puppet/lib/facter/postgres_default_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/last_run.rb
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in
/var/lib/puppet/lib/facter/iptables_persistent_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/iptables_version.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppi_projects.rb
Info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/ip6tables_version.rb
Error: Could not retrieve catalog from remote server: Error 400 on
SERVER: Could not find default node or by name with 'puppet.ihep.ac.cn,
puppet.ihep.ac, puppet.ihep, puppet' on node puppet.ihep.ac.cn
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
Is it ok or not!
Best Regards
Xiaofei
It's not generally recommended to mix a site.pp file with an ENC (such as
foreman) - in general you use one or the other.
If you must use both, it is required to put a "node default {}" block in
your site.pp to avoid the error you are seeing.
HTH
Greg
···
On 25 September 2013 11:02, Yan Xiaofei wrote:
Hello
When I add one more nodes define into ‘etc/puppet/manifests/site.pp’.
All the others nodes added in foreman but did not define in site.pp will
got this error:
Hello Greg
Thanks very much!
Sorry I'm a new user of foreman and puppet.
If I only use foreman to configure node can I add more manifests files
in foreman?
And Can I edit some classes in text or script mode?
Cheers
Xiaofei
锟斤拷 2013/9/25 18:38, Greg Sutcliffe wrote:
···
> On 25 September 2013 11:02, Yan Xiaofei > wrote:
>
> Hello
>
> When I add one more nodes define into 'etc/puppet/manifests/site.pp'.
> All the others nodes added in foreman but did not define in
> site.pp will
> got this error:
>
>
> It's not generally recommended to mix a site.pp file with an ENC (such
> as foreman) - in general you use one or the other.
>
> If you must use both, it is _required_ to put a "node default {}"
> block in your site.pp to avoid the error you are seeing.
>
> HTH
> Greg
> --
> You received this message because you are subscribed to the Google
> Groups "Foreman users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to foreman-users+unsubscribe@googlegroups.com.
> To post to this group, send email to foreman-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/foreman-users.
> For more options, visit https://groups.google.com/groups/opt_out.
Foreman doesn't care how you manage your Puppet codebase - add more classes
to your Puppetmaster however you like, and then click the Import Classes
button on the More->Configuration->Puppet Classes page in Foreman to update
Foreman's list of available classes.
···
On 25 September 2013 15:31, Yan Xiaofei wrote:
Hello Greg
Thanks very much!
Sorry I’m a new user of foreman and puppet.
If I only use foreman to configure node can I add more manifests files in
foreman?
And Can I edit some classes in text or script mode?