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
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
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
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
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
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
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.
>>
>>
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
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
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
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
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
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
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
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
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
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
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
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 => [
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
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
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
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:
23 matches
Mail list logo