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, [email protected] 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 [email protected].
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/52A87F5C.6010704%40bericotechnologies.com.
For more options, visit https://groups.google.com/groups/opt_out.