Suresh Rajagopal writes:
> version is passed via hiera. params.pp has the logic to decide the
> package name based version. Is it a good practice to have this logic
> in params.pp ?
The philosophy I use in my own modules is that params.pp should provide
the best possible default based on the host
Yes, you can see where the mysql module from Puppet does that, starting on
this line:
https://github.com/puppetlabs/puppetlabs-mysql/blob/master/manifests/params.pp#L58
Rob Nelson
rnels...@gmail.com
On Mon, Aug 29, 2016 at 3:46 PM, Suresh Rajagopal
wrote:
> Hi Rob,
>
> version is passed via hi
Hi Rob,
version is passed via hiera. params.pp has the logic to decide the package name
based version. Is it a good practice to have this logic in params.pp ?
ThanksSuresh
From: Rob Nelson
To: "puppet-users@googlegroups.com"
Sent: Monday, August 29, 2016 11:41 AM
Subject: Re: [Puppet
If you dig deeper into the forge module, I think you will find that
defaults are set in manifests/params.pp and set in the main class as
`$client_package_name = $mysql::params::client_package_name` or similar.
However, they're still class params so they can be overridden by users,
often via hiera.
Hi Peter,
Yes passing package name works. But i have to pass package name for all the
components. Something like below. I am just trying to figure out a way to
handle this better. variable version is the deciding factor for the package
names. I can pass this vie hiera. Is below the only approach
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
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-serv
On Monday, August 29, 2016 at 7:44:02 AM UTC-7, Michael Wildey wrote:
> I removed the ssl folder and restarted the service.
> But now it say that there is one file missing.
>
> >>java.lang.IllegalStateException: Cannot initialize master with partial
> state; need all files or none.
> Found:
>
Hi,
I like to create my own module apache. The purpose is to do ... exactly the
same thing as apache does but add a nagios check on each vhosts.
I know how to do something
hieradata/host.yaml
my_apache::vhost:
- vhost1:
option1:
option2:
- vhost2:
optio
Jeremy,
I removed the ssl folder and restarted the service.
But now it say that there is one file missing.
>>java.lang.IllegalStateException: Cannot initialize master with partial
state; need all files or none.
Found:
/etc/puppetlabs/puppet/ssl/private_keys/puppetserver.localdomain.pem
Missing:
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 |
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 a
12 matches
Mail list logo