Re: [Puppet Users] puppet agent cache files used in exec?

2012-11-28 Thread Peter Meier
> Could puppet cache /root/.my.cnf and reread it only after reboot.
> I see no other explanation. Is it bug?

No, puppet does nothing like that. It's strange that it works *now* but
I would say the problem is definitely somewhere else.

~pete




signature.asc
Description: OpenPGP digital signature


[Puppet Users] puppet agent cache files used in exec?

2012-11-28 Thread Vasil Mikhalenya
Hi all,

my problem is described below

puppet agent do Exec :

exec {"create-${user}-${host}-${database}-user-mycnf":
  creates => $outfile,
  cwd => "/tmp",
  command => "${outscript}",
  provider => shell
}

of shell script $outscipt :
#!/bin/bash
mysql -e "grant all on mydb.* to 'myuser'@'%' identified by '$pw';"
touch $outfile

mysql uses password in /root/.my.cnf

it was failing for a long time.
Today I restarted agent (actually upgraded to 2.7.20)
after restart of agent Exec was run sucessfully

my.cnf was changed a long time ago ($outfile was removed in that time
also). I suppose Exec started to fail after changing mysql password.

Could puppet cache /root/.my.cnf and reread it only after reboot.
I see no other explanation. Is it bug?

thanks in advance
-- 
Best regards,
Vasil Mikhalenya

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.