From 08fc0687691c7b6a84889c328cd11509b7e8caad Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Wed, 22 Apr 2015 14:16:09 +0200 Subject: autobackup --- global/overlay/etc/puppet/modules/sunet/manifests/wordpress.pp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'global/overlay/etc') 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}" + ] + } } } -- cgit v1.1