From 1b20549f2d16c07fa837fbb3a80491d079deb455 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Fri, 6 Mar 2015 15:41:17 +0100 Subject: fix wp --- global/overlay/etc/puppet/modules/sunet/manifests/wordpress.pp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'global/overlay/etc/puppet/modules/sunet/manifests') diff --git a/global/overlay/etc/puppet/modules/sunet/manifests/wordpress.pp b/global/overlay/etc/puppet/modules/sunet/manifests/wordpress.pp index 25fba72..dc44a56 100644 --- a/global/overlay/etc/puppet/modules/sunet/manifests/wordpress.pp +++ b/global/overlay/etc/puppet/modules/sunet/manifests/wordpress.pp @@ -1,6 +1,11 @@ # a basic wp setup using docker -define sunet::wordpress ($name => undef, $wordpress_version => "4.1.1", $myqsl_version="5.7", $db_host => undef) { +define sunet::wordpress ( +$name = undef, +$db_host = undef, +$wordpress_version = "4.1.1", +$myqsl_version = "5.7") +{ $db_hostname = $db_host ? $db_host : "mysql_${sanitized_name}.docker" $sanitized_name = regsubst($name, '[^0-9A-Za-z.\-]', '-', 'G') $pwd = hiera('${sanitized_name}_db_password','NOT_SET_IN_HIERA') -- cgit v1.1