On Jun 20, 2008, at 6:54 AM, Jeff wrote:
>
> Is it possible to reference the class name as a variable? For examples
> let''s say I create a user class named ptjones. Can I do this?
>
> class ptjones {
> user { $CLASSNAME:
> ensure => present,
> uid => 565,
> gid => $CLASSNAME,
> groups => ["www", "adm"],
> membership => minimum,
> managehome => true,
> shell => "/bin/pdksh",
> require => Package["pdksh"],
> require => Group[$CLASSNAME]
> }
> }
It''s not currently possible, but I''ve filed it as a feature
request,
and hopefully I (or someone else) will have a chance to add it.
--
To have a right to do a thing is not at all the same as to be right
in doing it. -- G. K. Chesterton
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
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
-~----------~----~----~----~------~----~------~--~---