summaryrefslogtreecommitdiff
path: root/global/overlay/etc/puppet/manifests/cosmos-site.pp
diff options
context:
space:
mode:
authorJohan Lundberg <lundberg@nordu.net>2015-04-28 14:00:20 +0200
committerJohan Lundberg <lundberg@nordu.net>2015-04-28 14:00:20 +0200
commit15dba620b3b2702d7707087279677d9dcfb92fbb (patch)
treeaee530dc85a6dc656c640085359198d08f0bb3f5 /global/overlay/etc/puppet/manifests/cosmos-site.pp
parented5f3a1b427814c9a7bc21fd0617dc922e93a5e0 (diff)
Added flog files.sunet-ops-2015-04-28-v03
Diffstat (limited to 'global/overlay/etc/puppet/manifests/cosmos-site.pp')
-rw-r--r--global/overlay/etc/puppet/manifests/cosmos-site.pp13
1 files changed, 13 insertions, 0 deletions
diff --git a/global/overlay/etc/puppet/manifests/cosmos-site.pp b/global/overlay/etc/puppet/manifests/cosmos-site.pp
index b7b1601..f2d532a 100644
--- a/global/overlay/etc/puppet/manifests/cosmos-site.pp
+++ b/global/overlay/etc/puppet/manifests/cosmos-site.pp
@@ -698,6 +698,7 @@ node 'cdr1.sunet.se' {
node 'sto-tug-kvm2.swamid.se' {
class { 'sunet::nagios': }
+ $postgres_password = hiera('flog_postgres_password', 'NOT_SET_IN_HIERA'),
file {'/var/docker':
ensure => 'directory',
} ->
@@ -747,6 +748,18 @@ node 'sto-tug-kvm2.swamid.se' {
group => 'www-data',
mode => '1775',
} ->
+ file { "/opt/flog/nginx/certs/flog.sunet.se.key":
+ ensure => file,
+ path => "/opt/flog/nginx/certs/flog.sunet.se.key",
+ mode => '0640',
+ content => hiera('server_cert_key', 'NOT_SET_IN_HIERA'),
+ } ->
+ file { "/opt/flog/dotenv":
+ ensure => file,
+ path => "/opt/flog/dotenv",
+ mode => '0640',
+ content => template('sunet/flog/dotenv.erb'),
+ } ->
sunet::docker_run {'flog_db':
image => 'docker.sunet.se/flog/postgresql-9.3',
volumes => ['/opt/flog/postgres/ssl:/etc/ssl', '/var/docker/postgresql_data/:/var/lib/postgresql/','/var/log/flog_db/:/var/log/postgresql/'],