Re: [Puppet Users] exec not executing

2016-02-23 Thread Craig Dunn
On Tue, Feb 23, 2016 at 12:41 AM, Tim Dunphy wrote: > Craig and Christan.. thanks for your input! What I was trying to do with the > 'refreshonly' statement was to get the exec statement to run only once. > > How would I be able to achieve getting the exec command to run

Re: [Puppet Users] exec not executing

2016-02-22 Thread Tim Dunphy
Hi Peter, It looks like it's the quotes in your command. The entire command is > wrapped in double quotes, and the actual mysql command should be wrapped in > single quotes, but isn't. Also you have admin, localhost, and secret in > single quotes that aren't escaped. You will need to escape all

Re: [Puppet Users] exec not executing

2016-02-22 Thread Cristian Falcas
Hi, It's because you are using "refreshonly => true,". In order to work, you need to use something like this after you includes: Class['bacula::config'] ~> Class['bacula::exec'] If you want your exec to run after configuration changes. Or remove the refreshonly parameter if you want it to

Re: [Puppet Users] exec not executing

2016-02-22 Thread Craig Dunn
On Mon, Feb 22, 2016 at 8:14 AM, Tim Dunphy wrote: > Hey guys, > > I wrote an exec class for one of my modules. And for some reason, on puppet > runs it's not executing. > > Here's the class: > > class bacula::exec { > > exec { 'create.mysql.admin.user': > path =>

Re: [Puppet Users] exec not executing

2016-02-21 Thread Peter Bukowinski
It looks like it's the quotes in your command. The entire command is wrapped in double quotes, and the actual mysql command should be wrapped in single quotes, but isn't. Also you have admin, localhost, and secret in single quotes that aren't escaped. You will need to escape all the single