[Puppet Users] deleting virtual users

2012-09-26 Thread erkan yanar
Moin, I started to virtualise user. Works fine so far. Playing a bit a problem popped up. given: User 'ahab' realized on a bunch of nodes node01 .. node08. How do I delete a realized user on a node? I was hoping to do something like realize(User['ahab']){ensure => absent } As this is not working

Re: [Puppet Users] deleting virtual users

2012-09-26 Thread Jo Rhett
Realizing doesn't allow overrides. To remove the user: @user ahab { ensure => absent } realize User['ahab'] This may mean you need to use inheritence for the class the user is defined in, creating a child class for the nodes you want to remove him on. On Sep 26, 2012, at 11:53 AM, erkan yanar w

Re: [Puppet Users] deleting virtual users

2012-09-26 Thread erkan yanar
On Wed, Sep 26, 2012 at 12:00:10PM -0700, Jo Rhett wrote: > Realizing doesn't allow overrides. To remove the user: > > @user ahab { ensure => absent } > realize User['ahab'] > > This may mean you need to use inheritence for the class the user is defined > in, creating a child class for the nodes

Re: [Puppet Users] deleting virtual users

2012-09-26 Thread Kristof Willaert
Hi, [snip] How do I delete a realized user on a node? > I was hoping to do something like > realize(User['ahab']){ensure => absent } > As this is not working, I wonder how to delete a realized virtual user. > If you use resource collection instead of the realize function, you can override the at

Re: [Puppet Users] deleting virtual users

2012-09-26 Thread erkan yanar
On Thu, Sep 27, 2012 at 12:11:54AM +0200, Kristof Willaert wrote: > Hi, > > [snip] > > How do I delete a realized user on a node? > > I was hoping to do something like > > realize(User['ahab']){ensure => absent } > > As this is not working, I wonder how to delete a realized virtual user. > > > >

Re: [Puppet Users] deleting virtual users

2012-09-27 Thread jcbollinger
On Wednesday, September 26, 2012 2:15:27 PM UTC-5, erkules wrote: > > On Wed, Sep 26, 2012 at 12:00:10PM -0700, Jo Rhett wrote: > > Realizing doesn't allow overrides. To remove the user: > > > > @user ahab { ensure => absent } > > realize User['ahab'] > > > > This may mean you need to use i

Re: [Puppet Users] deleting virtual users

2012-09-27 Thread Jo Rhett
On Sep 26, 2012, at 3:11 PM, Kristof Willaert wrote: > How do I delete a realized user on a node? > I was hoping to do something like > realize(User['ahab']){ensure => absent } > As this is not working, I wonder how to delete a realized virtual user. > > If you use resource collection instead of

Re: [Puppet Users] deleting virtual users

2012-09-27 Thread erkan yanar
Hoi John, On Thu, Sep 27, 2012 at 06:09:28AM -0700, jcbollinger wrote: > > > On Wednesday, September 26, 2012 2:15:27 PM UTC-5, erkules wrote: > > > > On Wed, Sep 26, 2012 at 12:00:10PM -0700, Jo Rhett wrote: > > > Realizing doesn't allow overrides. To remove the user: > > > > > > @user ahab

Re: [Puppet Users] deleting virtual users

2012-09-28 Thread Luke Bigum
This may not fit your requirements but a slightly safer alternative might be set your old users' shells to /bin/false and null out their password, rather than delete them. A small added bonus is if your UIDs are never reused then all your UIDs will resolve to user accounts, which can be helpful