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
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
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
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
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.
> >
>
>
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
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
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
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