Displaying 20 results from an estimated 10000 matches similar to: "Hiera Automatic Parameter Lookup Question"
2013 Jun 12
2
Executing a script after creating vhosts with create_resources
Hello
I''d love a bit of advice in terms of how I should best go about this.
I am creating a bunch of vhosts, their definitions are stored in json (I''m using heira) that json file will be generated from data held on another server. I''m just using the puppetlabs apache module and create_resources to then generate all the vhosts and their directories etc. I''m
2012 Dec 26
6
puppetlabs/apt and apt::ppa
Greetings,
I''m trying to add ppa:nginx/stable repo for Ubuntu 12.04.1 LTS.
Server: puppetmaster-common 3.0.1-1puppetlabs1
Agent: puppet 2.7.11
And when I try to apply manifest - getting:
puppet agent -t
info: Caching catalog for wproxy71.tpnt.net
err: Failed to apply catalog: Could not find dependency
File[/etc/apt/sources.list.d] for
2013 Mar 28
3
Staging content from modules for temporary use by resources
Hello,
I would like to find a few to use files available in a module for the
execution of a particular resource, without having to stage the file
explicitly onto the client and possibly having to clean it up afterwards.
(This could also apply to content coming from templates.)
The use-cases I have in mind are: running a SQL file (to set up some
content in a database), extracting an archive
2013 Mar 10
2
Older versions of packages disappearing from yum repos
I've been designing the infrastructure for a new team using CentOS 6 and Puppet. I'm still learning Puppet, but thought I had things pretty well under control. After this week, I'm beginning to wonder? :-)
In the last week I've had versions of three packages disappear from the yum repositories I'm using, both EPEL and the standard ones from a base CentOS 6.3 install. Since
2012 Jul 20
2
Lookup another node's hiera data - fqdn hierarchy
I''ve begun using Hiera in combination with Foreman, primarily storing data
that is best left in Array/Hash form. I''d like to be able to have a
module, in this case BackupPC, query all the Hiera data for each node where
the backup directories/databases are stored. Then use all that information
on the BackupPC server to generate proper configuration files for each
2012 Aug 14
3
Testing Hiera Lookup with Puppet Master
Hello,
Is there an easy way to test hiera lookup for a node? A node is not getting
the value I expect from Hiera and I want a way to test this.
I noticed that `hiera` has an option called `-i` to use the Puppet
inventory service. With the latest (RC4 I believe) of Hiera I''m getting the
following when I try to use that though:
Puppet inventory service lookup failed: NoMethodError:
2013 Jan 30
1
Hiera parameter lookup, nesting variables and Puppet 3
Hi,
I''m trying to reconcile the advice in the Puppet 3 class doc with our
current use of Hiera. We currently retrieve variables from Hiera in one big
collection while the Puppet 3 doc seems to indicate storing variables
without the collection.
For example, we have a module to manage a log indexer. In its init.pp it
says:
class log_indexer(
$log_indexer_conf =
2013 Apr 25
0
Custom hiera back-ends
So there''s this:
http://docs.puppetlabs.com/hiera/1/custom_backends.html
Is there a more thorough tutorial? That one''s a little … light. :-)
--
Brian Lalor
blalor@bravo5.org
--
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
2013 Jan 25
2
creating file locations from hiera
Hi list,
I ran again against a long standing bug / feature request but from a new
angle: creating directories with parents (
http://projects.puppetlabs.com/issues/86).
I wanted to create a module, where a path could be supplied with a class
parameter. The path would be used in a rsync configuration, so I would like
to be sure the path exists. As I want the module to be general and
completely
2013 Feb 22
3
puppet could'nt find hiera even when hiera gem is installed
Hiera was properly working in my environment. But puppet was looking at old
version even when I have the latest hiera gem installed. So I could''nt
use json backend. But puppet is not looking at my latest hiera gem. Not
sure when went wrong here.
Scenario:
I have installed hiera couple of months back. So the gem was installed
under
/opt/puppet/lib/gems/1.8/gems/hiera-0.3.0
2012 May 22
2
Announce: Hiera-Puppet 1.0.0rc1 Available
Hiera-Puppet 1.0.0rc1 is a feature release candidate designed to
accompany Puppet 3.0 and Hiera 1.0.
It includes Puppet functions for hiera and also the puppet backend for
hiera lookups.
Downloads are available:
* Source http://downloads.puppetlabs.com/hiera/hiera-puppet-1.0.0rc1.tar.gz
* Apt and yum development repositories
* Apple package
2012 Mar 14
2
hiera on puppet 2.6.12
Hi,
I''m trying to use standard hiera on puppet (gentoo). I simply did
# gem install hiera
Then setup /etc/hiera.yaml
When i call the hiera() function in puppet i get
"Error 400 on SERVER: Unknown function hiera at /data/puppet/manifests/
site.pp:27"
Is there a step that I''m missing?
BTW. standalone hiera works fine.
--
You received this message because you
2012 Jul 01
1
puppet-hiera used with Parameterised class
Hi Puppet Users,
For some bizzare reason I am unable to use hiera-puppet with a
parameterised class.
The output is:
----------------------------
root@hiera hieratest/manifests# puppet apply -e "include hieratest"
Error: undefined method `catalog'' for #<Hash:0xb6c53d00> at line 1 on node
hiera.localdomain
Wrapped exception:
undefined method `catalog'' for
2013 May 08
1
Problem with hiera config
Hi all,
I''m trying to work with hiera database in puppet and i''m having problems
using %{variables} because they don''t get the values and i don''t know why.
file hiera.yaml:
cat hiera.yaml
---
:backends: - yaml
- puppet
:hierarchy:- nodes/%{domain}/%{hostname}
- os/%{operatingsystem}/%{operatingsystemrelease}
-
2012 Jul 23
1
Hiera problem: Can't convert Symbol into String
All,
I have found very few references to this error so I''m guessing I must be
doing something wrong. I have just started using hiera and am trying to use
it in the simplest way possible, I have a class that looks like this:
class app_users2($compresslogs = hiera(''compresslogs'')) {
2013 May 07
2
hiera not using non-root user custom fact
Hi,
Before I begin, my environment consists of a standard master/client config with the exception that all my clients run under a non-root user. I have to use non-root so I can''t simply restart under root to fix the problem.
Master -> 3.1.1
Client -> 2.7.17
using mostly the hiera() function in my classes.
problem:
I have run into an issue today where my custom fact is not
2012 Aug 09
1
hiera scope and hiera-foreman
Hey all,
I''ve been messing around with the hiera-foreman backend to see if it would
let me migrate to hiera and use foreman and an ENC.
https://github.com/torrancew/hiera-foreman
It works by querying each node''s yaml file from foreman. Currently this
code works when called from the hiera command line with the -m (mcollective
option). It uses the mcollective facts to pull
2012 Mar 05
1
New hiera backend for mysql
Hi all,
Over the weekend I came up with a new backend for hiera for looking up
configuration values directly from a MySQL database that may be useful
to some....
http://www.craigdunn.org/2012/03/introducing-hiera-mysql-mysql-backend-for-hiera/
http://github.com/crayfishx/hiera-mysql
Regards
Craig
--
Craig Dunn | http://www.craigdunn.org
Yahoo/Skype: craigrdunn | Twitter: @crayfishX
--
2012 Mar 25
2
Hiera: Bug with false booleans
Hi,
I''ve just run into a small glitch with Hiera.
I have a YAML file that has a definition like this:
puppet_agent_splay: false
but the run fails because of
"err: Could not find data item puppet_agent_splay in any Hiera data
file and no default supplied at
/puppet/modules/puppet/manifests/agent/config.pp:6 on node
slave1.local"
Digging into this it turns out that lookup in
2012 Dec 21
1
Hiera and 'clientcert' fact not working :(
Morning All
I''m trying to use Hiera with Puppet 3.0 to streamline some of my module
configuration...
However I''m having issues using the ''*%{::clientcert}*'' variable as part of
the hierarchy...
Currently, my *hiera.yaml* file looks like:
---
:backends:
- yaml
- json
:yaml:
:datadir: /etc/puppet/hieradata
:json:
:datadir: /etc/puppet/hieradata