From fca8c7264840b5d6b65d3c7b44d72b52f08b1543 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Thu, 23 May 2013 15:04:42 +0000 Subject: buildsystem: add option to change maintdb hostname --- modules/buildsystem/manifests/maintdb.pp | 2 +- modules/buildsystem/manifests/var/maintdb.pp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/buildsystem/manifests') 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' ) { -- cgit v1.2.1