Hi Justin, > So I'd like to avoid having to type the user titles in the call to > users::create. Is there a way to do this using the 'User <| group == > 'ssh' |>' syntax to select what I want?
Unfortunately the spaceship operator can't contain anything other than == and !=, and doesn't accept anything but simple variables. Actually I doubt User <| group == 'ssh' |> will work that well. During past tests I did, it only found the first member of an array. So if you had a user defined like this: users::define_ssh {'jspies': [...] group => ['group1','ssh'], } it wouldn't be realized by User <| group == 'ssh' |>, because ssh is at the second position of the group parameter. Maybe that wasn't discovered yet over at this wiki you mentioned. Or do I need to just define an > array in the sshusers.pp file and pass the array to the users::create? May I ask what your reason is for not ensuring that users should be present right away? Sounds like you want to add all your new users right away. In this case you don't have to have separate user::define and user::create groups. Would be enough just to have the ensure => present inside the user::define and then include or require it in your node, eg. your default node. Hope that helps Stephan -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.