diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-06-15 19:03:23 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-06-15 19:03:23 +0200 |
commit | 73b98210f69455b33116f8c2ca3aab6daf473bab (patch) | |
tree | 1c059346ab41ac895ddbf1e7b4cc10918b6cdb18 /manifests/database.pp | |
parent | Initial commit. (diff) | |
download | concourse-73b98210f69455b33116f8c2ca3aab6daf473bab.tar.gz concourse-73b98210f69455b33116f8c2ca3aab6daf473bab.tar.xz |
Initial add.
Diffstat (limited to '')
-rw-r--r-- | manifests/database.pp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/manifests/database.pp b/manifests/database.pp new file mode 100644 index 0000000..d921cc9 --- /dev/null +++ b/manifests/database.pp @@ -0,0 +1,13 @@ +class concourse::database ( + String $username = lookup("concourse::${cluster}::postgres_user"),, + Variant[String, Sensitive[String]] $password = lookup("concourse::${cluster}::postgres_user"), + String $db_name = "atc-${cluster}", + String $cluster = $concourse::default_cluster, +) { + postgresql::server::db { $db_name: + user => $username, + password => $password, + grant => 'ALL', + comment => 'Concourse CI', + } +} |