summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2017-02-11 13:11:46 +0000
committerintrigeri <intrigeri@boum.org>2017-02-11 13:11:46 +0000
commitdc985ce8e93750ec138ce9d09ae4b7d1f2319a8c (patch)
tree5c0d686382729d1bd6905ae9eaba9d988ee2b63f
parent350fc0f8ea76174e8fa0f70a38621afaa13a9db8 (diff)
weblate: manage Apache service and a symlink to its configuration.
-rw-r--r--manifests/weblate.pp20
1 files changed, 19 insertions, 1 deletions
diff --git a/manifests/weblate.pp b/manifests/weblate.pp
index 7cefffa..557bdea 100644
--- a/manifests/weblate.pp
+++ b/manifests/weblate.pp
@@ -86,6 +86,13 @@ class tails::weblate (
user => root,
}
+ # Service
+
+ service { 'apache2':
+ ensure => running,
+ require => Package[apache2],
+ }
+
# Configuration
file { "${mutable_data_dir}/config":
@@ -95,13 +102,24 @@ class tails::weblate (
mode => '2775',
}
- file { "${mutable_data_dir}/config/settings.py":
+ file { "${mutable_data_dir}/config/apache-vhost.conf":
ensure => present,
owner => root,
group => 'weblate_admin',
mode => '0664',
}
+ file { '/etc/apache2/sites-available/000-default.conf':
+ ensure => symlink,
+ target => "${mutable_data_dir}/config/apache-vhost.conf",
+ notify => Service[apache2],
+ }
+ file { "${mutable_data_dir}/config/settings.py":
+ ensure => present,
+ owner => root,
+ group => 'weblate_admin',
+ mode => '0664',
+ }
file { "${code_git_checkout}/weblate/settings.py":
ensure => symlink,
target => "${mutable_data_dir}/config/settings.py",