Displaying 20 results from an estimated 2000 matches similar to: "How to override $::operatingsystem fact"
2013 Aug 28
3
passing hiera data to custom fact
I need to create a custom fact based on a parametric information (I need to
get the IP of another machine knowing the hostname, the machine name could
be different for different nodes so I need it parameteric and I recover the
machine hostname from a hiera, but for the purpose of the question it could
also be a data in the module definition).
I''m installing a cluster and need to get
2009 Apr 26
5
Factor questions
Hello,
I''m new to puppet and facter. Initially we are planning on using
facter/puppet to inventory machines (Mac, Ubuntu, and RHEL). We plan
on writing a number of custom facts. Obviouly some of the facts will
only be specific to some OSs. I know there is a "confine" method, but
it confuses me. It seems the confine statement in some of the recipes
and in the Turnbull book is
2012 Mar 28
4
Could not load confine test 'operatingsystem': cannot load such file -- puppet/provider/confine/operatingsystem
Hello,
I''m having some trouble. I keep getting the following warnings when
trying to run:
$ puppet master --no-daemonize
/usr/local/build/puppet-bundle/vendor/gems/ruby/1.9.1/gems/
puppet-2.7.12/lib/puppet/external/pson/pure.rb:7:in `<module:PSON>'':
iconv will be deprecated in the future, use String#encode instead.
Could not load confine test
2007 Jul 16
9
DRBD facts
Hi,
I can''t find a way to add a page on the wiki (i''m logged in but there
is no edit button on the facter recipes page), so here is a recipe for
DRBD. It has been tested on version 0.8.4. Can someone publish it on
the web site?
if FileTest.exists?("/proc/drbd")
result = {}
Thread::exclusive do
File.readlines("/proc/drbd").each do |l|
if l =~
2007 Jul 03
3
$operatingsystem variable.
In the documentation, there is an example such as this:
case $operatingsystem {
sunos: { include solaris } # apply the solaris class
redhat: { include redhat } # apply the redhat class
default: { include generic } # apply the generic class
}
I''ve seen the $operatingsystem variable used elsewhere.
What actually puts the value into the $operatingsystem variable?
Does
2008 Oct 14
2
Fact load failure
Hi,
I''ve created this fact:
require ''facter''
if FileTest.exists?("/etc/ha.d")
if `service heartbeat status` =~ /running/
cib = `cibadmin -Q`.grep(/epoch/).to_s
epoch = cib.scan(/[0-9]+/).first
Facter.add("cib_epoch") do
setcode do
epoch.to_i + 1
end
end
end
end
end
I''ve tested it as
2012 Jun 15
3
Unsupported osfamily: Linux operatingsystem: Amazon
Hi all,
just installed the puppetlabs-mysql module for puppet on my Puppet server
which is an Amazon Linux (based on RedHat), but I get this error when I run
puppet agent --test :
*err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Unsupported osfamily: Linux operatingsystem: Amazon, module mysql only
support osfamily RedHat and Debian at
2007 Feb 12
3
Autogenerating of operatingSystem and operatingSystemVersion attributes in AD
When Samba joins to AD, net creates 'Computer' object in target AD.
Object 'Computer' has attributes operatingSystem and operatingSystemVersion,
which automatically setup in properly value, when native Windows join to AD.
I offer a patch to utils/net_ads.c to do similar way - set up operatingSystem
to "Samba" and operatingSystemVersion to Samba version, when Samba
2024 Oct 18
2
NUT 2.8.0-7 Can't claim USB device [2341:8036]@2/0: Invalid parameter using usbhid-ups
Hello All,
I have been trying to get NUT package working on proxmox host with
Arduino HIDPowerDevice (https://github.com/abratchik/HIDPowerDevice)
And I have been banding my head against the wall and looking through the
internet why I am getting "Can't claim USB device [2341:8036]@2/0:
Invalid parameter" error, but could not find anything relevant.
The information :
- OS name
2013 Oct 13
24
exporting custom facts to puppet agents
Dear all,
I have a custom fact, that reads a file and then generate the values
dynamically based on the file content. It''s something like this:
inFile = "/home/admin/OSs.txt"
> gos = {}
>
> if File.exist?(inFile)
> open(inFile, ''r'').each do |line|
> next if line =~ /^\s*(#|$)/
> parts =
2012 Feb 27
2
compare two data frames of different dimensions and only keep unique rows
Dear list,
I am still struggling with something that should be easy: I compare two data frames with a lot of common rows and want to keep only rows that are NOT in both data frames, unique.
Here are an example of these data frame.
reported <-
structure(list(Product = structure(c(1L, 1L, 1L, 1L, 2L, 2L, 3L, 4L, 5L, 5L), .Label = c("Cocoa", "Coffee C", "GC",
2007 Oct 29
12
Boolean expressions
I''m trying to write a wrapper definition for the file type to make it a
bit smarter. I have a basic version working fairly well:
define xfile($owner = root, $group = root, $mode = 644, $source,
$backup = main, $recurse = false, $ensure = file) {
file { $name:
mode => $mode,
owner => $owner,
group => $group,
backup => $backup,
recurse
2024 Oct 18
1
NUT 2.8.0-7 Can't claim USB device [2341:8036]@2/0: Invalid parameter using usbhid-ups
Hi, you need a newer version of NUT. I was doing a similar project with
that library and NUT needed some PRs to get it work. IIRC, v2.8.2 has
everything needed.
On Fri, Oct 18, 2024 at 4:58?AM linkinpiocz via Nut-upsuser <
nut-upsuser at alioth-lists.debian.net> wrote:
> Hello All,
>
> I have been trying to get NUT package working on proxmox host with
> Arduino HIDPowerDevice
2011 Jan 03
23
Managing cronjobs as a file in solaris with appendifnosuchline for specific servers
I want to manage cronjobs as a " file " in solaris through puppet and
not using the puppet cron resource.
I will be managing the file /var/spool/cron/crontabs/root.
I want the cron file to be same across all servers except some servers
will have additional cron entries.
How can I append to the file /var/spool/cron/crontabs/root , something
like appendifnosuchline in cfengine?
Can
2012 Jun 20
7
[PATCH] xl: fix sedf parameters checking
9d1fd58ff602 was bogous in not letting a new domain being created
if its scheduling parameters --when running under the sedf scheduler--
were not fully specified, making creation fail like in this example
here below:
2012-06-16 07:37:47 Z executing ssh ... root@10.80.248.105 xl create /etc/xen/debian.guest.osstest.cfg
libxl: error: libxl.c:3619:sched_sedf_domain_set: setting domain sched sedf:
2007 Mar 09
2
Information from the real world into Puppet (simply)?
Hi,
I''m trying retrieve some information from the real world from within puppet.
I''d initially hoped that I could do this:
$xen_version = exec { "apt-cache search xen-hypervisor | head -n 1 | cut
-d- -f3-5":
path => "/usr/bin:/usr/sbin:/bin",
cwd => "/tmp",
require => [
2012 Feb 27
1
compare two data frames with same columns names but of different dimensions
Dear List,
I want to compare and return the rows which are NOT in the two data frames. Classic methods don't work as the df have NOT the same dimensions.
Here are one example of my df:
reported <-
structure(list(Product = structure(c(1L, 1L, 1L, 1L, 2L, 2L,
3L, 4L, 5L, 5L), .Label = c("Cocoa", "Coffee C", "GC", "Sugar No 11",
"ZS"),
2020 Jun 23
0
Update of operatingSystem and operatingSystemVersion attributes in AD
Hi list,
We've been looking into updating? operatingSystem and
operatingSystemVersion attributes automatically and periodically (so
version remains correct after OS upgrades) but quickly found out the
machine account principal does not have enough permissions as it would
error out with INSUFF_ACCESS_RIGHTS.
As Windows /is /able to update those attributes I've been doing some
2011 Apr 25
1
possible minor doc clarification?
Good afternoon,
As a clarification does it make sense to remove the second 'not' in the 'See
Also' documentation for file_test ?
Kind regards,
Sean O'Riordain
-----
Index: src/library/utils/man/filetest.Rd
===================================================================
--- src/library/utils/man/filetest.Rd (revision 55639)
+++ src/library/utils/man/filetest.Rd
2011 Aug 25
5
custom fact regex problem
Hi guys
I have a custom fact envt, it was working fine but now I have to make
some changes in it;
puppet client''s hostname is of the type 1234qa-abc-de.local where 1234
can be any thing of any length.My custom fact should contain qa, ie I
want to check in the first part(before the first -) of the hostname
if there exists a pattern/word qa and if it exists then my custom
fact
for envt