diff options
author | Leif Johansson <leifj@sunet.se> | 2015-03-06 15:43:56 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2015-03-06 15:43:56 +0100 |
commit | 1bbaf98b8c4c673dfaa622f7ab1a7fcef0518ca5 (patch) | |
tree | 05c9eea8d135e89bcf3499f743c8e208ceb80f4d | |
parent | 1b20549f2d16c07fa837fbb3a80491d079deb455 (diff) |
fix wpsunet-ops-2015-03-06-v16
-rw-r--r-- | global/overlay/etc/puppet/modules/sunet/manifests/wordpress.pp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/global/overlay/etc/puppet/modules/sunet/manifests/wordpress.pp b/global/overlay/etc/puppet/modules/sunet/manifests/wordpress.pp index dc44a56..75eed96 100644 --- a/global/overlay/etc/puppet/modules/sunet/manifests/wordpress.pp +++ b/global/overlay/etc/puppet/modules/sunet/manifests/wordpress.pp @@ -6,7 +6,10 @@ $db_host = undef, $wordpress_version = "4.1.1", $myqsl_version = "5.7") { - $db_hostname = $db_host ? $db_host : "mysql_${sanitized_name}.docker" + $db_hostname = $db_host ? { + undef => "mysql_${sanitized_name}.docker", + default => $db_host + } $sanitized_name = regsubst($name, '[^0-9A-Za-z.\-]', '-', 'G') $pwd = hiera('${sanitized_name}_db_password','NOT_SET_IN_HIERA') sunet::docker_run { |