Displaying 20 results from an estimated 2000 matches similar to: "multiple pamameter values in puppet dashboard ENC"
2013 Mar 11
1
using parameter with puppet dashboard and site.pp
I have just set up my puppet dashboard to be used as a ENC. This is for the
time being the easiest way to get support guys to add nodes to classes. I
have to use global parameters in my modules if I would like to declare
parameters using dashboard as the ENC.
So I have a module which does this:
class resolver ($domain_name=$::domainname,
$search_path=$::searchpath,
2012 Jan 23
13
Template Help Please
Hello,
I am trying to setup a template with data being passed in as a long
string of data which is being returned via extlookup()
i.e. $resolvers = "10.10.10.10 11.11.11.11.12.12.12.12"
The template should split those up and put a nameserver entry per line
in /etc/resolv.conf
I have this in the template now:-
<%=
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.
2012 Dec 12
8
puppet dashboard inventory
I have a puppet master install which uses puppetdb. I also have puppet
dashboard installed with the inventory service running. I want multiple
puppet masters using a single puppetDB server. Puppetdb is installed on
separate vm.
How can I get the dashboard inventory to use the puppetdb server to get the
inventory records? Where do I configure the dashboard inventory so it uses
puppetdb?
I
2012 Mar 15
3
using puppet to configure local settings
Hi,
I was asked by my boss if puppet can handle the following scenario.
- 2 server (A and B)
- same config for each server, eg. /etc/resolv.conf (nameserver
1.2.3.4)
- but B should have a local unique requirement of another nameserver
5.6.7.8
so, A will have
nameserver 1.2.3.4
but B will have
nameserver 5.6.7.8
nameserver 1.2.3.4
when we change the global nameserver 1.2.3.4 to 9.8.7.6, it
2012 Mar 19
1
dashboard as enc not working
I''m trying to setup dashboard as a node classifier w/puppet 2.6.14.
Not sure why this is not working...
In puppet.conf on the master I have:
node_terminus = exec
external_nodes = /usr/bin/env PUPPET_DASHBOARD_URL=http://
localhost /usr/share/puppet-dashboard/bin/external_node
The agent''s return:
err: Could not retrieve catalog from remote server: Error 400 on
SERVER:
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()
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 $extlookup_precedence if it''s not found anywhere
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 using the node''s actual FQDN, not the one
2012 May 29
1
Simply Auto Increment A Number
Hi,
I have a template which looks like this
<% scope.lookupvar(''openldap::params::ldapservers'').each do |var| -%>
olcSyncrepl: {0}rid=001 provider="ldap://<%= var %>:389"
type=refreshAndPer
sist retry="5 5 300 +" searchbase="<%=
scope.lookupvar(''openldap::params::searchbase'') %>" attrs="*,+"
bindmeth
2012 Sep 03
2
erb syntaxes
Hi guys,
I''m trying to do the following in my template:
location <%= location %> {
proxy_pass <%= proxy %>;
<% if scope.lookupvar(''nginx::resource::location::proxy_header'') then
scope.lookupvar(''nginx::resource::location::proxy_header'').each do
|header| %>
proxy_set_header <%= header %>
<% end
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
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"
2009 May 31
9
No more than one "instances" of a type in define()?
Hi folks,
when I try to do something like:
define railsproject($name, $uid, $gid, $userpass, $sqlpass) {
mysql_database { "$name_staging": ensure => present }
mysql_database { "$name_production": ensure => present}
....more stuff...
}
I get:
Puppet::Parser::AST::Resource failed with error ArgumentError:
Duplicate definition: Mysql_database[] is already
2006 Oct 21
2
object(s) are masked from package - what does it mean?
Hi,
Sometime when I attach a dataset, R gives me the following
message/warning:"The following object(s) are masked from package:datasets:
column_name". Does anyone know what it means? Since it seems that the
dataset was attached and I could manipulate the data from the dataset
without problems, I am wondering what was R trying to tell me.
Thanks,
Tom
[[alternative HTML version
2011 Nov 16
11
What is the offical variable scope best practice?
I read the guide at
http://docs.puppetlabs.com/guides/scope_and_puppet.htmland others''
mail, i am a little confused now, below is my understanding:
1. top scope only refers to site.pp, not include node definitions and facts.
2. in puppet class, using variables not local, must specify the namespace,
like $class::variable,
if it''s a top scope variable or a fact variable or a
2012 Aug 13
2
Variables and scope with inherits
I want to have a parametrized class with lookup from params.pp but I keep
getting into problems.
init.pp:
class foo (
$bar = $foo::params::bar,
$foofoo = $foo::params::foofoo
) inherits foo::params {
file {''/tmp/foobar'':
content => template("foo/foobar.erb"),
}
}
params:
class foo::params {
$bar = true
if $foo::bar {
$foobar =
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,
2013 Nov 18
3
Is it possible to evaluate a string as a parameter name?
Hi,
I''m looking to combine a couple of fact names with the value of a class
parameter to create and lookup the resulting fact''s value. Is that
possible? For example, my class will take the parameter "my_default_nic"
from beyond. So I know that as long as $my_default_nic exists on the
client, then so will facts like macaddress_<NIC>, netmask_<NIC>,
2011 Sep 21
2
Two parameterized classes calling both a thirth class (results in already defined)
Hi all,
I have three parameterized classes, named mq, mq_gsk and apache.
The mq class always calls the mq_gsk class, but the apache class
should only call the mq_gsk class when the mq class is not used in a
hosts'' node definition
Here is my configuration
class mq (
$gsk_version = undef ) {
require mq::params
< ..... >
class { ''mq_gsk'':