[Puppet Users] Re: Need help with simple hiera example

2014-10-09 Thread Tony Thayer
On Wednesday, October 8, 2014 6:44:56 AM UTC-7, Stack Kororā wrote: > > Greetings, > > I don't know why, but I am having a rough time trying to get hiera to > work. It seems to me that all the examples I see online are either absurdly > complex or so stupidly simple that they are absolutely u

Re: [Puppet Users] Looking to Learn - mjhas::postfix

2014-10-12 Thread Tony Thayer
It will actually only return the part of the host name before the first period. $::fqdn will return the full host name. -- 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 e

[Puppet Users] Re: Using r10k to deploy production. How to setup a local dev environment for modules?

2014-10-16 Thread Tony Thayer
Nan Liu gave a talk at Puppet Conf 2014 about this: https://www.youtube.com/watch?v=GoLE6JJU6mA I wasn't there in person, but I have been witness to it in an enterprise environment and it looks like a really good way to go for local dev. Instead of using a local puppetmaster you just just bring

[Puppet Users] Re: Puppet directory environments mysteriously breaking -- help?

2014-10-28 Thread Tony Thayer
What happens when you run puppet module list --environment=production ? Your configuration doesn't define which environment the puppet agent lives in, so it _should_default to production but I've been running into this kind of thing myself. This directory structure is working for me: /etc/puppet

[Puppet Users] Re: how to use multiple strings in line.include of to use multiple if statements in puppet facts

2014-10-28 Thread Tony Thayer
Apologies if this doesn't answer your question in regards to creating custom facts, but wouldn't it make more sense to maintain this data in a profiles/roles params configuration? - Tony On Tuesday, October 28, 2014 7:43:15 AM UTC-7, Spriya wrote: > > > Hi, > > I am have java text file which con

[Puppet Users] Re: Puppet directory environments mysteriously breaking -- help?

2014-10-28 Thread Tony Thayer
for the pointer about the default manifest, I didn't realize that > it would actually override the environment ones, I assumed it worked > additively, like modulepath. > > I have disabled the default manifest, but my puppet is still not finding > the per-environment m

[Puppet Users] Re: Puppet directory environments mysteriously breaking -- help?

2014-10-28 Thread Tony Thayer
t On Tuesday, October 28, 2014 1:02:57 PM UTC-7, jcbollinger wrote: > > > > On Tuesday, October 28, 2014 12:08:11 PM UTC-5, Tony Thayer wrote: >> >> Specifying your default_manifest will override your directory >> environments as per the documentation. >> >>

[Puppet Users] Re: Trying to use node based hiera config

2014-12-02 Thread Tony Thayer
You have declared a full folder path instead of a relative one. Change "/node/%{fqdn}" to "node/%{fqdn}" and it should work. Also as an aside, I would move your defaults to the end of the lookup list. The lookup should go from most specific to least specific. - Tony On Tuesday, December 2, 2014

[Puppet Users] Re: Hi Team

2014-12-02 Thread Tony Thayer
In addition to needing to use three '/'s in your URI as Den mentioned, you would need to change up your folder path. Modules under /etc/puppet/modules all have their own structure i.e. /etc/puppet/modules/modulename/{files,manifests,templates,tests}. When structuring your URI you need to keep i

Re: [Puppet Users] Re: Trying to use node based hiera config

2014-12-02 Thread Tony Thayer
14 10:46:12 AM UTC-8, leam hall wrote: > > Hey Tony, > > I made both changes but still getting "nil" for the admin list. > > Leam > > On Tue, Dec 2, 2014 at 1:32 PM, Tony Thayer > wrote: > > You have declared a full folder path instead of a relative

Re: [Puppet Users] Re: Trying to use node based hiera config

2014-12-02 Thread Tony Thayer
era.yaml, this is PE 3. I'm in a big company that gets > touchy about sharing hostnames. Really what I did was "mv global.json > node/`facter fqdn`.json". I've also ensured the pe-puppet group has > access to the file. > > Leam > > > > On Tue

[Puppet Users] Re: Determining which master an agent is connected to

2014-12-03 Thread Tony Thayer
The agents should have the master defined in their puppet.conf file. Failing that, you can manually run the agent on a system with "puppet agent -t --debug" and look for entries that look like "Caching connection for https://puppet.local:8140"; - Tony On Wednesday, December 3, 2014 7:25:36 AM

