Cfengine Help: Re: MySQL backup via Cfengine3

2010-12-04 Thread no-reply
Forum: Cfengine Help Subject: Re: MySQL backup via Cfengine3 Author: ro Link to topic: https://cfengine.com/forum/read.php?3,19623,19630#msg-19630 Nice, that finally did the trick: body agent control { any:: #[...] environment => { "DEBIAN_FRONTEND=noninteractive","HOME=/

Cfengine Help: Re: MySQL backup via Cfengine3

2010-12-04 Thread no-reply
Forum: Cfengine Help Subject: Re: MySQL backup via Cfengine3 Author: mark Link to topic: https://cfengine.com/forum/read.php?3,19623,19629#msg-19629 An alternative would be to set the environment variable in the control body http://www.cfengine.org/manuals/cf3-reference.html#environment-in-agent

Cfengine Help: Re: MySQL backup via Cfengine3

2010-12-04 Thread no-reply
Forum: Cfengine Help Subject: Re: MySQL backup via Cfengine3 Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,19623,19628#msg-19628 Well, it seems like mysqldump relies on $HOME environment variable which is obviously unset. Try to add the command line option which spe

Cfengine Help: Re: MySQL backup via Cfengine3

2010-12-04 Thread no-reply
Forum: Cfengine Help Subject: Re: MySQL backup via Cfengine3 Author: ro Link to topic: https://cfengine.com/forum/read.php?3,19623,19627#msg-19627 The body now looks like this: body contain rootshell { useshell => "true"; umask => "077"; exec_owner => "root"; chdi

Cfengine Help: Re: MySQL backup via Cfengine3

2010-12-04 Thread no-reply
Forum: Cfengine Help Subject: Re: MySQL backup via Cfengine3 Author: Seva Gluschenko Link to topic: https://cfengine.com/forum/read.php?3,19623,19625#msg-19625 Perhaps, you should add the following to your body contain: chdir => "/root"; ___ Help-cfe