On 11/25/15 9:03 AM, Matt Shields wrote:
> 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
>
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
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/5655F53D.5040401%40garretthoneycutt.com.
For more options, visit https://groups.google.com/d/optout.