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 run always. Best regards, Cristi On Mon, Feb 22, 2016 at 9:14 AM, Tim Dunphy <bluethu...@gmail.com> 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 => "/bin", > command => "mysql -e 'grant all privileges on *.* to 'admin'@'localhost' > identified by 'secret';", > refreshonly => true, > } > > } > > This is my init file: > > class bacula { > > include bacula::install, bacula::service, bacula::cron, > bacula::config, bacula::exec > > } > > Any thoughts or opininions welcomed! > > Tim > > > -- > GPG me!! > > gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/CAOZy0eky4KpzhZ4NS2BUQSSb7HK6L4HyEpPJAoRaaGK2dYW64w%40mail.gmail.com > <https://groups.google.com/d/msgid/puppet-users/CAOZy0eky4KpzhZ4NS2BUQSSb7HK6L4HyEpPJAoRaaGK2dYW64w%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMo7R_dvtgYgJPmbNTjebccs75DkQdA1LZc9bnPgKdsoCLqUbA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.