puppet: Add postgres user to Zulip group.

This commit is contained in:
Tim Abbott 2016-07-31 19:16:51 -07:00
parent 04fc3ff1e1
commit 1c65508624
1 changed files with 7 additions and 0 deletions

View File

@ -47,4 +47,11 @@ class zulip::postgres_common {
source => "puppet:///modules/zulip/postgresql/pg_backup_and_purge.py",
require => File["/usr/local/bin/env-wal-e"],
}
# Use arcane puppet virtual resources to add postgres user to zulip group
@user { 'postgres':
groups => ['ssl-cert'],
membership => minimum,
}
User <| title == postgres |> { groups +> "zulip" }
}