Displaying 14 results from an estimated 14 matches for "ipaddress_eth0".
2014 Jun 26
0
Facter doesnt resolve ipaddress or ipaddress_eth0
Hello list. I am trying to read the IP address of the eth0 interface from a
CentOS 6.5 VM (XenServer).
Running the manifest gives empty values to all of the following vars:
$ipaddress, $ipaddress_eth0, and its $::<name> version. $interfaces has
"eth0,lo".
Running facter from the VM I get:
# facter -v
2.0.1
# facter | grep virtual
is_virtual => true
virtual => xenu
# facter | grep eth
interfaces => eth0,lo
mtu_eth0 => 1500
# facter ipaddress_eth0
# facter ipaddr...
2012 Oct 19
3
Node specific exported resources
...around a solution to a problem I''m facing with
an exported resources configuration I have. I''m using the following simple
config to build a munin configuration:
@@file { "/etc/munin/munin.conf.d/${::fqdn}.node":
content => "[All Hosts;${::fqdn}]
address ${ipaddress_eth0}
use_node_name yes\n\n",
tag => ''munin-node'',
}
File <<| tag == ''munin-node'' |>>
I''d like to add the following configuration lines to specifically one of
the nodes:
diskstats_latency.sda.avgrdwait.warning 0:5
diskstats...
2010 Oct 22
2
problem w/ puppet & augeus : xinetd.d/rsync server_args value
Hello,
I would like to have the following line (among others) in my
/etc/xinetd.d/rsync file :
server_args = --daemon --address=<ipaddress_eth0>
--log-file=/var/log/rsyncd.log
To this end, i am using the camptocamp rsyncd module available from git.
Everything works except this line. I thought it was, perhaps, a
questions of spaces (this has been discussed on the list before), but
according to the documentation here :
http://proj...
2013 Apr 12
5
How to setup /etc/resolv.conf dependent on network
Hello,
I am a beginner in puppet so please excuse my lack of knowledge.
(I use puppet 3.1).
We have nodes in different networks - they use different DNS servers.
I''d like to set up its /etc/resolv.conf dependent on network they are in.
What approach would you recommend to solve the problem ?
Thanks in advance
Przemek
--
You received this message because you are subscribed to the
2009 May 31
9
No more than one "instances" of a type in define()?
Hi folks,
when I try to do something like:
define railsproject($name, $uid, $gid, $userpass, $sqlpass) {
mysql_database { "$name_staging": ensure => present }
mysql_database { "$name_production": ensure => present}
....more stuff...
}
I get:
Puppet::Parser::AST::Resource failed with error ArgumentError:
Duplicate definition: Mysql_database[] is already
2011 Dec 27
0
Template aren't generated on few nodes
...template which generate the /etc/hosts file. It''s used on several
nodes and works fine, except on a cluster of 2 servers, named "rebond" and
rebond02".
Here the only part of the template which use variables :
# MANAGED BY PUPPET ! DO NOT EDIT
# Internet host table
<%= ipaddress_eth0 %> <%= hostname %>.localdomain <%= hostname %>
127.0.0.1 localhost
On the others nodes, we obtain :
# MANAGED BY PUPPET ! DO NOT EDIT
# Internet host table
192.168.1.5 supervision.localdomain supervision
127.0.0.1 localhost
But on rebond and rebond02, we hav...
2012 Jun 18
1
using hiera for node classification
...? I''ve seen a little about this on line
but it seems to be mostly toy cases like the above. If so, is it possible
to pass in parameterized classes this way, like:
user@host$ cat openstackall.yaml 2012-06-18 14:56:01 jon pts/13
---
classes:
- openstack::all: {
public_address: %{ipaddress_eth0},
public_interface: eth0,
private_interface: eth1,
admin_email: nobody@csail.mit.edu,
admin_password: admin_password,
keystone_admin_token: keystone_admin_token,
nova_user_password: nova_user_password,
glance_user_password: glance_user_password,
rabbit_password: rabbit_password,
r...
2009 Jun 18
7
Testing if a resource is already defined
Hi gang,
Is it possible to test if a particular resource has already been
defined? I''d like to do something like this:
if !Host["$fqdn"] {
host {"$fqdn": ip => "$ipaddress_eth0" }
}
Essentially, test to see if there is no Host resource defined for the
current server and if not, add a host entry for itself using the IP
address of eth0.
Possible?
Ta,
Avi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to...
2009 Dec 09
3
facter 1.5.7 all lsb* items missing
...* items are missing. Any
ideas?
Sanitized facter output:
architecture => i386
domain => missyou.edu
facterversion => 1.5.7
fqdn => broken.missyou.edu
hardwareisa => i686
hardwaremodel => i686
hostname => broken
id => root
interfaces => eth0,sit0
ipaddress => 1.2.1.5
ipaddress_eth0 => 1.2.1.5
is_virtual => true
kernel => Linux
kernelmajversion => 2.6
kernelrelease => 2.6.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 =>...
2012 May 17
1
Puppet facter 1.6.8 and inet6 addresses
...5 brd ff:ff:ff:ff:ff:ff
inet 10.66.112.71/24 brd 10.66.112.255 scope global eth0
*inet6 fe80::250:56ff:fe99:7335/64* scope link
valid_lft forever preferred_lft forever
But with facter run as root I don''t get any inet6 adress
facter | grep addr
ipaddress => 10.66.112.71
ipaddress_eth0 => 10.66.112.71
ipaddress_lo => 127.0.0.1
macaddress => 00:50:56:99:73:35
macaddress_eth0 => 00:50:56:99:73:35
I''m using facter v1.6.8
Could you please tell me how to get the IPv6 adresse using facter ?
Thanks in advance
Best regards,
Christophe
--
You received this messag...
2012 Feb 29
3
Modifying a FACT Value In a Manifest
In my network every subnets default gateway is X.X.X.1. That router
gateway is always running ntpd which I want to give be default as the ntp
server in every hosts ntp.conf.
Since there is no official "default gateway" fact yet, what I want to be
able to do in my manifest is take the $ipaddress fact and turn it into the
gateway for that subnet.
For example...
IP = 10.1.1.12
GW =
2009 Jul 27
4
Custom fact errors
I''m a newbie attempting to get a custom fact distributed to clients.
I''ve followed the instructions at http://reductivelabs.com/trac/puppet/wiki/AddingFacts
and based my first fact on a simple recipe.
I''m having at least one problem and possibly more.
1) Puppet/facter fails to load the custom fact, complaining that "non-
sh interpreters are not currently
2011 Aug 17
3
Using back-ported create_resources in 2.6.x
...9;'None'',
$order=''allow,deny'',
$allowfrom=''all'',
$denyfrom=false,
$source=false
) {
host{ "${name}.$domain":
ensure => present,
host_aliases => [ $name ],
ip => $ipaddress_eth0,
}
if $create_docroot != false {
file {
"$docroot":
ensure => directory,
owner => $docroot_owner ? {
false => undef,
default => $docroot_owner,
},
gro...
2013 Apr 18
4
fact_stomp_server
Does anyone have any insight into this error message?
err: Could not retrieve catalog from remote server: Error 400 on SERVER:
The fact named fact_stomp_server does not appear to be a valid hostname.
The value of '''' does not match ''^[a-zA-Z0-9.-]+$''. A common cause of this
problem is running puppet agent as a normal user instead of root, or the
fact is