similar to: Puppet Console Groups - Node pattern match

Displaying 20 results from an estimated 40000 matches similar to: "Puppet Console Groups - Node pattern match"

2008 Feb 11
1
ctags support for puppet
This is a quick and dirty .ctags file that makes basic navigation possible with vim and ctags, great if you have multiple files: --langdef=puppet --langmap=puppet:.pp --regex-puppet=/^class[ \t]*([a-zA-Z0-9_\-]+)[ \t]*/\1/d,definition/ --regex-puppet=/^site[ \t]*([a-zA-Z0-9_\-]+)[ \t]*/\1/d,definition/ --regex-puppet=/^node[ \t]*([a-zA-Z0-9_\-]+)[ \t]*/\1/d,definition/ --regex-puppet=/^define[
2012 Nov 01
2
Does anyone know how to evaluate a node hostname in nodes.pp file?
Does any one know how to evaluate a node hostname in the nodes.pp file? for example something like this.. node ''node1.com'', ''node2.com'', ''node3.com'' { case node.name { ''node1.com'' : { include solaris } ''node2.com'' : { include redhat } ''node3.com'' : { include aix
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 Apr 26
2
Using backreferences from node name regex match
I appears that backreferences when using regexes in node names doesn''t work. Can anyone confirm this? If I''m incorrect, how do I go about using a backreference to the name regex within the node definition container? Thanks, Guy -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web
2013 May 08
5
Node definition from file (heterogeneous hostnames)
Hi, We would like to specify nodes in site.pp from a file. Is this possible? We have a script that should only be run by x nodes which can be different from time to time. Any suggestions? Thanks in advance Regard, Robin Jonsson -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving
2012 Oct 10
6
Puppet client not listening on port 8139
Hi everyone, Please help, I have built a new server and installed puppet (2.6.17) running on RHEL 6.3. It seems that it is not listening on port 8139. iptables -L: Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt
2013 Apr 18
1
Fetching class parameteres fails when tiering node inheritance under puppet 3.x
Hi, I''m running into some trouble when trying to access some variables which actually are a class parameter. The following works OK: node "common" { $var=''foo'' } node "gratia-base" inherits common { class { ''gratia'': dbhost => ''server.mysite.net'', } } node "node1"
2009 May 15
1
[PATCH server] add server-side groundwork for remote freeipa server
This lays 90% of the groundwork needed on the server side to support the use of a remote ipa server. Leaving the option disabled in the installer until the necessary node integration(dns/keytab placementi location) is completed Also apply: [PATCH server] update ovirt-add-host to use ipa commands instead of kadmin.local [PATCH server] separate ipa common tasks freeipa::common and rename
2009 Jan 02
2
problem with custom funcion
Hello! I''ve written custom function split - it''s located in modules/common/ plugins/puppet/parser/functions/split.rb and contains: module Puppet::Parser::Functions newfunction(:split, :type => :rvalue) do |args| str=args[0] regex=args[1] idx=args[2] out=str.split(/#{regex}/) if out.is_a? Array out[idx] else "" end
2011 Oct 13
1
puppet apache module
I''m getting this and it isn''t applying my apache module. Is it because of these warnings? notice: Starting Puppet client version 2.7.5 /usr/local/rvm/gems/ruby-1.9.2-p290/gems/puppet-2.7.5/lib/puppet/ provider/service/freebsd.rb:8: warning: class variable access from toplevel /usr/local/rvm/gems/ruby-1.9.2-p290/gems/puppet-2.7.5/lib/puppet/ provider/service/freebsd.rb:9:
2012 Apr 12
1
Define node environment on puppet master nodes.pp?
Hello, Is there a way to define an environment for the prospective nodes in nodes.pp (maybe a default node?) I''d like to be able to define it there and then have my puppet module configure the node puppet.conf (erb template) based on the parameters that’s passed on from the master. Possible? Thanks, Will -- You received this message because you are subscribed to the Google Groups
2013 Feb 12
6
Run Puppet Against Master with Local node.pp Manifest?
Does anyone know if it''s possible to run Puppet as if it''s running with a Master, but using a locally created node.pp manifest? I''m looking into doing some unit tests on applications that are installed by Puppet. To do this, I''m trying to use a test VM server which I''ll deploy applications onto. I figure that the easiest way is probably to
2013 Jul 02
1
How to: In nodes.pp - point "node" to hostnames in a file
I am working on a project that involves host names with now sequence to them. I would like my "node" hostnames in nodes.pp to point to a file with a list of these hostnames. Example: node {path/filename} { instead of the usual: node ''www1.example.com'' { or node /^www\d+$/ { Can this be done? Can anyone show my an example of how this was achieved? Thanks
2013 Jan 20
3
(New To Puppet)Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class sudo for pupclient on node pupclient
Hello Folks! I am trying to learn puppet. Installed the puppet 3.0.2 and configured one node as the master and the other as the client. Generated the certs and all that. But, I seem to be doing something wrong wrt to the init.pp file. Attached is exact error and my current server configuration. Any help in helping me fix this issue is appreciated: *[root@pupclient ~]# puppet agent --test*
2011 Aug 25
5
custom fact regex problem
Hi guys I have a custom fact envt, it was working fine but now I have to make some changes in it; puppet client''s hostname is of the type 1234qa-abc-de.local where 1234 can be any thing of any length.My custom fact should contain qa, ie I want to check in the first part(before the first -) of the hostname if there exists a pattern/word qa and if it exists then my custom fact for envt
2007 May 01
2
Regex for Nodes?
Forgive me if this has been discussed already (and please point me i the correct direction) But I have been trying to find a way to classify nodes in site.pp via webserver*.domain.com. Any hints? -Jason
2012 Aug 21
3
mcollective getaddrinfo: Name or service not known
I''m getting these errors when running ''puppet agent --test'' after doing a new installation of an agent: err: /Stage[main]/Pe_mcollective::Plugins/File[/opt/puppet/libexec/mcollective/mcollective/security/sshkey.rb]/content: change from {md5}512f42272699eaa085c83d2cc67c27ea to {md5}8fa3e9125fd917948445e3d2621d40e5 failed: Could not back up
2013 Oct 30
4
Warning: Local environment: "42A" doesn't match server specified node environment "production", switching agent to "production"
Hi, When I run puppet agent --test --environment 42A, I have the following warning : Warning: Local environment: "42A" doesn''t match server specified node environment "production", switching agent to "production". ... The puppet manifest for the environment "42A" isn''t applied. The puppet version is 3.3.1-1puppetlabs1 on agent and
2013 Mar 28
0
Puppet node does not see manifests on new puppet master
I have a puppet master that I had recently split into two, one handling just CA functionality and one handling the normal puppet master operations. puppet_ca puppet_master Otherwise, both are configured identically as follows: 1) The modules are stored into separate environments under /etc/puppet/environments: /etc/puppet/environments/foo/modules /etc/puppet/environments/bar/modules
2009 Nov 06
1
What is the best way to delete strings in a string list that that match certain pattern?
On Fri, Nov 6, 2009 at 3:05 AM, Diez B. Roggisch <deets at nospam.web.de> wrote: > Peng Yu schrieb: >> >> Suppose I have a list of strings, A. I want to compute the list (call >> it B) of strings that are elements of A but doesn't match a regex. I >> could use a for loop to do so. In a functional language, there is way >> to do so without using the for