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.
logincreatedbcreaterolesuperuserinherit
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 π
cdist-type__postgres_database(7)β her sister type, go say hi- the postgresql documentation, specifically the createrole page: <http://www.postgresql.org/docs/current/static/sql-createrole.html> π
β 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 π
π COPYRIGHT π
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
- fedora 43: cdist 7.0.0-16.fc43 Β· GPL-3.0-only
- fedora 44: cdist 7.0.0-18.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms