FAQ
Hi

I am using thias-puppet to manage puppet agent configuration. And it is
being done in the following order:

class baseclass {
class puppet::agent {
....variables...
}
}

node 'hostname1' {
include baseclass
}

This all above works well.

But now I wish to include $certname which would be used by the
template(puppetagent.erb) to generate puppet.conf which will now include *certname
= nodename*. So what would be the changes required or how can value be
passed so that $certname is taken from the nodename itself automatically.

node 'hostname1' {
$certname = 'hostname1'
include baseclass
}


Thanks,

N.

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/HpVAbCuLWzAJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 1 | next ›
Discussion Overview
grouppuppet-users @
categoriespuppet
postedDec 7, '12 at 6:04a
activeDec 7, '12 at 6:04a
posts1
users1
websitepuppetlabs.com

1 user in discussion

Nitin Sharma: 1 post

People

Translate

site design / logo © 2022 Grokbase