On 12/31/2012 07:20 PM, Schofield wrote:

How do I automatically create a user (including home directory and cp of
/etc/skel) as triggered by buildbot::slave::instance, and avoid the
duplicate user errors?

If I understand right you want all buildbot::slave::instance types to have
the same user.  The special little flowers section of the defined types
documentation addresses this.
http://docs.puppetlabs.com/learning/definedtypes.html#special-little-flowers

If I did not understand correctly please clarify what you want the final
state to look like.
correct, I want the option of having multiple buildbot::slave::instance types to use the same user by defining the buildbot::user_homedir { 'username': } type.

Either I don't understand, or the 'special little flowers' document doesn't cover what I want.

in essence, I want something like the following:
======
define buildbot::slave::instance {
...
  require => Buildbot::User_homedir['foo']

if !defined buildbot::user_homedir{ 'foo': } then
  userdir_homedir{ 'foo': }
fi

} # end buildbot::slave::instance
======

--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to