[Puppet Users] Re: Determining which master an agent is connected to

2014-12-03 Thread Tony Thayer
ng? Either way, I'll post how that option goes. > > -Daren > > > On Wednesday, December 3, 2014 1:38:12 PM UTC-5, Tony Thayer wrote: >> >> The agents should have the master defined in their puppet.conf file. >> Failing that, you can manually run the agent on a s

[Puppet Users] Re: Installing puppet on OSX

2014-12-11 Thread Tony Thayer
I have had no problem with the .dmg file. That answer is two years old now and some things may have changed with the install process (just a guess). On Sunday, December 7, 2014 6:51:08 PM UTC-8, Mauricio Tavares wrote: > > Do you use the .dmg from puppetlabs or, as suggested in > https://ask.pup

[Puppet Users] Re: Nagios with Hiera

2014-12-15 Thread Tony Thayer
How would using nagios resources with Hiera differ from using it with other resource types? On Monday, December 15, 2014 12:22:47 AM UTC-8, Heriyanto wrote: > > Hi All.. > > Is that any example Nagios module without storeconfig but using Hiera in > RHEL? > Because don't have time now for build

[Puppet Users] Re: Puppet hangs when hiera data uses hiera lookup

2015-01-14 Thread Tony Thayer
Are you running PE 3.4.2? I don't think it came with Hiera 1.3 bundled (the version that supports nested Hiera calls). Calling hiera from the command line won't necessarily use the same hiera gem PE is using. This bit me a few times when I was exploring using PE last year. On Tuesday, January 1

Re: [Puppet Users] Announce: Puppet Server 1.0.2 available!

2015-01-21 Thread Tony Thayer
I've been using it in testing and so far so good. It is pretty heavy on resources and it takes somewhere around five minutes to start on the VM I'm using, but it has been picking up changes to my manifests almost instantly. Previously I would have to manually restart the puppetmaster service alm

[Puppet Users] Re: Puppet agent environment

2015-01-23 Thread Tony Thayer
I don't specify the environment for the master at all and haven't had any problems thus far with the wrong environment being picked up. I have 'Production' set as the client environment and will pass specific environments to the agent via 'puppet agent -t --environment=MYDEVENV', though Craig's

[Puppet Users] Re: Question about puppet-apache

2015-01-23 Thread Tony Thayer
You'll probably want to use a custom code fragment for that chunk. class { 'apache': } include apache::mod::wsgi apache::vhost { '*': servername=> '...', port => '80', docroot => '/var/www/djangoDeploy', directories => [

[Puppet Users] Re: No puppet for Juniper SRX series?

2015-02-27 Thread Tony Thayer
One possibility is that SRX-series routers use a weird MIPS port of FreeBSD (https://wiki.freebsd.org/FreeBSD/mips/Octeon) that may not have a Ruby port. The only references I could find were for OpenBSD. Not sure why a router would need ruby-qt, but it's there if you need it! On Thursday, Febr

[Puppet Users] Re: Anyone really using Postgres for a Hiera backend?

2015-05-19 Thread Tony Thayer
I used this one a while back: https://github.com/tioteath/hiera-psql The main issue I ran into was it required a very recent version of Postgres in order to use the JSON column type. I had a django frontend hooked into it to allow for easily updating node definitions. On Wednesday, May 13, 2015

[Puppet Users] Re: Anyone really using Postgres for a Hiera backend?

2015-05-19 Thread Tony Thayer
Actually, I just realized I was using my own fork of the original: https://github.com/tthayer/hiera-psql I'm not using it actively anymore and I doubt my previous employer is still using it either. There is an open issue stating that it doesn't work with the new puppetserver, too: https://githu

[Puppet Users] Re: Mixing hiera and site.pp

2015-08-07 Thread Tony Thayer
I work around this by creating wrapper classes that pull in my hiera data. example: class my_apache_config_module ( $this_hostname = hiera('this_hostname') ){ apache::vhost { $this_hostname: blah => "blah blah" } } On Wednesday, August 5, 2015 at 5:25:09 AM UTC-7, Alexander Dacre wrote: