diff options
| author | alex <alex@pdp7.net> | 2023-03-04 18:54:23 +0100 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2023-03-04 18:54:23 +0100 |
| commit | a91f76bc01c2b4df09e6f67892a7835fcc493430 (patch) | |
| tree | 86b2aaba4fb1bb0784c83b144d84bcc1ccf3a512 /personal_infra/puppet/modules | |
| parent | a6178a89de4218fc76f829b5d839eb9a089ec46b (diff) | |
Install postgres
Diffstat (limited to 'personal_infra/puppet/modules')
| -rw-r--r-- | personal_infra/puppet/modules/postgres/manifests/init.pp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/personal_infra/puppet/modules/postgres/manifests/init.pp b/personal_infra/puppet/modules/postgres/manifests/init.pp new file mode 100644 index 00000000..5213db62 --- /dev/null +++ b/personal_infra/puppet/modules/postgres/manifests/init.pp @@ -0,0 +1,16 @@ +class postgres { + package {'pgdg-redhat-repo': + source => 'https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm', + } + -> + package {'postgresql15-server':} + -> + exec {'/usr/pgsql-15/bin/postgresql-15-setup initdb': + creates => '/var/lib/pgsql/15/data/PG_VERSION', + } + -> + service {'postgresql-15': + ensure => running, + enable => true, + } +} |
