CDIST-TYPE__POSTGRES_ROLE(7)

πŸ’– cdist-type__postgres_role β€” bestie's guide to postgres roles πŸ’–

okay so real talk, this is a page from the cdist manual, section 7, and it's all about the cdist-type__postgres_role type. yes, the name is a whole mouthful, i know, but she's worth it 🫢


✨ NAME ✨

cdist-type__postgres_role β€” managing postgres roles, the cdist way πŸ’…


🌸 DESCRIPTION 🌸

so this cdist type lets you create or drop postgres roles. that's the whole vibe. you want a role? slay, she's here. you want that role gone? also handled. no cap ✨


πŸŽ€ OPTIONAL PARAMETERS πŸŽ€

  • state β€” either "present" or "absent", and if you just don't say anything she defaults to "present" πŸ’–

also, literally all the other parameters map directly to the corresponding postgres createrole parameters. like, straight up. same names, same energy, no translation layer, iykyk.

  • password β€” yeah, that one. the password. πŸ”

🌈 BOOLEAN PARAMETERS 🌈

same deal as above bestie β€” all parameters map directly to the corresponding postgres createrole parameters. so whatever createrole calls it, that's what you call it here.

  • login
  • createdb
  • createrole
  • superuser
  • inherit

that's the whole list. go wild πŸ’…


πŸ¦‹ EXAMPLES πŸ¦‹

here's the part where it all clicks, fr fr. watch:

__postgres_role myrole
__postgres_role myrole --password 'secret'
__postgres_role admin --password 'very-secret' --superuser
__postgres_role dbcustomer --password 'bla' --createdb

see? iconic. look at admin out here with --superuser, main character energy honestly πŸ‘‘


πŸ’œ SEE ALSO πŸ’œ


⭐ AUTHORS ⭐

  • Steven Armstrong <steven-cdist--@--armstrong.cc> β€” the legend who wrote this 🫢

πŸ“œ COPYING πŸ“œ

Copyright (C) 2011 Steven Armstrong. 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.

like, go ahead and remix it bestie, just keep the license, that's the rules πŸ’–


ungleich GmbH 2021


and that's the whole page!! this version is 7.0.0, dated Jul 31, 2022, and it's a cdist type page through and through. mwah, bye bestie πŸ’‹πŸ’–βœ¨

πŸ“¦ where this page comes from