Displaying 20 results from an estimated 500 matches similar to: "No more than one "instances" of a type in define()?"
2010 Oct 12
4
[0.25.5] Default provider
Hi all,
To start, using puppet 0.25.5 on Debian Lenny with Ruby
1.8.7.72-3lenny1.
I''m giving ruby a shot and am trying to build my own types for several
applications and modify available types found on the ''net for our
usage. However, I keep running into problems with the default provider
it selects. Is there a document somewhere that describes how the
default provider is
2012 Oct 19
3
Node specific exported resources
Greetings,
I''m trying to wrap my head around a solution to a problem I''m facing with
an exported resources configuration I have. I''m using the following simple
config to build a munin configuration:
@@file { "/etc/munin/munin.conf.d/${::fqdn}.node":
content => "[All Hosts;${::fqdn}]
address ${ipaddress_eth0}
use_node_name yes\n\n",
tag
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:-
<%=
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
2013 Apr 12
5
How to setup /etc/resolv.conf dependent on network
Hello,
I am a beginner in puppet so please excuse my lack of knowledge.
(I use puppet 3.1).
We have nodes in different networks - they use different DNS servers.
I''d like to set up its /etc/resolv.conf dependent on network they are in.
What approach would you recommend to solve the problem ?
Thanks in advance
Przemek
--
You received this message because you are subscribed to the
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
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
2010 Oct 22
2
problem w/ puppet & augeus : xinetd.d/rsync server_args value
Hello,
I would like to have the following line (among others) in my
/etc/xinetd.d/rsync file :
server_args = --daemon --address=<ipaddress_eth0>
--log-file=/var/log/rsyncd.log
To this end, i am using the camptocamp rsyncd module available from git.
Everything works except this line. I thought it was, perhaps, a
questions of spaces (this has been discussed on the list before),
2009 Jul 29
3
Use of Ruby Gem and Plugin
Hi,
I need to know what should we use in ROR application
gems or plugins.
Which is the best for any ROR application?
Can anyone brief me about this.
Thanks
--
Posted via http://www.ruby-forum.com/.
2018 Feb 08
3
pjsip trunking configuration issue
Greetings !
My goal is to get Twilio trunking working, and with TLS/SRTP.
I see this concerning message in my log:
[Feb 7 16:50:26] ERROR[20596] res_sorcery_config.c: Could not create an object of type 'endpoint' with id ?twilio' from configuration file ?pjsip.conf?
Thus, ?pjsip show endpoints? does not show the endpoint for the Twilio trunk.
Hoping for a sanity check of
2010 Jul 07
7
inventory of managed resources
Hi,
are there any good ways of scripting an inventory of managed resources on
all nodes? I''ve found the inventory script by R.I.Pienaar (
http://www.devco.net/archives/2010/02/26/what_does_puppet_manage_on_a_node-2.php)
which does what I want but only locally on each client. Is there any native
way of syncing the client_yaml data centrally or any other way of doing
this?
I need a
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 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,
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
2019 Apr 29
2
Difficulties retrieving randomly assigned password for newly created Samba user acounts
Hi everyone, I am using Samba 4.5.16-Debian on Raspbian and thanks to
the help offered by everyone here I now finally have a mostly-working
Active Directory network.
I am now at the stage of creating inidividual user accounts for my
domain and unfortunately I have a very basic but fundamental problem! I
currently enter the following input at the command-line to create a new
user on my DC:
pi
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>,
2009 Jun 18
7
Testing if a resource is already defined
Hi gang,
Is it possible to test if a particular resource has already been
defined? I''d like to do something like this:
if !Host["$fqdn"] {
host {"$fqdn": ip => "$ipaddress_eth0" }
}
Essentially, test to see if there is no Host resource defined for the
current server and if not, add a host entry for itself using the IP
address of eth0.
Possible?
2007 May 01
8
Custom functions and facts
Hello!
I''ve been trying to use facts from Facter in a custom function. I''ve
been following Matthew''s entry in the wiki
(http://www.reductivelabs.com/trac/puppet/wiki/WritingYourOwnFunctions).
What i''m seeing is that Facter[''fqdn''].value is always returning the
fqdn of the puppetmaster host. I was expecting the fqdn of the client
host.
2013 Jul 12
1
ERB template pain
Hi,
I have stupid situation that I may workaround but I think there is an
elegant way to deal with.
Still I need the community help.
In some class X I have:
$control = {
dev => {
id => 7,
name => ''GG''
},
prod => {
id => 1,
name => ''Info''
}
}
In some other class, which I apply to a node I have defined file from a