Displaying 20 results from an estimated 10000 matches similar to: "hiera command line performance"
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:
2012 Sep 30
22
in-module data with hiera
hello,
Till now hiera-puppet was the only way I know that allowed hiera data to
be loaded from inside a module.
The problem with this was that it was still subject to the site specific
hierarchy which means a module author had a pretty hard time to store
his data in a proper way in his module thus perpetuating the use of the
params classes pattern.
Now that Puppet 3 is out and it''s gem
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 Aug 23
2
debugging hiera
Is there a way to check which data file(s) hiera is attempting to parse? I
tried "puppet -d" with no luck. I''m wanting to select the variable
"dnsservers" based on a custom fact.
---
Error: Could not retrieve catalog from remote server: Error 400 on SERVER:
Could not find data item dnsservers in any Hiera data file and no default
supplied at
2013 Jan 11
13
Profiles, Hiera, and create_resources('class','...')
Hi all,
We''ve recently started exploring the role / profile / component module
described by Craig Dunn in his blog here:
http://www.craigdunn.org/2012/05/239/ and discussed on the list the other
day. As I was implementing this for
a profile using the apache module, I realized that I could make another
refinement to our approach by using
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 10
9
Hiera and environments
Hey there,
I''m new to hiera and I'' m looking to configure it to use multiple
environments. I''m able to query hiera keys from using the hiera CLI,
however my clients seem to be having problems identifying the look up
variables.
*On the puppet master, CLI query*
[root@puppet-dev puppet]# hiera -a sshpackages environment=development
["openssh",
2012 Feb 10
7
Hiera data unusable in a class with an array parameter
Given the following hiera hash:
common.yaml:
---
*allowed_ips:*
* "First IP": 1.2.3.4*
* "Second IP": 5.6.7.8*
and the module:
*class iptables ($role) {*
* file {/tmp/test:*
* content => template(iptables/test.erb)*
* }*
*}*
with the corresponding template test.erb:
*<% role.each do |role| -%>
*
* code*
*<% end %>*
*<%
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 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 Dec 07
6
Poll for thoughts on hierifying modules and OS default differences
Hello lovelies,
Our team is deliberating a few different options for the hierification of our modules; and wanted to poll the collective genius before making our decision.
As we all know, there are certain attributes of a package which are, by default, consistent on an OS... say, the name of a package.....
class foobar {
include foobar::params
$package = $foobar::params::package
Package
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 Feb 22
3
gem packages installed directory on puppetmaster
What is the right path for ruby gems on puppet master.
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
/opt/puppet/lib/gems/1.8/gems/hiera-puppet-0.3.0
Later when I updated to new version of hiera then it installed (via gem
install) under
/opt/puppet/lib/gems/1.8/gems/hiera-1.1.1
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 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
2013 Jun 11
2
hiera data bindings and template()
Hi,
I''m using Puppet 3.2.1 and heavily relying on hiera data bindings.
I have the following situation:
class software (
$my_content = undef,
) {
file { ''/path/to/file'':
content => $software::my_content,
}
}
in hieradata/software.yaml (hiera.yaml seems ok):
software::my_content: template(''mymodule/myfile.erb'')
With this configuration I