search for: operatingsystemrelease

Displaying 20 results from an estimated 47 matches for "operatingsystemrelease".

2007 Jun 13
3
Facter ''operatingsystemrelease'' fact.
From looking at the Facter code, it looks like the ''operatingsystemrelease'' fact is currently a mirror of the ''kernelrelease'' fact. I''d like to implement this fact so that it returns the major version of the operating system, eg: Debian Sarge: operatingsystemrelease => 3.1 Debian Etch: operatingsystemrelease => 4.0 RH...
2007 Jun 24
3
Facter operatingsystemrelease on Fedora
Currently, facter returns the kernel version as both the kernel and operatingsystemrelease facts. I would like to change that so that on Fedora, operatingsystemrelease is the release number (5,6,7 etc.) or ''Rawhide'' ... are there any objections to making that change ? David
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 { $syslog_template = "syslog/syslog-ng.conf-squeeze.erb" } [...] file { "/etc/syslog-ng/syslog-ng.conf": ensure => present, mode => 644, owner => root, group => root,...
2010 Jul 19
1
facter fails to recognize OEL/OVS in operatingsystemrelease.rb
For the benefit of those running OEL (Oracle Enterprise Linux) or OVS, be aware that under 2.6.0rc4 facter doesn''t properly recognize OEL in /usr/lib/ruby/site_ruby/1.8/facter/operatingsystemrelease.rb. A diff for a fix is below; probably not the best fix but if you need it work now, this''ll do it for you. I''ve already filed a bug: http://projects.puppetlabs.com/issues/4289 -Jim *** /usr/lib/ruby/site_ruby/1.8/facter/operatingsystemrelease.rb.orig 2010-07-19 12:34:26.000...
2012 Jun 18
8
Conditional with variable from facter
Hi. I have the following facts available: # facter | grep oper operatingsystem => CentOS operatingsystemrelease => 6.2 Now, if I wish to use conditionals on these facts, I have to do it like this: case $operatingsystem {} case $::operatingsystemrelease {} I''m puzzled as to why can''t I just use $operatingsystemrelease, and what do these two semicolons mean? Thank you. -- You recei...
2011 Nov 01
4
2.7.6 yumrepo not working
...d to 2.7.6 and the yumrepo type does not write out our yum configs correctly, anyone experiencing this? Documentation hasn''t changed from what I can tell for this type. # facter -version 1.6.2 # puppetd --version 2.7.6 # facter architecture x86_64 # facter operatingsystem Fedora # facter operatingsystemrelease 14 ==== My manifest ==== yumrepo { ''EWT-Base'': descr => ''Base Repository'', baseurl => " http://repo:80/$operatingsystem-$operatingsystemrelease-$architecture", gpgcheck => 0, enabled => 1, priority...
2013 Jun 27
2
Conditional statement =,<,> etc.
...pt/sources.list_debian7'', }, owner => ''root'', group => ''root'', mode => ''0644'', } This works nice for Puppet 3.2.2, but this variable isn''t available on the 2.7.x hosts :/. Next idea, use the facter operatingsystemrelease variable, but I can''t find a resource to describe something like: if the $operatingsystemrelease is bigger/equal then 6.0.0 but smaller then 7.0.0 then provide source.list.debian6 if else $operatingsystemrelease is bigger/equal 7.0.0 then provide source.list.debian7 else do nothing Ma...
2006 Aug 29
40
Red Hat release info
Hi all, I''m looking at changing the operatingsystemrelease fact for Red Hat. Linux currently just uses the kernel release as the operating system release, but I''ve got a client who wants the release to have both the specific distro (e.g., AS or EL) and the release (e.g., 3 or 4). Will this particularly annoy anyone? Anyone want to help ma...
2008 Jul 08
12
ANNOUNCE: Facter 1.5
...ded on-demand, which provides dramatic speedups for printing individual facts, but generally doesn''t affect how Puppet and Facter interact, other than making it possible for Facter to load facts that Puppet syncs via its pluginsync. Here''s the ChangeLog: Fixed #1400 - OperatingSystemRelease should now work on CentOS Changed ''timeout'' option to ''limit'' to avoid scope issue Fixes #1376 - Display memory facts for AIX Fixes #1334 - Forced Facter to use LANG=C Fixes #1357 - Change ps syntax for OSX and BSD Set the timeout on...
2011 Jan 21
2
Multiple Case statements
...that doesn''t work is as follows; ( I am not even sure this is the route I should be going if anyone has a better way please advise. Thank you in advance) $ntp_service = $ntpdaemon { case operatingsystem { ''CentOS'' { case operatingsystemrelease { ''5.5'' => "ntpd", ''6.0'' => "ntpd" } } ''RedHat'' { case operatingsystemrelease { '...
2007 Dec 19
3
Facter operatingsystemrelease on CentOS
I found that has been fixed in Fedora and RedHat which return the version ( like 5, 7, 8 etc.. ) but in CentOS, it still return the kernel version instead. ================= Barrow Kwan ThoughtWorks, Inc. New from ThoughtWorks: Mingle, an Agile project management application. Mingle. Project Intelligence. Powerfully Simple. More at http://studios.thoughtworks.com
2011 Aug 08
5
Run command based on OS version
I''m trying to write a script that runs command based on version of Redhat OS. For example, if the RHEL version is 6.0, it will run command. I was able to write file read script in ruby that would read file and execute but it didn''t seem to work in puppet script. Has anyone done something like this? $redhat_version_file = "/etc/redhat-release" $redhat_version =
2012 Feb 03
16
neatest way to determine a major version of centos/linux?
Just started a rollout of centos 6.x across our Puppet deployment (100-odd servers). what fact would people suggest I use to distinguish 5.x from 6.x (quite a lot of subsystems are different between major releases)? lsb* facts don''t seem to be present on centos 6 - is this an EPEL bug, or have they just been removed in Facter? Thanks! -- You received this message because you are
2013 Nov 12
1
Own Package Installscript
Hi, i want to use Puppet to install all packages from a webserver (no repository) . Therefore I wrote following Script: class install_package { case "$operatingsystem" { SLES: { notify {"${operatingsystem} ${operatingsystemrelease} detected":} notify {"Installing $packagename now:":} exec { ''installing $packagename'': command => "rpm -iv ${repopath}${packagename}", path...
2010 Aug 28
1
ANNOUNCE: Facter 1.5.8
...4583] Refactor uptime to use Resolution.exec fca8861 [#4594] Reintroduce fix for #1291 from original patch 32c0cb0 [#4594] Revert "fixes #2573, #2085, #1291..." e7df4c0 Updated CHANGELOG for 1.5.8rc2 9c9cabd Better fix for Bug 4569: Uptime Fact is incorrect on Windows 01a515f [#4289] operatingsystemrelease fact for oel, ovs b6c0a6b Fix for bug #4569 51bcebe Fixed Rakefile package task version detection 81ccb48 Removed references to Reductive Labs in the Rakefile 9c9cabd Better fix for Bug 4569: Uptime Fact is incorrect on Windows 01a515f [#4289] operatingsystemrelease fact for oel, ovs b6c0a6b...
2010 Sep 28
15
YUMREPO { productname => PowerEdge 2650}
Hello All, How do I specify a variable that has a space in it? I''m trying to setup a yum repo that has two different baseurl''s based on the product name ($productname). Default goes one way, but if the product is "PowerEdge 2650" then is a different URL. The thing is, that is only picking up the default. How should I specify the value with the space in the
2011 Oct 21
1
LSB facts
Hi All, In the example42 modules, I noticed the following is done: # Calculate OS version (without using lsb facts) $ossplit=split($operatingsystemrelease, ''[.]'') $osver=$ossplit[0] I''ve been using $lsbmajdistrelease in all my configs. Is there any particular reason why I might want to use the above instead? (apart from the dependency on redhat-lsb, which is always installed) Regards, Gonzalo -- You received this me...
2010 Dec 15
3
having trouble with puppet 0.25.5 on openbsd 4.8 on amd64
...cludes this snippet class app_client_openbsd { $app_client_pkgs_obsd = [ ''glib2-2.24.1p2'', ''gtar-1.23p1'' ] package { "${app_client_pkgs_obsd}": ensure => ''installed'', source => "http://${installserver}/openbsd/${operatingsystemrelease}/packages/${hardwaremodel}/${name}.tgz", } This doesn''t work. debug: Puppet::Type::Package::ProviderOpenbsd: Executing ''/usr/sbin/pkg_info glib2-2.24.1p2gtar-1.23p1'' debug: /app_client_openbsd/Package[glib2-2.24.1p2gtar-1.23p1]: Changing ensure debug: //app_cli...
2009 Dec 09
3
facter 1.5.7 all lsb* items missing
....18-164.6.1.el5 kernelversion => 2.6.18 macaddress => 00xxxx macaddress_eth0 => 00xxxx manufacturer => VMware, Inc. memoryfree => 811.50 MB memorysize => 1.98 GB netmask => 255.255.255.240 netmask_eth0 => 255.255.255.240 network_eth0 => 1xxxxx operatingsystem => RedHat operatingsystemrelease => 5.4 path => /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin physicalprocessorcount => 0 processor0 => Intel(R) Xeon(R) CPU E7450 @ 2.40GHz processor1 => Intel(R) Xeon(R) CPU E7450 @ 2.40GHz processor...
2012 May 16
2
Announce: Facter 2.0.0rc1 Available
...without dmidecode Nan Liu (3): f47c592 (#1424) Add Solaris zonename fact. 5273842 (#6682) Add Solaris ldom facts and update virtual detection. c80de1c (#11969) Add zfs zpool version facts. Nicolas Vigier (1): 9df78a1 (#9929) Add support for Mageia to operatingsystem.rb and operatingsystemrelease.rb Patrick Carlisle (1): 1dd50f4 Use absolute path for $LOAD_PATH in installer Stefan Schulte (3): 7713d95 (#11082) Add fact operatingsystemrelease for Solaris 30e068a (#11082) Add negative tests for operatingsystemrelease 2e7a108 (#12790) Raise an exception if recursion i...