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
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
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
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 =>
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