similar to: Lookup another node's hiera data - fqdn hierarchy

Displaying 20 results from an estimated 2000 matches similar to: "Lookup another node's hiera data - fqdn hierarchy"

2013 Aug 29
10
Hiera and hiera-gpg
I am having a bit of difficulty implementing hiera-gpg; particularly with accomplishing the deencryption in my manifests. Can anyone either provide a simple example or point me to a good resource? I have searched alot and am still struggling. Any help would be very appreciated! Thanks! Bee -- You received this message because you are subscribed to the Google Groups "Puppet Users"
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",
2013 Jul 30
2
Failed to parse template, wrong number of arguments (create_resources)
I''m having some issues trying to track down a problem I''m having parsing a simple template, using create_resources and Hiera. Here''s my setup (abridged): ../hieradata/settings.yaml: *global:* * variables:* * env: foo* * * *appSpecific:* * serverName: someServer* ../modules/test/manifests/init.pp: *class test {* * create_resources(test::variables,
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
2013 Jun 04
11
Share Hiera configuration between 2 nodes?
Hi, I am trying to use Hiera in puppet 3 and I have two nodes that both need the same configuration. In this case they are two web servers which have the same apache configuration. Rather than creating two seperate hiera files for node1.yaml and node2.yaml is there a way to group these by role (e.g. webserver.yaml)? I want to avoid duplicating the configuration if possible and keep the data
2012 Aug 22
2
Hiera, OSSEC and per-node stuff?
Hi. I have an interesting use case. OSSEC is security tool based on server-client architecture. Server generates keys for agents, and every agent has different key. Now I want to distribute these keys via puppet. I''ve come accross hiera and installed it, and it works superbly, but how to store per-node key in hiera? This is my idea: hiera,yaml: --- :hierarchy: -
2013 Dec 13
3
Resource ordering only using Hiera?
Hello, I''m trying to come up with a generic wrapper class for use with hiera so that I can have a service that is completely managed and configured via hiera and its own puppet module to be notified by Puppet of changes to a file or other resource managed by a different class/module. The example I''m using here is the management of /etc/security/limits.conf for a service account
2013 Mar 14
5
Help me wrap my head around Yaml/Hiera with erwbgy/system
Trying to figure out the erwbgy/system plugin and just getting stuck.. first run it did some changes, but it ignored parameters for ntp and now its not refreshing if I update the yaml at all, Im slightly lost at what I may be missing :) hiera.yaml --- :hierarchy: - %{certname} - %{environment} - global - %{environment}/common :backends: - yaml :yaml: :datadir:
2012 Nov 28
2
[hiera] Hierarchy modification takes long time to be effective
Hello, I''ve something strange : When I modify my hierarchy in my hiera.yaml, it can take up to several hours, for the modification to work. eg : I create a subdir in my hieradata, move all the concerned files into, modify my hiera.yaml > from : > :hierarchy: > - %{operatingsystem} > to : > :hierarchy: > - *os/*%{operatingsystem} > but the changes
2013 Mar 10
1
hiera yaml namespace nesting
Hi, I''ve just got hiera deployed into a new puppet environment, and have defined a class as follows: modules/role/manifests/ui.pp ===================== class role::ui ( $public_hostname ) { notify {''role::ui::notify'': message => "role::ui configured for ${::data_center}; hostname: $public_hostname", } } This is then included into
2012 Nov 23
3
how to query yaml file with hiera function.
Hi guys, i have a hiera.yaml config file like this: --- :hierarchy: - %{env}/%{tmp_module_name} - %{env}/%{tmp_module_name}.common :backends: - yaml :yaml: :datadir: ''/etc/puppet/hieradata'' I also have a test/some_module.yaml file like this: --- db: root : pass port : ''3306'' I am also using the hiera function
2013 Dec 16
1
Overriding class options with hiera
Hi, I''m trying to do something with Hiera, whereby the ''default'' configuration for a class is within it''s role/profile manifest, which can then be overridden on a node specific basis by hiera. As an example; class profile::base { class { ''::ntp'': servers => [''a'', ''b'', ''c'',
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
2013 Jul 30
2
Vagrant Puppet Provision VM
Hi All, I am using Vagrant to provision a box (CentOS 6.x) with puppet provisioner. The box is built by using veewee, with ruby 1.8.7 and puppet 3.2 iinstalled, and the vagrant environment layout is, . ├── Gemfile ├── Gemfile.lock ├── Rakefile ├── Vagrantfile ├── definitions │ └── centos-6.3.minimal ├── hiera │ └── data ├── iso │ ├── CentOS-6.3-x86_64-minimal.iso │ └──
2013 Apr 19
12
How to pass puppet/hiera veriable to external script ? Do I need to ?
Hi, I have a problem with running puppet with hiera based data. I am trying to cleanup user accounts on a range of servers (to have the same uid/gid). When I create existing account but with different uid/gid it doesn''t change files group ownership so I need to run a script which cleanups after cleanup ;-) I use the following code: --- :backends: - yaml :hierarchy: -
2012 Dec 03
14
hiera default values for a variable
Hi everyone, I currently have a giant file with default variables I use in a lot of my modules and I override those at the node level if I need to. I thought I would give porting that data into a hiera setup. I worked out how to specify my data sources and started to make a go at moving some of my variables in the default data file. I thought heira would be smart and set a variable to undef if
2013 Dec 02
1
Class parameter flexibility with ENC, hiera or both
Dear puppetteers, I am having a philosophical question about parametrized classes. When building modules, one wants to be as flexible as possible, to try to target as many puppet flavors as possible. This is our target: - Foreman users, using foreman as an ENC with smart variables (or potentially any other ENC, but I would say this is the most widespread one). - Pure Puppet''s site.pp
2013 Jul 29
2
puppet apply --hiera_config --> Error: Could not find class
Hi there, I''m running into an problem which I can resolve. It is bugging me for couple of days now. Goal: CentOS 6.4 freshly installed incl puppet 3.2.3 and I want to install puppet master, puppetdb, mod_passenger & apache with "puppet apply". So when this is complete, I should have an puppet master server running so I can create new hosts etc. So this is the command
2012 May 17
5
modifying declared user/group types without resorting to inheritance?
Hello, I have number of classes that deal with user management and I''ve run into a snag with needing to extend/modify either the user or group types. I''m using theforeman as an ENC. The class structure I have is something like the following. users::common users::dev users::prod etc... users::{dev, prod} do not use inheritance. Almost all node include users::common.
2012 Aug 17
5
Hiera, Hashes, and Create_resources
Howdy: I need some help please to get hiera configuration data derived from YAML, thru puppet. I have studied Internet search results and puppet documentation on create_resources and custom defines but need a little help along. I can print out the YAML from variables, arrays, and, finally, hashes too from a puppet manifest. One thing that is stumping me is how to access from the custom define