Stuart Grimshaw
2013-Mar-12 10:45 UTC
[Puppet Users] Only running database_grant the first time.
I''m using puppet through Vagrant to manage my dev VM, and as part of that I have a few database grants that I run after creating users, but when I subsequently run vagrant up or provision these grants fail (because of some changes I make to the mysql config after they have been created.) I''m using database_grant to execute the grants, but there doesn''t seem to be a refreshonly parameter for it? Is there any way to avoid running these grants again? -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
refreshonly should be built in to all types. Did you actually try it, or did you just not see any docs saying it was there? On Tuesday, March 12, 2013 4:45:58 AM UTC-6, Stuart Grimshaw wrote:> > I''m using puppet through Vagrant to manage my dev VM, and as part of that > I have a few database grants that I run after creating users, but when I > subsequently run vagrant up or provision these grants fail (because of some > changes I make to the mysql config after they have been created.) > > I''m using database_grant to execute the grants, but there doesn''t seem to > be a refreshonly parameter for it? > > Is there any way to avoid running these grants again? >-- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Ramin K
2013-Mar-12 18:49 UTC
Re: [Puppet Users] Re: Only running database_grant the first time.
refreshonly is not a meta parameter and only applies to the exec type. http://docs.puppetlabs.com/references/latest/metaparameter.html Also it is not a parameter of the puppetlabs-mysql database_grant type. Stuart, Best to link to the module you are using, how you''re calling it, and the errors/logs from when it runs. The code should check to see if the grant exists, and then execute or not as needed. I''m also curious about the Mysql config changes that you mention might be causing the problem. Ramin On 3/12/2013 9:25 AM, joe wrote:> refreshonly should be built in to all types. Did you actually try it, or > did you just not see any docs saying it was there? > > On Tuesday, March 12, 2013 4:45:58 AM UTC-6, Stuart Grimshaw wrote: > > I''m using puppet through Vagrant to manage my dev VM, and as part of > that I have a few database grants that I run after creating users, > but when I subsequently run vagrant up or provision these grants > fail (because of some changes I make to the mysql config after they > have been created.) > > I''m using database_grant to execute the grants, but there doesn''t > seem to be a refreshonly parameter for it? > > Is there any way to avoid running these grants again? > > -- > 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+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > >-- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.