Thanks, I will continue like that.
On Thu, Nov 14, 2013 at 1:17 AM, jcbollinger <[email protected]>wrote: > > > On Wednesday, November 13, 2013 2:32:36 PM UTC-6, SAF wrote: >> >> Hi, >> >> What would be the best way to get a something from mysql? >> I was looking at hira-mysql, but it doesn't seem to be able to run >> arbitrary commands. >> For example, I want to get part of the motd from mysql, depending on the >> hostname. Up until now, i was using a script, calling it with generate the >> master side, and using the result in a template: >> $motd = generate ('/etc/puppet/bin/getmotd',$hostname) >> But maybe there'a more ... puppet way? >> >> > > If you have a use case that doesn't mesh well with hiera-mysql, then your > best options are generate() or your own custom function. > > > John > > > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/60ec627b-4906-42bb-9e1b-fe833bdf0561%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > -- Beware of programmers who carry screwdrivers! -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CANK4U2pG89Kk%2B1ysHNH5WAVvMp8o6bQVdjxNJ-34-Ned6JhQpg%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
