search for: heira

Displaying 12 results from an estimated 12 matches for "heira".

Did you mean: neira
2012 May 17
5
modifying declared user/group types without resorting to inheritance?
...member of that group in prod. This is complicated by the fact that this group is declared in ::common. Am I left with having to do class inheritence here? I''d like to avoid that if possible as that would preclude ::dev and ::prod being included on the same node. I understand that heira is good at dealing with this sort of situation. Is there some magic way of looking up data in heira without dumping foreman as an enc? Cheers, -Josh -- -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the...
2013 Oct 02
1
Converting to heira format issue
Hi I''m just getting into hiera and have now configured it, my attempts at migrating to hiera have been frustratingly hard as I''m not able to get the write syntax. Can someone help me in converting the below from a class declaration to hiera? Current declarations in my declare.pp file: class profile::web { class { ''nsswitch'': automount =>
2012 Dec 03
14
hiera default values for a variable
...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 it couldn''t find it but that doesn''t seem to be the case. (unless I missed something in the rather sparse documentation) Is there a way of telling it to do this? I was also trying to work out how I automagically get my parametized cla...
2013 May 02
2
Puppet 3.1.1, hiera and parameter autoload
Hello all, I don''t know if I have hit a strange bug or it''s just an incorrect interpretation about how parameter autoloading works... Today I have been searching, analysing and about to hit my head against a wall trying to figure out why a call to hiera_hash was not merging data from top level among different hierarchies. The problem was that I was trying to do something
2013 Sep 19
0
Adding nodes to groups automatically
...nsole? I''d like the process to add nodes based on the osfamily fact. For example, if the node is osfamily=RedHat add to group named RedHat. From some reading I know there are rake tasks but I don''t see how to have them add the node based on osfamily fact. I also looked into Heira and know that it would do a better job of classifying nodes but I''m not quite ready to port my modules over to it yet. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails f...
2012 Jun 18
1
using hiera for node classification
Hi All, I''ve been trying to use Hiera for node classification, my sit.pp is simple: node default { hiera_include("classes") } which has been working well with simple class definitions like: user@host$ cat testagent.yaml 2012-06-18 14:55:48 jon pts/13 --- classes: - motd Is anyone doing this in production? I''ve seen a little about this on line but it
2013 May 20
2
hiera-gpg and 400 error
...g to use hiera-gpg to encrypt passwords, I have it installed and have created a key as described here: http://www.craigdunn.org/2011/10/secret-variables-in-puppet-with-hiera-and-gpg/ On the Puppetmaster server I can use the encrypted data in a manifest and also access it on the commandline from heira. However when I move to a node and run puppet agent -t, I get the following: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `empty?'' for #<Puppet::Util::Log:0x000000028697a8> at /etc/puppet/modules/ssh_users/manifests/init.pp:10 on nod...
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 then doing the same to create associated mysql databases. $sites = hiera_hash('...
2012 Nov 30
7
Using puppet to change passwords on nix systems
Hi, I am new to this and I discovered a manifest in an old post that should change passwords. It runs fine, but the password does not change. I am wondering how this would work since it would need to change the shadow. Thanks define change_passwd($user,$passwd) { exec { "/usr/bin/puppet apply -v -e \''user { \"${user}\": password => \"${passwd}\"
2012 Dec 17
20
early clean exit from module?
Hi folks, I''ve poked around the language reference, and havent found anything on this so far. I''d like to be able to force a clean early exit from a module. WITHOUT encasing the whole body of the module in an if statement. What I''m looking for: class somemodule { #no this isnt going to be a global variable I''m just using that as an example, if
2012 Jun 12
2
Adding files to file server on Puppet Master from a client
HI. Firstly, I''m bound to be doing something utterly basically wrong here, so if I am I apologise. Right now I have a fairly simple setup where the JAR files for a Weblogic-based application server are stored in the file server on my Puppet Master. I run scripts on the client that downloads the files from the file server, puts them in the right place etc etc. All very simple. I am
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 %>* *<%