similar to: Overriding a resource created in a define

Displaying 20 results from an estimated 1000 matches similar to: "Overriding a resource created in a define"

2010 May 07
1
variables in variable and class names
Hi, this may sound a bit strange, so let me tell you first what the problem is that i try to solve and maybe there is already a better solution. Some background: We use 3 different environments on our puppetmaster and we implemented something like a release management as a workflow for this. Cause why should you invent something new when you can steal it from software engineers ;-). The release
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
2008 May 06
5
Environments and tiers
Does anyone have any suggestions about how to deal with multiple environments/tiers? For instance, we have several environments ( production, dev, qa, etc.. ) and within each environment, different tiers ( web, data, app, etc ). Each tier is a different IP network segment, so all the hosts in each tier have different configurations for certain things like resolv.conf, ntp.conf and so on. We do
2007 May 01
8
Global Variables?
What is the view of having / not having global variables in Puppet? Facter variables are global in the sense they are defined in every scope (whereas ''normal'' variables are only available within the scope they are defined in). I could simply add a custom fact for my DoesTheServerNeedASerialConsole flag to Facter, but I''m not 100% sure I should be having the client
2012 Apr 27
15
puppet way of handling rdist and triggers
We have an existing "management system" of sorts, based on rdist. I''d like to know the best way to migrate it to using puppet. Currently, we have a local binaries tree, rdisted out nightly. We also make use of rdist''s extra capability to trigger scripts when and if named files are updated. I''m not sure what the best method would be, of converting this to
2007 Dec 13
1
Help me understand class namespacing
I asked on IRC but no one responded. Suppose the following: class basenode { include users include security class webserver { include apache, php } } node web1a { include basenode::webserver } Does node web1a imply including users and security specified under class basenode as well? Similarly, does this mean the same thing? class basenode { include users include security }
2011 Oct 12
0
Override values from default node inheritance (variable scoping).
Hi, I have a pretty basic question about variable scooping. We have been using puppet for the past few weeks now and were running into some problems which are probably caused by a lack of understanding or best practices. We have run into the following scenario and are not sure how to fix this. The majority of our host all use the same resolvers in our network (our internal dns servers) but there
2008 Oct 22
5
LDAP Problem
I am trying to configure puppet with LDAP repository . I have set puppet schema and I have also added node definition at LDAP. Here is my configuration details . ############################################################## Puppet.conf node_terminus = ldap ldapserver = 10.250.11.127 ldapbase = ou=Hosts,dc=xyz,dc=com ldapassword = secret
2006 Sep 14
12
Specify and respecify
Hello Puppet users, I had talked with Luke about this scenario and was wondering how others would/are handling something like this. Imagine a scenario where all servers will have a specific postfix configuration except for a server or two or three. So, you want to define a file "/etc/postfix/main.cf" and specify the source from your dist tree. But for those exceptional servers,
2013 Mar 20
2
How to make sure my common module executes before all other ones
I am running puppet 3.1.1 and have a site.pp which roughly looks like this site.pp: node basenode { include common } node ''server1'' inherits basenode { include role::appserver } node ''server2'' inherits basenode { include role::webserver } And my common module includes lots of different types of classes for creating base directories, adding in
2007 Jul 21
5
Some ''in service'' questions
Hi, Just a quick query about some things that crop up when I run ''puppetd --test''. Every time I run this command I always see the following output, which I think is strange as the ''man'' package has been installed previously and the firewall service is definitely running. Has anybody got any suggestions as to why puppet thinks it needs to install the man
2011 Mar 24
6
run stages in puppet 2.6
hello guys, I am trying to incorporate run stages into my puppet setup. I''ve been working with this for a few days and I haven''t quite got the hang of it yet... When I attempt my puppet run this is the error I see: ------------------------------------------------ [root@chromews21 ~]# puppetd -t err: Could not retrieve catalog from remote server: Error 400 on SERVER:
2012 Sep 24
4
Overriding variables.
I am trying to override variables in a class that is defined in the default node profile. I want parent class to be included in every single node, but override its variables in others. I have tried it several different ways now, and every single time the variables either become unset (undefined) or are set to the value of the first if statement. Here is my current iteration of failure.
2013 Oct 11
4
Duplicate declaration for files.
Hello, I''m configuring my linux server with puppet open and is ok. My question is the next; I''ve a declared in mi nodes.pp the next: [.............] node ''basenode'' { include ''baseos'' include ''motd'' import ''useradd.pp'' } #All nodes for my domain node /.*\.example\.com/ inherits
2013 Feb 01
3
Cannot get puppetlabs-haproxy to do what I want
I''ve been having a mess of a time using this module, which stinks because its behavior is EXACTLY what I am looking for... whenever I bootstrap new rabbitMQ nodes I want to add them to our HAProxy instance. Here''s my relevant site.pp entries: node /^rabbit.*/ inherits basenode { @@haproxy::balancermember { $fqdn: listening_service => ''messaging00'',
2023 Mar 10
2
401 error
On Fri, Mar 10, 2023 at 9:49 AM Jerry Geis <jerry.geis at gmail.com> wrote: > > > On Thu, Mar 9, 2023 at 9:42 PM Jerry Geis <jerry.geis at gmail.com> wrote: > >> I have a SIP trunk - calls going out work fine. >> >> Trying to setup an incoming call with a DNIS >> >> When I dial the number - I see nothing on the CLI. >> The person says
2001 Aug 27
2
agent forwarding with v2
I'm confused about the status of auth agent forwarding while using v2 protocols. I found an old newsgroup post that said it was not available but an entry in the ChangeLog entry dated 20001113 seems to indicate that it was added. So. Does agent forwarding work while using v2 protocols? I've been unable to get it to work since I switched to using v2. Thanks, Ben -- Ben Beuchler
2007 Aug 22
12
Virtual resource not found
Hi All, I asked on IRC but didn''t have everything organized and most people seemed busy. Hoping someone can see what I''m missing here. I''m trying to create a network module, used similar to the ''users'' configuration described in the Best Practices document. I have a users module which has that and it works with similar syntax to below. If I
2010 Jul 23
3
Design, syntax question for passing values from node.pp
Is it possible to define variable at this level. I need to pass the monit config file name ( sometimes its monitrc sometimes in not ). Here is what I have. # /etc/puppet/manifests/nodes.pp node basenode { include postgresql include monit include wiki include apace } node ''freebeerontuesdays.com'' inherits basenode { } -- You received this message because you are
2007 Oct 29
2
puppetd and self management
OS: FreeBSD 6.2-RELEASE Puppet: 0.22.4 OS: CentOS 5.0 Puppet: 0.23.2 Is it currently not possible for puppetd to upgrade itself (0.22.4 -> 0.23.2)? I tried it, and when puppetd attempted to restart itself (using the init provider), it failed to start back up. Perhaps the init provider needs to close all file handles before executing the rc.d scripts? Additionally, I had puppetd update its