search for: hiera_include

Displaying 17 results from an estimated 17 matches for "hiera_include".

2013 Feb 22
3
puppet could'nt find hiera even when hiera gem is installed
...so its always looking under /opt/puppet/lib/gems/1.8/gems. Later I installed hiera using gem and explicitly specified to install under /opt/puppet/lib/gems/1.8/gems Now puppet cannot even find hiera() err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not autoload hiera_include: no such file to load -- /opt/puppet/lib/site_ruby/1.8/puppet/parser/functions/hiera_include.rb at /etc/puppetlabs/puppet/environments/development/manifests/site.pp:46 on node Looks like some thing wrong with my gem path or my puppet load path is not. Any idea what went wrong here? Using Ub...
2013 Feb 22
3
gem packages installed directory on puppetmaster
...so its always looking under /opt/puppet/lib/gems/1.8/gems. Later I installed hiera using gem and explicitly specified to install under /opt/puppet/lib/gems/1.8/gems Now puppet cannot even find hiera() err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not autoload hiera_include: no such file to load -- /opt/puppet/lib/site_ruby/1.8/puppet/parser/functions/hiera_include.rb at /etc/puppetlabs/puppet/environments/development/manifests/site.pp:46 on node Looks like some thing wrong with my gem path or my puppet load path is not. How do I come out of this? Any help grea...
2013 Feb 14
0
Really need some help:: Weird Issue with external data look up in puppet 2.6.11
...turn region, hostgroup and site # Puppet then uses this info to query hiera about the host node default { $region = extlookup( "region" ) $hostgroup = extlookup( "hostgroup" ) $site = extlookup( "site" ) $env = extlookup( "env" ) hiera_include( "global_classes" ) # This is maintained in defaults.yaml hiera_include( "hostgroup_classes" ) # Maintained in hostgroups/<hostgroup>/<hostgroup>.yaml hiera_include( "site_classes" ) # Maintained in hostgroups/<hostgroup>/<site&...
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 Feb 06
3
Passing class parameters to hiera
...t -tv --noop err: Could not retrieve catalog from remote server: Error 400 on SERVER: Invalid tag "sudo(''webapp'')" at /etc/puppet/manifests/site.pp: 19 on node cat /etc/puppet/manifests/site.pp ( portion of file ) =================================== node default { hiera_include( "node_classes" ) # Maintained in hostgroups/ <hostgroup>/<site>/<hostname>.yaml } -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To...
2013 Jun 13
0
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: A JSON text must at least contain two octets! at /etc/puppet/manifests/site.pp:4 on node irnode
Hi everyone. I am receiving an error on this line: hiera_include(''classes'') According to documentation here: http://docs.puppetlabs.com/hiera/1/puppet.html#hiera-lookup-functions it seems to the standard way to call hiera_include. Has anyone run into this issue? It only happens after a single puppet run. Thank you Kyle C -- You received...
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 seems to be mostly toy cases...
2011 Dec 06
1
module can't find other modules
...| | | `-- puppet_backend.rb | | | | `-- scope.rb | | | `-- puppet | | | `-- parser | | | `-- functions | | | |-- hiera.rb | | | |-- hiera_array.rb | | | |-- hiera_hash.rb | | | `-- hiera_include.rb | | `-- spec | | |-- spec.opts | | |-- spec_helper.rb | | `-- unit | | |-- puppet_backend_spec.rb | | `-- scope_spec.rb | `-- tomcat | |-- files | | `-- war | | |-- jenkins_1.423.war | | |-- jenkins_1.424...
2012 Jul 27
0
puppet 3 and hiera
...true; } Basenode is: class basenode ( $is_puppet_master = false, $apt_host = ''repo.domain.com'' ) { ... } For the module, hiera is not explicitly used. Also, root@ll-puppet-master-vm:/usr/lib/ruby/1.8/puppet/parser/functions# ls hiera* hiera_array.rb hiera_hash.rb hiera_include.rb hiera.rb Am I missing something? Thanks. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/BN3tA57HB1AJ. To post to this group, send email to p...
2012 Nov 27
1
Right way to implement "roles" in hiera/puppet
I''m looking to implement a hiera backend for our Puppet installation, as we routinely deploy systems that are of varying hardware, OS, and which may have multiple roles they fill. I''ve figured out, I think, how to handle the OS question through facter, but implementing server roles isn''t quite so clear. I want to maintain that information on the server, not on the
2013 Mar 15
3
advice on module organization
Hi Folks, Like to get some advice on module organization. I have a system that has a few different components. One or more components can be installed on a host. The hosts also have a "type" dimension. This "type" dimension could (should) ideally be used to configure the system (fill in a bunch of variables). Problem is, I''m not sure how the best way to do
2013 Oct 30
2
:merge_behavior: deeper and hiera_hash
Hi, To my surprise hashes passed to class parameters pulled from hiera with :merge_behavior: deeper, are not merged "as expected", where as hiera_hash does work "as expected". Or to rephrase: they behave differently, despite merge_behavior being set. I found a snippet documenting this here: http://docs.puppetlabs.com/hiera/1/lookup_types.html#deep-merging-in-hiera--120
2013 Sep 20
1
Automation of puppet configuration code
Hello, I work for the CHTC (Center for High Throughput Computing) at the University of Wisconsin, Madison. We utilize puppet for most of our configuration management. Currently we have a web application that performs the tasks of user account management. When a new user is registered with the application, the application does some very limited parsing of a puppet manifest that has
2013 Jul 29
2
puppet apply --hiera_config --> Error: Could not find class
...ile: [root@vserver-151 ~]# cat /etc/puppet/hieradata/Nieuwegein/common.yaml --- nagios_server = 192.168.1.222 # nrpe stuff nrpe_config_dir: /etc/nrpe.d nrpe_scripts_dir: /usr/lib64/nagios/plugins/contrib My site.pp [root@vserver-151 defines]# cat /etc/puppet/manifests/site.pp node default { hiera_include(''classes'','''') } Configuration file for this host: [root@vserver-151 Nieuwegein]# cat /etc/puppet/hieradata/Nieuwegein/management/vserver-151.dj-wasabi.nl.yaml --- classes: [''ruby'', ''puppet::master'', ''puppetdb'...
2012 Sep 26
6
Puppet 2.7, hiera 1.0 and hiera as an ENC
This is the situation I have: All my hosts are the* same OS.* All my host are in the* same puppet environment,* so I cannot use %{environment} I have a module that sets all the *basic* functionality for the OS, resolution, authentication, security, packages, etc I have a module for each application hosted. At the moment all the ''data'' is in Puppet, mostly in parametrised
2013 Sep 11
6
Puppet ignores hiera completely
I''m not sure at all what''s going on here, but I''ve spent a lot of time reading over the puppet hiera docs and setting everything up, but when I run puppet agent it just seems to ignore the hiera setup completely. Both the puppet master and agent nodes have exactly the same versions of puppet and hiera (installed via the official puppet APT repository). I''ve
2013 Apr 19
12
How to pass puppet/hiera veriable to external script ? Do I need to ?
...ommonAppData%\PuppetLabs\hiera\var on Windows # When specifying a datadir, make sure the directory exists. #:datadir: /etc/puppet/hieradata :datadir: /etc/puppet/environments/%{environment}/hieradata :merge_behavior: deeper /etc/puppet/environments/env1/manifests/site.pp node default { hiera_include ( "classes", [] ) } /etc/puppet/environments/env1/hieradata/common.yaml classes: - accounts /etc/puppet/environments/env1/modules/accounts/manifests/init.pp class accounts::users ( $accounts, $groups, ) { create_resources(group, $groups) create_resource...