aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/manifests
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-05-23 15:04:42 +0000
committerNicolas Vigier <boklm@mageia.org>2013-05-23 15:04:42 +0000
commitfca8c7264840b5d6b65d3c7b44d72b52f08b1543 (patch)
treed62cae51e3fd1626ad094174d6d2ac3605a33a10 /modules/buildsystem/manifests
parent01daeb6cc82c36842257f6a444a304969324ed67 (diff)
downloadpuppet-fca8c7264840b5d6b65d3c7b44d72b52f08b1543.tar
puppet-fca8c7264840b5d6b65d3c7b44d72b52f08b1543.tar.gz
puppet-fca8c7264840b5d6b65d3c7b44d72b52f08b1543.tar.bz2
puppet-fca8c7264840b5d6b65d3c7b44d72b52f08b1543.tar.xz
puppet-fca8c7264840b5d6b65d3c7b44d72b52f08b1543.zip
buildsystem: add option to change maintdb hostname
Diffstat (limited to 'modules/buildsystem/manifests')
-rw-r--r--modules/buildsystem/manifests/maintdb.pp2
-rw-r--r--modules/buildsystem/manifests/var/maintdb.pp1
2 files changed, 2 insertions, 1 deletions
diff --git a/modules/buildsystem/manifests/maintdb.pp b/modules/buildsystem/manifests/maintdb.pp
index c9593b56..05f660b1 100644
--- a/modules/buildsystem/manifests/maintdb.pp
+++ b/modules/buildsystem/manifests/maintdb.pp
@@ -45,7 +45,7 @@ class buildsystem::maintdb {
require => User[$buildsystem::var::maintdb::login],
}
- apache::vhost::base { "maintdb.$::domain":
+ apache::vhost::base { $buildsystem::var::maintdb::hostname:
location => $buildsystem::var::maintdb::dbdir,
content => template('buildsystem/maintdb/vhost_maintdb.conf'),
}
diff --git a/modules/buildsystem/manifests/var/maintdb.pp b/modules/buildsystem/manifests/var/maintdb.pp
index cb8466a5..537489af 100644
--- a/modules/buildsystem/manifests/var/maintdb.pp
+++ b/modules/buildsystem/manifests/var/maintdb.pp
@@ -1,4 +1,5 @@
class buildsystem::var::maintdb(
+ $hostname = "maintdb.$::domain",
$login = 'maintdb',
$homedir = '/var/lib/maintdb'
) {