Puppetlabs/mysql forge module - user accounts

27 views
Skip to first unread message

Matt Shields

unread,
Nov 25, 2015, 9:03:02 AM11/25/15
to Puppet Users
I'm using the Puppetlabs/mysql forge module and I have it creating a db and adding a few users.  Is there a way to automatically remove any accounts that are not defined in my puppet script?  For example, if an admin manually created a user?

-matt

Garrett Honeycutt

unread,
Nov 25, 2015, 12:52:12 PM11/25/15
to puppet...@googlegroups.com
Hi Matt,

You should be able to specify purging using the resources resource. This
will purge any mysql_user that is not explicitly defined through Puppet.

resources { 'mysql_user':
purge => true,
}

Best regards,
-g

--
Garrett Honeycutt
@learnpuppet
Puppet Training with LearnPuppet.com
Mobile: +1.206.414.8658
Reply all
Reply to author
Forward
0 new messages