summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2015-04-22 14:16:09 +0200
committerLeif Johansson <leifj@sunet.se>2015-04-22 14:16:09 +0200
commit08fc0687691c7b6a84889c328cd11509b7e8caad (patch)
tree742457af7d8fdc58ea8fa154362a82a8aeb6ec36
parent050911fb11218e3d0ee57fccabbdcb0f9f4690c1 (diff)
-rw-r--r--global/overlay/etc/puppet/modules/sunet/manifests/wordpress.pp10
1 files changed, 10 insertions, 0 deletions
diff --git a/global/overlay/etc/puppet/modules/sunet/manifests/wordpress.pp b/global/overlay/etc/puppet/modules/sunet/manifests/wordpress.pp
index d9eeae4..1d96d4e 100644
--- a/global/overlay/etc/puppet/modules/sunet/manifests/wordpress.pp
+++ b/global/overlay/etc/puppet/modules/sunet/manifests/wordpress.pp
@@ -37,5 +37,15 @@ $myqsl_version = "5.7")
"MYSQL_ROOT_PASSWORD=${pwd}",
"MYSQL_DATABASE=${name}"]
}
+ package {'automysqlbackup': require => latest } ->
+ auges { 'automysqlbackup_settings':
+ incl => "/etc/default/automysqlbackup",
+ lens => "Shellvars.lns",
+ changes => [
+ "set USERNAME=${name}",
+ "set PASSWORD=${pwd}",
+ "set DBHOST=${db_hostname}"
+ ]
+ }
}
}