summaryrefslogtreecommitdiff
path: root/puppet/modules/soledad/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules/soledad/manifests')
-rw-r--r--puppet/modules/soledad/manifests/server.pp11
1 files changed, 9 insertions, 2 deletions
diff --git a/puppet/modules/soledad/manifests/server.pp b/puppet/modules/soledad/manifests/server.pp
index 00fee4ac..ba482f29 100644
--- a/puppet/modules/soledad/manifests/server.pp
+++ b/puppet/modules/soledad/manifests/server.pp
@@ -13,6 +13,9 @@ class soledad::server {
$x509_cert = $x509['cert']
$x509_ca = $x509['ca_cert']
+ $soledad = hiera('soledad')
+ $soledad_port = $soledad['port']
+
x509::key { 'soledad':
content => $x509_key,
notify => Service['soledad-server'];
@@ -46,8 +49,12 @@ class soledad::server {
}
file { '/etc/default/soledad':
- content => "CERT_PATH=/etc/x509/certs/soledad.crt\nPRIVKEY_PATH=/etc/x509/keys/soledad.key\n",
- require => Package['soledad-server']
+ content => template('soledad/default-soledad.erb'),
+ owner => 'soledad',
+ group => 'soledad',
+ mode => '0600',
+ notify => Service['soledad-server'],
+ require => Class['soledad'];
}
service { 'soledad-server':