Ask Your Question
0

Purging all local users and groups not managed by Puppet

asked 2013-10-24 16:57:12 -0500

Rodney gravatar image

So I want to purge any users and groups (system accounts or regular) that are not managed by Puppet.

I am currently using:

resources { 'user':
    purge => true,
    unless_system_user => false,
}

resources { 'group':
    purge => true,
    unless_system_user => false,
}

I was getting errors because some primary groups were being attempted for deletion before the user itself was. So I added

Resources['user'] -> Resources['group']

That did not resolve the issue. I also tried using require and before with the same effect.

I need the resources['user'] purge to occur before the group purge. I am on Puppet 3.1.1.

Is there some mechanism ... (more)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-10-28 14:48:09 -0500

Rodney gravatar image
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-10-24 16:57:12 -0500

Seen: 340 times

Last updated: Oct 28 '13