Have a look at the mysql module in the forge [0]. They solve it by having a package_ensure parameter to the mysql::server class which is one of [ 'present', 'latest, 'absent', 'x.y.z' ] where "x.y.z" is a version string.
[0] https://forge.puppet.com/puppetlabs/mysql#mysqlserver -- Lowe Schmidt | +46 723 867 157 On 29 August 2016 at 06:42, Suresh Rajagopal <[email protected]> wrote: > Hi, > > Puppet 3.4 with hieara. > > what is the best place to define package name within a module? package > name varies based on package version. > > Thanks > Suresh Rajagopal > > -- > 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/c66b04fb-2591-47da-af56-8f7eda59f964%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/c66b04fb-2591-47da-af56-8f7eda59f964%40googlegroups.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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAC-wWcT%2BD0BgoAa238y2xgn3dV5XByTSewJTk5hGOx4cR2GuQg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
