There is a package_name parameter in the Forge module. It's designed to
allow you to install e.g. MariaDB instead of MySQL, but it would work
fine for your use case as well.
On 2016-08-29 02:00 PM, Suresh Rajagopal wrote:
Hi Lowe,
My concern is with package name. MySQL package name differs for each
version. In the forge module, if you try installing with
mysql::server(ensure=>5.6.31) it will fail if you don't pass package
name as(MySQL-server) an argument.
5.0/5.1 ---> MySQL-server-community
5.6 ----> MySQL-server
5.7 --->mysql-community-server
How to handle this logic ?
Thanks
Suresh Rajagopal
------------------------------------------------------------------------
*From:* Lowe Schmidt <m...@loweschmidt.se>
*To:* puppet-users@googlegroups.com
*Sent:* Monday, August 29, 2016 7:29 AM
*Subject:* Re: [Puppet Users] mysql package name
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 <sures...@gmail.com
<mailto:sures...@gmail.com>> 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 puppet-users+unsubscribe@ googlegroups.com
<mailto:puppet-users+unsubscr...@googlegroups.com>.
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
<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
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/CAC-wWcT%2BD0BgoAa238y2xgn3dV5XByTSewJTk5hGOx4cR2GuQg%40mail.gmail.com
<https://groups.google.com/d/msgid/puppet-users/CAC-wWcT%2BD0BgoAa238y2xgn3dV5XByTSewJTk5hGOx4cR2GuQg%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
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/1151442669.1567854.1472493607331%40mail.yahoo.com
<https://groups.google.com/d/msgid/puppet-users/1151442669.1567854.1472493607331%40mail.yahoo.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/148610e9-6fb8-ba33-0348-5af4b6c0ed6f%40alter3d.ca.
For more options, visit https://groups.google.com/d/optout.