Displaying 7 results from an estimated 7 matches for "versioncmp".
2014 Mar 12
0
versioncmp.rb example
I looked at versioncmp example available out of box.
It is like strcmp.
I have a need to write a manifest to check for the existence of java version. If it is 1.5.0.3 or less, upgrade to 1.7.1. This should be done on 10 nodes.
Appreciate any example to accomplish this task. thanks
--
You received this message becau...
2013 Mar 18
3
Facter Strings to integer.
Hello,
If I want to do something like this:-
if $::lsbdistrelease >= 6.3 {
SOMETHING
}
Do I have to convert lsbdistrelease from a string to a number with an
inline template or some such ?
Thanks
Paul
--
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
2010 Sep 02
2
err: Could not run Puppet configuration client: Invalid parameter stage at ...
...he epel-puppet repos;
# rpm -qa | grep puppet
puppet-dashboard-1.0.3-3
puppet-2.6.1-0.3.rc3.el5
puppet-server-2.6.1-0.3.rc3.el5
The clients are;
# rpm -qa | grep puppet
puppet-0.25.5-1.el5
and my code to bootstrap the puppet install in nodes.pp looks like
this;
node default {
include puppet
if versioncmp($puppetversion, ''2.6.0'') < 0 {
case $operatingsystem {
CentOS: {
notice(''In the centos cases'')
file { "/etc/puppet/puppet.conf":
owner => root,
group => root,
mode => 644,
source => "puppet:///...
2011 Feb 08
6
Puppet facter operatingsystemrelease
Hello,
I am running puppet server version 0.25.4-2, and since Debian squeeze
is the new stable release I would like to adapt some of my modules.
I have a syslog-ng module, I would like to specify another template
for my squeeze server.
I changed my init.pp as follow :
if ($operatingsystemrelease <= 5.0.8) {
$syslog_template = "syslog/syslog-ng.conf.erb"
}
else {
2012 Jun 20
0
Announce: Puppet 2.7.17 Available
...not always be a semantic version, which caused the
upstart provider to fail. This commit updates the initctl call to remove the
leading space from the --version argument, and also replaces the implicit
SemVer comparisons with wrapper functions that call out to
Puppet::Util::Package.versioncmp to do version comparisons. It also fixes a
subtly broken regex to grab the full version string.
Add exclude list to upstart provider
The wait-for-state service seems to be a helper that is used by upstart, but
doesn''t have a useful status or consistent way to call. Trying to...
2013 Jun 27
2
Conditional statement =,<,> etc.
Hello guys :),
I''m kind of new to Puppet and stuck in defining a conditional statement.
Here my problem:
I want to provide different apt/source.list for different versions of
Debian, 6.0.x and 7.0.x, which also run different versions of Puppet, 2.7.x
and 3.2.x. My first idea was to use facters variable
operatingsystemmajrelease and define like this:
file {
2009 Mar 23
7
ANNOUNCE: Puppet 0.24.8 now available!
...Provide dscl -url output support for OS X 10.4 clients using the
directoryservice provider.
Fix launchd service provider so it is backwards compatible with OS X
10.4
Fixed #1831 - Added sprintf function
Fixed #1830 - Added regsubst function
Fixed #1829 - Add puppet function versioncmp to compare versions
Added ext/dbfix.sql script - fixes common errors in stored
configuration databases
Major fixes:
Fixed #1629 - A refactoring of ssh_authorized_key parsed provider
Fixed #2004 - ssh_authorized_key fails if no target is defined
Fixed #1631 - adding /sbin and /u...