diff options
author | Johan Lundberg <lundberg@nordu.net> | 2015-03-31 13:32:52 +0200 |
---|---|---|
committer | Johan Lundberg <lundberg@nordu.net> | 2015-03-31 13:32:52 +0200 |
commit | 68251025dd8c8c10b81978e41a069afd7b49bfd5 (patch) | |
tree | c53f1f2e1a34ccb16d4d173dcfa20b0339d3e90f /global/overlay | |
parent | 4f19a30761313393ee3c624beb854e68011fd7d1 (diff) |
Adding postgres user to sto-tug-kvm2.sunet-ops-2015-03-31-v11
Diffstat (limited to 'global/overlay')
-rw-r--r-- | global/overlay/etc/puppet/manifests/cosmos-site.pp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/global/overlay/etc/puppet/manifests/cosmos-site.pp b/global/overlay/etc/puppet/manifests/cosmos-site.pp index 2c2eb32..3f2c9af 100644 --- a/global/overlay/etc/puppet/manifests/cosmos-site.pp +++ b/global/overlay/etc/puppet/manifests/cosmos-site.pp @@ -697,12 +697,24 @@ node 'cdr1.sunet.se' { } node 'sto-tug-kvm2.swamid.se' { - #class { 'fail2ban': } + #class { 'fail2ban': } + sunet::system_user {'postgres-system-user': + username => 'postgres', + group => 'postgres', + } -> + sunet::add_user_to_group { 'postgres_ssl_cert_access': + username => 'postgres', + group => 'ssl-cert', + } -> file {'/opt/docker/postgresql_data': ensure => 'directory', + owner => 'postgres', + group => 'postgres', } -> file {'/var/log/flog_db': ensure => 'directory', + owner => 'postgres', + group => 'postgres', } -> sunet::docker_run {'flog_db': image => 'docker.sunet.se/flog/postgresql-9.3', |