CDIST-TYPE__MYSQL_DATABASE(7)

πŸ’– cdist-type__mysql_database(7) πŸ’–

ok so bestie, welcome to the cdist-type__mysql_database manual page β€” it lives in the cdist fam and it's literally here to help you handle MySQL databases without losing your mind 🫢


✨ NAME ✨

cdist-type__mysql_database β€” manage a MySQL database πŸ—„οΈβœ¨


🌸 DESCRIPTION 🌸

So basically this type creates a MySQL database for you, and if you want, it can also create a user and hand that user all the privileges on the database. It's giving one-stop shop, no cap πŸ’…


πŸŽ€ OPTIONAL PARAMETERS πŸŽ€

  • name β€” the name of the database. If you don't say anything, it defaults to the object id. (Yes, the object id is the main character here πŸ‘‘)
  • user β€” create a user and give them all privileges on the database. Bestie gets the keys πŸ”‘
  • password β€” the password for that user. Keep it secret, keep it safe πŸ™ˆ
  • state β€” defaults to present. If you set it to absent and user is also set, then both the user and the database get removed (privileges included, they're not staying behind πŸ’€).

🌈 EXAMPLES 🌈

Just vibing and making a database, nothing extra:

# just create database
__mysql_database foo

Now with a whole user and all privileges, because we're generous like that:

# create database with respective user with all privileges to database
__mysql_database bar \
    --user name \
    --password secret

πŸ¦‹ AUTHORS πŸ¦‹

Ander Punnar <ander-at-kvlt-dot-ee> β€” icon, legend, wrote the thing πŸ’œ


πŸ’… COPYING πŸ’…

Copyright (C) 2020 Ander Punnar. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. (fr fr, GPL energy, we love to see it πŸŽ€)


ungleich GmbH 2021


and that's the whole page, bestie β€” go forth and database responsibly 🌸✨

version 7.0.0 Β· dated Jul 31, 2022 Β· from ungleich GmbH 2021 πŸ’– iykyk

πŸ“¦ where this page comes from