Re: [Puppet Users] Facter displaying multiple IP addresses?

2012-02-12 Thread Gonzalo Servat
On Mon, Feb 13, 2012 at 2:01 PM, Will S. G. wrote: > > Is there a way to display eth{0-5} as well? > You could do a for loop from 0 to N (5?) and check if the variable exists (if has_variable?("ipaddress_eth" + index)) then print it. I'm sure there's probably a nicer way of doing this in Ruby :)

[Puppet Users] Facter displaying multiple IP addresses?

2012-02-12 Thread Will S. G.
Hi, I have a motd module (not mine) that rewrites /etc/motd with some useful host details. One particular piece of information is the IP address in motd.erb: FQDN: <%= fqdn %> IP: <%= ipaddress %> I have several hosts that have multiple IP addresses, and I need to display them as well. When I

[Puppet Users] Re: Using templates

2012-02-12 Thread Nick Fagerlund
Delete that "include ssh" line in the default node! That should make it work the way you expect. (You don't have a class named "ssh", which is what include is looking for; instead, you have a defined type called "ssh." The way nodes.pp is written now, it's trying to declare both class ssh and an i

Re: [Puppet Users] Re: neatest way to determine a major version of centos/linux?

2012-02-12 Thread Gary Larizza
There's also the 'operatingsystemrelease' fact that will evaluate to the full version. You could do this: Facter.add('operatingsystemmajor') do setcode do Facter.value('operatingsystemrelease').split('.').first end end If you do choose to use the shell command, you can do this: Facter.

Re: [Puppet Users] Re: How do I track updates to forge modules?

2012-02-12 Thread John Warburton
On 11 February 2012 01:15, Kelsey Hightower wrote: > On Feb 2, 5:55 pm, John Warburton wrote: > > Is there a way to "watch" modules and be notified if they are updated? > > > > I can't see anything obvious in the documentation > > Currently there is no easy way to "track" when modules are upda

Re: [Puppet Users] Re: neatest way to determine a major version of centos/linux?

2012-02-12 Thread Elias Abacioglu
On 8 February 2012 02:37, d...@looprock.com wrote: I use this: Facter.add("operatingsystemrelease_mv") do setcode do %x{cat /etc/redhat-release |awk \{'print $3'\}|cut - c1}.chomp end end I think that will fail on centos. This line is better, works on centos/r

[Puppet Users] Using templates

2012-02-12 Thread Andrey Ageyev
Hi everyone, I'm learning Puppet and I want to configure ssh server with different port on different nodes. Puppet v2.7.1 I have created module ssh: content of modules/ssh/manifests/install.pp class ssh::install { package { "ssh": ensure => present, } } content

[Puppet Users] Re: Adding a parameter to a custom Puppet type/provider

2012-02-12 Thread Jason Koppe
Added to the pastie: http://pastie.org/private/em9dve6walcxyfjyssvya On Feb 11, 10:21 am, Stefan Schulte wrote: > Can you provide your resource definition where you use the > logical_volume type? > > -Stefan > > > > > > > > On Sat, Feb 11, 2012 at 09:31:36AM -0600, Jason Koppe wrote: > > I do hav

Re: [Puppet Users] Re: Newbie: Confused about where to start managing users...

2012-02-12 Thread Peter Valdemar Mørch
On Thu, Feb 9, 2012 at 6:07 PM, jcbollinger wrote: > It precisely describes the user configuration you want to achieve, and > the 'allowdupe' should enable it to work. Supposing that users 'fred' > and 'barney' are initially present with swapped UIDs, you should > transiently have a situation whe

Re: [Puppet Users] Re: Anyone seeing odd agent behaviour with 2.7.10?

2012-02-12 Thread Michael Stahnke
On Fri, Feb 10, 2012 at 3:38 PM, Craig White wrote: > to my knowledge puppetd always runs as root because it needs the permissions > in order to perform its magic. > puppetmaster runs as user:puppet, group:puppet but not puppetd That is correct. There is a fix for this in 2.7.x and will be in t

Re: [Puppet Users] Time interval within execution of scripts from the server

2012-02-12 Thread Dan White
Filling in discussion that happened off-list: On Feb 12, 2012, at 7:34 AM, mukulm wrote: > > > Hi, > > I am running multiple scripts on number of machines through puppet > server as my server is CentOS 5.6 & clients are Ubuntu 11.04 & the > scripts are executed in above 2000 clients/nodes so

[Puppet Users] Re: Time interval within execution of scripts from the server

2012-02-12 Thread mukulm
Hi, I am running multiple scripts on number of machines through puppet server as my server is CentOS 5.6 & clients are Ubuntu 11.04 & the scripts are executed in above 2000 clients/nodes so I dont want to execute the scripts on multiple nodes at the same time. Thanks mukulm On Feb 10, 6:

Re: [Puppet Users] Hudson/Jenkins updating host parameter?

2012-02-12 Thread Ohad Levy
On Fri, Feb 10, 2012 at 7:18 AM, mkochco wrote: > > Can I get suggestions on how to accomplish step 3.   I know foreman > provides a REST API but it doesn't appear to allow modification of > "host" parameters. AFAIK, all parameters can be modified over the API, including host parameters.. feel fr