On 07/28/2011 10:53 AM, Simon Blake wrote:
> vars
> set_new_mysql_password::
> "newpass" string => execresult("/usr/bin/makepasswd --chars
> 12","noshell");
>
> commands
> "/usr/bin/mysqladmin status"
> repair_failed => { "set_new_mysql_password" };
>
> set_new_mysql_password::
> "/do/the/mysql/fix/with $newpass"
>
> would be perfect. If I do that, though, $(newpass) is never
> instantiated.
You could try to move promise which checks status to separate bundle,
which is executed before repair one.
--
Mikhail Gusarov
Systems Engineer
CFEngine AS
Nydalsveien 33
0484 Oslo
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine