Hi,
Thank you very much for your quick response.

I tried it and now I get:
    Error: Could not retrieve catalog from remote server: Error 400 on 
SERVER: Could not find default node or by name with 
'puppetagent.weizmann.ac.il,   
    puppetagent.weizmann.ac, puppetagent.weizmann, puppetagent' on 
node puppetagent.weizmann.ac.il

It can be that the Dashboard and the above problem connected and I have 
something wrong in my puppet configuration?
Any idea are welcome.


On Wednesday, December 11, 2013 5:06:04 PM UTC+2, Jeff Bachtel wrote:
>
> Try 
>
> case $hostname { 
>    'puppetagent': {include sendmail} 
> } 
>
> BUT, that's really the wrong pattern to be following, you should instead 
> create a node definition for "puppetagent" that includes the sendmail 
> class. 
>
> node puppetagent.yourdomain { 
>    include sendmail 
> } 
>
> Jeff 
>
> On 12/11/2013 10:00 AM, shlo....@gmail.com <javascript:> wrote: 
> > 
> > 
> > Hi, 
> > 
> > In Dashboard, in the 'Inventory' section I get nothing but the error: 
> >     Could not retrieve facts from inventory service: 403 "Forbidden" 
> > 
> > When I tried to use facter variables in the manifest, it look like 
> > it's not working. (I new in that so I never tried it before). 
> > I have something like this: 
> >     case ${hostname} { 
> >          'puppetagent': {include sendmail} 
> >     } 
> > But when I run puppet on the agent, I get the error: 
> >     Error: Could not retrieve catalog from remote server: Error 400 on 
> > SERVER: Could not parse for environment production: Could not match 
> > ${hostname} at 
> >     /etc/puppet/manifests/nodes.pp:17 on node puppetagent 
> > 
> > 
> > Is it possible that the problems are connected? How can I solve that 
> > problem? 
> > Any help welcome. 
> > 
> > -- 
> > 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...@googlegroups.com <javascript:>. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/puppet-users/80e4abd7-1bad-48d3-94ac-1c61b00fae74%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/groups/opt_out. 
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/b22968fe-59af-43a6-87b7-af49793ac901%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to