Hello Sergiu,

There is no need to run manual SQL code since the puppettlabs-mysql module 
has providers for this. I found an example being used in the 
puppetlabs-mysql module itself. See 
https://github.com/puppetlabs/puppetlabs-mysql/blob/master/manifests/server/account_security.pp

See the bottom of the file where the 'test' database is removed that is 
present by default on fresh MySQL installations.

Regards, Martijn

Op donderdag 10 december 2015 15:20:46 UTC+1 schreef Sergiu Cornea:
>
> Hello guys,
>
> I am not sure if this question has been asked, however I wasn't able to 
> find something about it on Google, therefore, I am going to ask it here:
>
> So, I have created 3 DBs using PuppetLabs MYSQL module, however, I don't 
> know how to create the code to delete a database.
>
> I have tried mysql::db { 'test': 
>                            ensure => 'absent',
>               }
>
> but unfortunately it didn't worked, I've asked on the IRC channel and 
> someone told me to use the 'destroy' function but I have no clue on how to 
> use it, therefore, could someone point me in the right direction please?
>
> Thank you,
>
> Kind regards,
> Sergiu
>

-- 
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/463e2ffe-a82e-4880-a20b-712797ef2dd9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to