Displaying 20 results from an estimated 259 matches for "operatingsystem".
2012 Mar 28
4
Could not load confine test 'operatingsystem': cannot load such file -- puppet/provider/confine/operatingsystem
...hen
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 ''operatingsystem'': cannot load such file
-- puppet/provider/confine/operatingsystem
[repeats a number of times]
$ ruby -v
ruby 1.9.3p0 (2011-10-30) [x86_64-linux]
$ which ruby
/usr/local/bin/ruby
$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.7 (Tikanga)
Thanks in advance.
-LTH
-...
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 $operatingsys...
2011 Nov 28
1
Errors on both client and server when setting up initial puppet infrastructure
...y/gems/1.9.1/gems/facter-1.6.3/lib/facter/util/config.rb:7:
Use RbConfig instead of obsolete and deprecated Config.
/usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'':
iconv will be deprecated in the future, use String#encode instead.
Could not load confine test ''operatingsystem'': cannot load such file
-- puppet/provider/confine/operatingsystem
Could not load confine test ''operatingsystem'': cannot load such file
-- puppet/provider/confine/operatingsystem
Could not load confine test ''operatingsystem'': cannot load such file
-- pup...
2012 Jul 17
8
How to override $::operatingsystem fact
Hi,
I want to introduce "Proxmox" as new value in $::operatingsystem.
"Proxmox" is based on Debian, so the normal value is currently "Debian".
To change that, I just write a custom fact based on the facter fact
"operatingsystem"
Facter.add(:operatingsystem) do
> ...
> setcode do
> ...
> elsif FileTest.exists?(&q...
2006 Aug 03
3
Relationships between models.
Hi All,
I think Im having a mental block here. For some reason I just cant get
my head round relationships.
What I have is the following.
4 tables
1) Hosts
2) Software
3) OperatingSystem
4) Company
In my terms (which are most likely wrong) a company can have lots of
hosts, a host has lots of software, a host has one operating system.
So should my models have the following relations in them?
class Host < ActiveRecord::Base
belongs_to :customer
has_and_belongs_to_many :soft...
2013 Sep 18
4
Not able to capture node info via browser
If I run below command on puppet master. I am able to get output pasted
here.
But the same information, I am trying to capture via browser using
http://puppetdb:8080/v2/facts/operatingsystem but not working
[root@puppetmaster ~]curl -X GET
http://puppetdb:8080/v2/facts/operatingsystem
curl: (6) Couldn''t resolve host ''puppetdb''
[root@puppetmaster ~]# curl -X GET
http://localhost:8080/v2/facts/operatingsystem
[ {
"certname" : "es-w2k...
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 joins AD
--- net_ads.c start here -...
2008 Jan 03
4
Package Source Definition
Hi
i''m trying to describe some class with a package to install, which
should work on different linux-distro''s as well on linux and openbsd:
class vim {
package { ''vim'':
name => $operatingsystem ? {
centos => vim-enhanced,
default => vim,
},
alias => vim,
category => $operatingsystem ? {
gentoo => ''app-editors'',
def...
2011 Jan 14
0
[PATCH INCOMPLETE] Add ability to inspect install disks and live CDs.
This patch is not complete yet because it needs to support Fedora,
RHEL and Windows CDs.
Some examples of the current output:
$ virt-inspector ubuntu-10.10-desktop-amd64.iso
<?xml version="1.0"?>
<operatingsystems>
<operatingsystem>
<root>/dev/sda</root>
<name>linux</name>
<distro>ubuntu</distro>
<product_name>Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)</product_name>
<major_version>10</m...
2011 Nov 01
4
2.7.6 yumrepo not working
Just upgraded 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,...
2013 May 29
5
Developing custom type/providers for multiple OS
Hello all,
I am developing a few custom providers for some features that I need into
my system (such as dealing with different zipped files or generating some
JSON data based on OS files) and I have hit into a question about "how to
do this for multiple OS?"
Lets focus into the zipped file provider that should provide a common
method to pack or unpack zipped files (tar, tar.gz,
2011 Nov 18
2
Are tildes actually valid in templates or is this a bug?
Hi all,
First off, we''re running Puppet 2.7.6 with Ruby 1.8.7 on CentOS 6.0.
Now, I''m using tildes in a template to prevent newlines from appearing but
ruby/puppet is choking on them.
*/tmp/puppet$ cat test.erb*
Line 1: Line 2 will exist if running on CentOS.
<% if operatingsystem == "CentOS" ~%>
Line 2: Yay, we''re running CentOS.
<% end ~%>
*/tmp/puppet$ erb -x -T ''-'' test.erb | ruby -c*
-:2: syntax error, unexpected ''~'', expecting kTHEN or '':'' or ''\n'' or '';''...
2011 Oct 18
2
Puppet node fails to pass facts to master
...node
puppetnode.example.com
The line in dput.cf.erb is this one:
# packages for <%= lsbdistid %> to a private repository (not the
official
So I guess there is a problem passing the $lsbdistid variable.
Before I had another related error, it was complaining here:
content => template($operatingsystem ? {
Debian => "root/profile-linux.erb",
Ubuntu => "root/profile-linux.erb",
OpenBSD => "root/profile-openbsd.erb",
default => "root/profile.erb" }),
That root/profile.erb didnĀ“ t exist. It is true it didnĀ“ t exist, but
bei...
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'':...
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 semicolo...
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
/etc/puppet/modules/mysql/manifests/params.pp:59 on node
ip-10-XXX-XX-XX.ec2.internal*
Does anyone know how to avoid this error ? Thank you for your help !
--
You received this message because you are subscribed to the Google Gr...
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 attribu...
2013 Mar 06
1
ldap-query operating system attribute
Hello,
I'm running samba 4.0.3.
when I query the operatingsystem attribute using
ldapsearch ... -P 3 "(objectCategory=computer)"
The operatingsystem value returned for "Windows 7 Professionnel N"
is operatingSystem:: V2luZG93c8KgNyBQcm9mZXNzaW9ubmVsIE4=
which translate to Windows? 7 Professionnel N
But when I look at it using dsa.msc I can...
2008 May 13
6
variable name containing variable name
Hello, i''m new to puppet (and ruby).
I have a problem when using a variable name containing a variable name
and containing a reserved variable name :
I have a class :
class kernel-Linux-binary {
$test = $operatingsystem ? {
Fedora => "/usr/bin/test",
default => undef
}
}
and i want to call "test" and replace Linux by $kernel to have a generic
call.
If i write $kernel-$kernel-binary::test, puppet try to call
Linux-Linux-binary::test
What is the g...
2012 Nov 28
2
[hiera] Hierarchy modification takes long time to be effective
Hello,
I''ve something strange :
When I modify my hierarchy in my hiera.yaml, it can take up to several
hours, for the modification to work.
eg : I create a subdir in my hieradata, move all the concerned files into,
modify my hiera.yaml
> from :
> :hierarchy:
> - %{operatingsystem}
>
to :
> :hierarchy:
> - *os/*%{operatingsystem}
>
but the changes don''t work immediatly.
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d...