Displaying 20 results from an estimated 31 matches for "extlookup".
2011 Oct 24
3
extlookup not working correctly in 2.7.6
I''m trying to upgrade from 2.6.7 to to 2.7.6 and I''m running into an
issue in my extlookup() calls. A lot of the variables which should be
defined aren''t defined within extlookup.rb. I''ve tested 2.6.7 agent
and 2.7.5 agent against the 2.6.7 master and 2.7.6 master. I adjusted
extlookup.rb slightly to provide some debug output.
http://pastie.org/private/jsmyxrfhggcvf...
2011 May 13
18
Thoughts about extlookup: http://blog.wl0.org/2011/05/thoughts-about-extlookup-in-puppet/
Hi,
I have been trying to improve the coding of some of
my puppet recipes and had some trouble so wrote this:
http://blog.wl0.org/2011/05/thoughts-about-extlookup-in-puppet/
Comments on the web seem to indicate that extlookup() solves "all
problems" but I don''t really see that and hence have proposed a possible
way to keep the data closer together and make the extlookup()
behaviour more explicit and thus IMO clearer.
What do you think?...
2010 Aug 22
3
extlookup in 2.6.1 defaults
Hmmm....
So I was just trying the extlookup function that comes with puppet
2.6.1. It now lets you do this:
$version = extlookup("rsyslog_version", "present", "packages")
which, according to the documentation:
# This will look for a version configured in packages.csv and then in
the rest as configured
# by $e...
2012 Oct 26
2
Using regex to match hostnames in hiera
Hi, I''m having a problem with extlookup not respecting the ''certname'' parameter[1]. When executing a puppet run with either the --certname or --fqdn parameters, it ends up using the specified SSL certificate and gets the correct node definition applied from the puppetmaster. However, it still retrieves extlookup data...
2011 Apr 19
4
Puppet environment can't be used in extlookup (precedence)
Anyone able to explain why "$fqdn" works and "$environment" doesn''t in:
$extlookup_precedence=["%{fqdn}","%{environment}","common"]
How to reproduce it:
-----------------------------
- In "/etc/puppet/manifests/site.pp" :
$extlookup_datadir = "/etc/puppet/manifests/extdata"
$extlookup_precedence=["%{fqdn}","%{envi...
2011 Dec 22
8
Managing sensitive strings with puppet
I''m new to Puppet, and I''m a software developer, not a sysadmin, so be
gentle. I have puppet managing some files via templates, and one of
the template variables that needs to be plugged in is a password of
sorts that shouldn''t be generally available. In particular, it can''t
be stored in the manifest, as that''s stored in version control, and
the
2013 Feb 14
0
Really need some help:: Weird Issue with external data look up in puppet 2.6.11
...- hostgroups/%{hostgroup}/%{site}/%{site}
- hostgroups/%{hostgroup}/%{site}/%{hostname}
- defaults
:yaml:
:datadir: /etc/puppet/manifests/hiera
site.pp
=====
node "puppetmaster.if.icap.com" {}
# The node lookup logic works as follows:
# Puppet looks in extlookup for the hostname. This checks the
$datadir/*.csv files
# CSV files return region, hostgroup and site
# Puppet then uses this info to query hiera about the host
node default {
$region = extlookup( "region" )
$hostgroup = extlookup( "hostgroup" )
$site = extloo...
2011 May 31
0
Extlookup++
....I.Pienaar <rip@devco.net> wrote:
> And for what its worth this afternoon just to see how hard it is
> and to again ask to myself ''wtf has no-one done this yet?'' and also
> ''wtf are people at Puppet Labs reinventing this wheel?'' I wrote
> a new extlookup that has pluggable backends.
>
The bit about reinventing the wheel probably doesn''t make sense to most of
this list. RI is referring to something I hacked up as a slightly different
direction to extlookup <https://github.com/nigelkersten/puppet-get> which I
didn''t send...
2011 Jun 07
0
Split Manifest Across Multiple Lines?
Is there a way I can split a line in a manifest across multiple lines, ala
shell style?
ie:
$include_postfix_module = extlookup("IncludePostfixModule", \
extlookup("IncludePostfixModule", \
extlookup("IncludePostfixModule", \
"",
"settings/nodes/_global"), \...
2012 Aug 29
9
puppetlabs-stdlib
I''m confused about this...
https://github.com/puppetlabs/puppetlabs-stdlib/
I see a lot of functions there that are the same as the ones that come
standard with puppet. If I create a module and dump this stuff in
there, what happens to the existing stuff? How does puppet know which
one to use?
Doug
--
You received this message because you are subscribed to the Google Groups
2011 Sep 22
8
Export variables into other classes
Hi all
I have been pondering this for a while, but not yet seen a clean way
to do it
I have a few puppet classes (apache/ntp/mysql/bacula/nagios/etc)
I would like to generate part of my bacula and nagios configs for each
host based on which other classes that host belongs to (or to put it
another way, I would like to export variables from classes which would
be used by my bacula and nagios
2011 Sep 07
1
undefined method `function_extlookup'
Trying to use extlookup from within template i use
<%= scope.function_extlookup("blah") %>
but get the undefined method `function_extlookup'' error
According to http://docs.puppetlabs.com/guides/templating.html#access-to-variables-and-puppet-functions-with-the-scope-object
this should work.
Tha...
2011 Nov 30
1
Using facts from stored configs based on class
...quot;:
table => "filter",
content => template("nagios/nrpe.cfg.erb"),
}
}
templates/nrpe.cfg.erb:
...
allowed_hosts=<%= nagios_servers.join('','') %>
...
I''m currently storing this type of data (nagios_servers) in CSV & using
extlookup, but it seems to me that we should already know this information
if we''re using stored configs.
Thanks,
Grant
--
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....
2011 Jan 07
18
Exactly how do people replace include with parametrised classes?
Hi list,
Reading the thread "can a class require an other class?" it''s been
mentioned that perhaps one way forward for the Puppet language is to
phase out the include keyword in favour of parametrised classes. I''m
thinking of my Puppet and the several levels of include chaining I use
and I''m wondering how on earth that''d be possible. Maybe
2013 Mar 08
2
multiple pamameter values in puppet dashboard ENC
Is there a way to use send multiple parameter values using puppet dashboard
ENC?
For example,
nameserver = 10.0.0.1, 10.0.0.2
or perhaps
nameserver = [''10.0.0.1'',''10.0.0.2''}
then the template erb file can loop through each of the nameserver values
to set up mulitple nameservers in resolve.conf?
Thanks - Oli
--
You received this message because you are
2011 Sep 23
3
ldap ENC extension to use environment parent node
Hi,
We currently use ldap ENC to set server role variables and extlookup
to set domain or environment variables.
I have a suggestion regarding ldap use as an ENC - if a node within
ldap has the environment attribute set then it should inherit/mixin
(if available) from a node named after it''s environment.
It could be populated with only puppetVar type attribut...
2011 Aug 08
12
Hash Interpolation inside double quotes?
I''ve got this:
file {
''/opt/sugarsync/tomcat/tomcat-home/current'':
ensure => "tomcat-$config[''tomcat_version_server'']";
where $config[''tomcat_version_server''] was set with extlookup (the yaml
one), by loading:
---
tomcat_config:
tomcat_version_server: 6.0.20-1
tomcat_version_libs: 1.0-1
Inside those double quotes, where variable interpolation is supposed to
occur, I''m actually getting:
tomcat-tomcat_version_libs1.0-1tomcat_version_server6.0.20-1[''tomca...
2011 Sep 14
1
Quick help… GitHub & Puppet Environments...
...few (2 ... max 3) ''Environments'' in Puppet to handle whether our systems are getting the Production release, or the Testing release of code.
Ok... here''s the two issues we need to solve:
#1: Our main "Puppet Repo" contains all of our base classes, site.pp, extlookup tables, etc. This repo also contains our private code ... private keys, operations-owned bits of data that shouldn''t be exposed to the rest of our engineers. We want to break this into a "Production" and a "Testing" environment on our Puppet servers themselves. I'...
2010 Jun 27
17
Variable Scoping = Root Canal
I''ve been struggling with puppet variable scope all day, well, for
several months actually.
I think I have pretty simple requirements. For any given node, I want
to be able to set a series of variables and include a set of classes,
based on three different aspects of a node, being physical location,
operating system, and function. If I try and do this with classes, I
find that variables
2010 May 14
0
yet another lookup function
Hi All,
Just to share something small, I''ve adjusted rip excellent extlookup
function to be able to search for csv files also inside of modules.
You can store your data files inside your modules directly, and it is also
possible to lookup in different modules.
for example - if you have a common module and a location module, the
variables defaults can be stored in the commo...