[Puppet Users] Re: Have Facter always return a result

2015-01-30 Thread Brian Morris
Thank you, Peter, twice over! That's a great Ruby shortcut that I dd not know existed. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@

Re: [Puppet Users] Chicken-Egg Dilemma with network interfaces

2015-01-30 Thread Dan White
Thanks. I was not trying it that way, but I believe I will. I see where my approach was borked. Unfortunately, it means some non-trivial refactoring. But (and thanks a second time for an opportunity to use this line) "It's like the chicken said, Launchpad, 'You knew the job was dangerous when y

Re: [Puppet Users] Chicken-Egg Dilemma with network interfaces

2015-01-30 Thread Christopher Wood
Possibly something like this? If you've already tried this, what was the result? file { '/etc/sysconfig/network-scripts/ifcfg-eth0': # stuff here } exec { '/sbin/ifup eth0': refreshonly => true, subscribe => File['/etc/sysconfig/network-scripts/ifcfg-eth0'], notify => Service['mysql'], }

Re: [Puppet Users] Have Facter always return a result

2015-01-30 Thread Peter Bukowinski
> On Jan 30, 2015, at 12:02 PM, Brian Morris wrote: > > Hello all, > > I cannot seem to get Facter to always return a value. In this instance I am > pulling the Java version from our systems, but would like there to be an > entry that says "null" within the facts of systems that don't have any

[Puppet Users] Chicken-Egg Dilemma with network interfaces

2015-01-30 Thread Dan White
Red Hat / CentOS 6.x with Puppet 3.7.x Creating a new network interface is easy: Create the /etc/sysconfig/network-scripts/ifcfg-eth(whatever) file and then refresh the network service. Now the problem: If I want to run something off that new interface -- like a MySQL server -- how do I expres

[Puppet Users] Re: Facter on Amazon AMI with ruby2

2015-01-30 Thread Khalid Hosein
On Wednesday, July 16, 2014 at 2:30:44 AM UTC-4, Peter Romfeld wrote: > > Hi, > > I have problems to get facter running: > > OS: > Amazon Linux AMI release 2014.03 > Ruby: > ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-linux] > > I tried the amz provided facter package and also facter2.

Re: [Puppet Users] Puppet array merge failure?

2015-01-30 Thread Sans
Did you check if have ruby-deep-merge (or the equivalent to your OS) installed? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@google

Re: [Puppet Users] Puppet array merge failure?

2015-01-30 Thread leam hall
On Friday, January 30, 2015 at 12:11:20 PM UTC-5, Matthew Burgess wrote: > > > On 30 Jan 2015 14:09, "leam hall" > wrote: > > > > :merge_behavior: deep > > See > https://docs.puppetlabs.com/hiera/1/lookup_types.html#deep-merging-in-hiera--120. > > In particular you probably want 'deeper' not 'd

Re: [Puppet Users] Puppet array merge failure?

2015-01-30 Thread Matthew Burgess
On 30 Jan 2015 14:09, "leam hall" wrote: > > :merge_behavior: deep See https://docs.puppetlabs.com/hiera/1/lookup_types.html#deep-merging-in-hiera--120. In particular you probably want 'deeper' not 'deep' behavior. Matt. -- You received this message because you are subscribed to the Google Gro

[Puppet Users] Have Facter always return a result

2015-01-30 Thread Brian Morris
Hello all, I cannot seem to get Facter to always return a value. In this instance I am pulling the Java version from our systems, but would like there to be an entry that says "null" within the facts of systems that don't have any Java clients installed. Here is the basic facter that pulls the

Re: [Puppet Users] Fedora 21 Repos ETA

2015-01-30 Thread Melissa Stone
Hi Dallas, We are getting everything prepared to start shipping Fedora 21 packages. You'll see that repo slowly being populated as we get everything tested and ready. However, we do not have a concrete date for when we will have the repo fully populated. Although we do not yet have packages, you c

[Puppet Users] Fedora 21 Repos ETA

2015-01-30 Thread Dallas Graves
I've noticed that the Fedora 21 repos are now up at http://yum.puppetlabs.com/fedora/f21 however, these repos are empty at the moment. Does anyone have any idea on when they'll be populated? Also, what solution is everyone using for Puppet installation on Fedora 21, I presume using the F20 re

[Puppet Users] manage users and ssh_authorized_key from hiera

2015-01-30 Thread Sans
This is the class I have for the user creation: > *#users.pp* class common::users { > > create_resources('group', hiera_hash('groups')) > > define create_ssh_users () { > user { $name: > password => $password, > managehome => $managehome, >

[Puppet Users] Puppet array merge failure?

2015-01-30 Thread leam hall
Note that I'm still learning so this could easily be operator error. I'd like to get all 4 ntp servers in in the array. That is, I have other things that need to be in merged hashes and arrays and I'm using ntp_servers as a learning tool. Thanks! Leam # hiera.yaml -- :backend

[Puppet Users] Re: Newbie got cart before horse - how to make Puppet files match reality

2015-01-30 Thread jcbollinger
On Thursday, January 29, 2015 at 6:24:14 PM UTC-6, Karen Ellrick wrote: > > Addendum: I got a chance to talk to someone at a PHP user's group > gathering with my computer in front of me, and he explained a lot of > fundamentals I was missing. I am better informed now about the different > role

[Puppet Users] Re: Puppet IRC Channel !!

2015-01-30 Thread Eric Sorenson
Hi Vishvendra, there is lots of activity on #puppet -- are you sure you are connected to a Freenode server, which is connected to the rest of the network? You can check this with '/list #puppet' in your IRC client, it should show ~1000 users and this topic: 03:33 [freenode] -!- #puppet 1053 Pu

[Puppet Users] Puppet IRC Channel !!

2015-01-30 Thread Vishvendra Singh Chauhan
Hello Friends, Is there any problem in *#puppet* IRC channel ?. As from last three days, there is no participants in this. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send

[Puppet Users] Re: [SOLVED] Could not back up

2015-01-30 Thread Luca Mazzaferro
Dear All or Nobody, problem solved. I think this doesn't interest anybody because nobody reads this post BTW, the problem vanished upgrading the agent from puppet-3.6.2-3.el7.noarch, which is distributed via EPEL repository, to the latest release distributed via puppetlab repo. The OS was: Sc