[Puppet Users] Re: How to compare two strings/Arrays

2019-01-29 Thread steven . pritchard
$facts['interfaces'] is a string, not an array. For an array of interface names, either use $facts['interfaces'].split(',') or $facts['networking']['interfaces'].keys(). Other than that, your logic should work fine. On Monday, January 28, 2019 at 3:35:23 PM UTC-6, Abhishek singh wrote: > > Hel

[Puppet Users] Re: How best to use hiera for Java options? (with hash_merge)

2014-11-19 Thread Steven Post
this reason I already use a (ugly) work-around in this case: https://www.2realities.com/blog/2014/07/05/puppet-hiera-hash-merge-and-automatic-parameter-lookup/ > You're missing my point there, I think: if you modify the form of the data, then almost surely you *must* modify the data cons

[Puppet Users] Re: How best to use hiera for Java options? (with hash_merge)

2014-11-19 Thread Steven Post
is 1.3.1 I'll test this out and get back with my findings. Regards, Steven -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubsc

[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread Steven Post
tdn => "cn=admin,${dn}", > rootpw => $rootpw, > } > } > > > On Tuesday, November 18, 2014 9:06:34 AM UTC-7, Steven Post wrote: >> >> The roles/profile pattern does not use node inheritance, only class >> inheritance. >> Strictly speaki

[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread Steven Post
a minimum which is why > I am struggling to find a way to create a class - certainly I can create a > new wl class for this but then I am struggling to make these things work > inside a class. > > On Tuesday, November 18, 2014 5:32:54 AM UTC-7, Steven Post wrote: >> >

[Puppet Users] Re: trying to use a puppet forge module that uses a different style

2014-11-18 Thread Steven Post
to it (such as wl.pp), which then uses the ldap module, unchanged. More info about the roles/profile pattern: http://www.craigdunn.org/2012/05/239/ One of the ideas here is that you should never need to change a module you download from the forge (with some rare exceptions) Regards, Steven On M

[Puppet Users] Re: How best to use hiera for Java options? (with hash_merge)

2014-11-18 Thread Steven Post
On Monday, November 17, 2014 4:06:02 PM UTC+1, jcbollinger wrote: > > > > On Monday, November 17, 2014 4:11:09 AM UTC-6, Steven Post wrote: >> >> Hi, >> >> I've been using puppet for over a year now, but now I have a problem, and >> I'm no

[Puppet Users] Re: scope of variable inside defined type

2014-11-17 Thread Steven Post
en you can access the $yy variable like this: $localvariable = $::foo::yy Best regards, Steven On Monday, November 17, 2014 9:06:25 AM UTC+1, Rajgourav Jain wrote: > > Hi, > > I have written two defined type and trying to use some variables between > them. > > foo/manifest/i

[Puppet Users] How best to use hiera for Java options? (with hash_merge)

2014-11-17 Thread Steven Post
passed down twice, but with different values. How to solve this? Does anyone else have any experience to share about this? Regards, Steven -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving

[Puppet Users] scripts

2014-08-06 Thread Steven VanDevender
Cathal O Mul writes: > I have a file call pr.sh it is a scrip I would like puppet to run it > how would I go about doing this This is what Puppet "exec" resources are for, although one should use those sparingly and only if what you want to accomplish can't be done using some other resource type

[Puppet Users] run bash script from puppet

2014-08-06 Thread Steven VanDevender
Cathal O Mul writes: > i am new to puppet > I want to run a file called remove > This file removes a file > File remove > rm test101 > How do i get puppet to run this file ? In this specific case it would probably be better to use a Puppet "file" resource to perform the removal of the file:

Re: [Puppet Users] How to check a text file for a certain line?

2014-04-21 Thread Steven Kurylo
imple_Text_Patterns/5 exec { "/bin/echo '${line}' >> '${file}'": unless => "/bin/grep -qFx '${line}' '${file}'" } -- Steven KuryƂo -- You received this message because you are subscribed to the Google Gro

[Puppet Users] r10k and dynamic environments

2014-03-25 Thread Steven James
ow-part-3b/ e.g. 'basedir' => "${::settings::confdir}/hiera", Any thoughts from anybody? Regs, Steven -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails

Re: [Puppet Users] Re: Does r10k play nicely with Puppet Enterprise gems?

2014-02-26 Thread Steven James
feedback appreciated! Thanks Steven On Wed, Feb 26, 2014 at 4:56 PM, Steven James < pullingthestrings...@gmail.com> wrote: > Thanks Adrien! > > On Wednesday, February 26, 2014 10:41:28 AM UTC+11, Adrien Thebo wrote: >> >> Hi Steven, >> >> I'm g

[Puppet Users] Re: Does r10k play nicely with Puppet Enterprise gems?

2014-02-25 Thread Steven James
Thanks Adrien! On Wednesday, February 26, 2014 10:41:28 AM UTC+11, Adrien Thebo wrote: > > Hi Steven, > > I'm glad that you've found r10k useful! > > r10k has pretty a lightweight set dependencies that should play nicely > with the rest of Puppet Enterprise, and

[Puppet Users] Does r10k play nicely with Puppet Enterprise gems?

2014-02-25 Thread Steven James
As r10k is a gem install, and has quite a few gem dependenciesdoes anybody know if it plays nicely with Puppet Enterprise? As long as I use PE's /opt/puppet/bin/{bundle,rake} when doing the builds, should all be fine? Anybody have any stories or woe and dispair, or just lots of associated hap

[Puppet Users] Re: Puppet vs "typical" release management / change management

2014-02-05 Thread Steven James
Thanks for your input chapsappreciated! Steve On Tuesday, February 4, 2014 9:05:37 PM UTC+11, Steven James wrote: > > Hi there. > > I'm look to see if anybody has any advice to share around how the > implementation of Puppet affects the "typical" ITIL based re

[Puppet Users] Puppet vs "typical" release management / change management

2014-02-04 Thread Steven James
Hi there. I'm look to see if anybody has any advice to share around how the implementation of Puppet affects the "typical" ITIL based release management and change management processes. >From a change perspective, I'm thinking that the whole risk thing associate with the CAB for example, should

[Puppet Users] Ubuntu Network Proxy via Puppet

2014-01-29 Thread steven . lokie
So we have hit a wall pretty hard here: We have a series of Ubuntu Desktops running 12.04 LTS and we've configured puppet to do enable to Network Proxy and it does the weirdest thing. It will refuse to set the proxy until we do an initial setting in the GUI. (Gnome Desktop) Here's our config

Re: [Puppet Users] roll back update

2014-01-22 Thread Steven VanDevender
Jason Antman writes: > There's nothing existing that I know of that works in the GUI-based way > you seem to be talking about. Because, well, we *nix people usually > don't do that. > I've really only worked on RPM-based systems, so I'm not sure if this is > still applicable in the debian wor

[Puppet Users] Re: Template change - not applying

2013-12-15 Thread Steven Jonthen
Ok I solved the problem. Thx. Am Sonntag, 15. Dezember 2013 15:23:04 UTC+1 schrieb Steven Jonthen: > > Hi guys, > > I'm using Puppet 3.3.1 and have the following problem: > When I change the values of variables which are used by my > Puppet-template, then the change is

[Puppet Users] Template change - not applying

2013-12-15 Thread Steven Jonthen
Hi guys, I'm using Puppet 3.3.1 and have the following problem: When I change the values of variables which are used by my Puppet-template, then the change is applied by Puppet. But when I change any static thing (text) within the template, the changes are not applied by puppet. Can anyone te

[Puppet Users] Re: Providing hiera with module data

2013-12-02 Thread Steven Jonthen
I only need to know how to use different "hiera.yaml" files for different modules. How can I achieve that`? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to pupp

[Puppet Users] Dynamic hiera.yaml

2013-12-01 Thread Steven Jonthen
Hi, I want Puppet to take each module's own "hiera.yaml"-file, which is in the module-directory. That works if I use "puppet agent --apply --binder --hiera_config=/path/to/module_hiera.yaml -e 'include classxy'" but Puppet doesn't find the parameters if I use "puppet agent --test" How can I fi

[Puppet Users] Hiera - override variable

2013-12-01 Thread Steven Jonthen
Hi guys, I've a class-x, which should overwrite or use the parameters of class-y which are saved in an Hiera ".yaml"-file. How can I do that? I really need your help! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this gr

[Puppet Users] Re: Providing hiera with module data

2013-11-30 Thread Steven Jonthen
Hi, I have this problem: Hiera only looks inside "data/common.yaml"-file, which is in my module-directory. When i put other data into another yaml file "data/example.yaml", then Puppet doesn't find that data. What's the cause for this problem? -- You received this message because you are sub

Re: [Puppet Users] Re: Unable to specify hierarchy for data-in-modules

2013-11-30 Thread Steven Jonthen
Hi MM, Can you tell me how you succeeded in using hiera-data, which is stored in the individual module-directories? thanks! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send

[Puppet Users] Re: Providing hiera with module data

2013-11-30 Thread Steven Jonthen
Hiera-2? I can't find any information on the puppet-website about Hiera-2? What do you mean with Hiera-2? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to pup

[Puppet Users] Re: Providing hiera with module data

2013-11-30 Thread Steven Jonthen
That doesn't help me :(. The page says: Can I set top level scope parameters using data in modules? No. Not yet at least. Isn't there a simple way to solve this problem? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from th

[Puppet Users] Providing hiera with module data

2013-11-30 Thread Steven Jonthen
Hi guys, I don't know how to solve this: I want ".yaml"-files in each module's "/data"-directory. These .yaml-files should contain data, which Hiera sould pass to the module's manifests. How can I do that? I'm using Puppet 3.3.1 Thanks in advance! -- You received this message because you are

Re: [Puppet Users] PuppetDB - notify Puppetmaster

2013-11-09 Thread Steven Jonthen
Ok thanks! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.go

[Puppet Users] Re: Zone-file out of LDAP

2013-11-09 Thread Steven Jonthen
Thanks a lot! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups

[Puppet Users] Zone-file out of LDAP

2013-11-05 Thread Steven Jonthen
Hi guys, I want to put all the data, which is needed for my zone-files into OpenLDAP. Next I need a tool, which creates zone-files out of the information which is stored in OpenLDAP. Have you any idea how to do that? Really thanks in advance! -- You received this message because you are su

[Puppet Users] PuppetDB - notify Puppetmaster

2013-11-04 Thread Steven Jonthen
Hi guys, I want the Puppetmaster to be notified if an agent has put new data into the PuppetDB, which is installed on the puppetmaster. After each incoming new data for PuppetDB I want to execute a command on the Puppetmaster. How can I do that? -- You received this message because you are su

[Puppet Users] Re: Hiera vs OpenLDAP

2013-10-30 Thread Steven Jonthen
Hi guys, First of all thank you for your hints. I would have suggestion: What if we'd use Hiera with a LDAP-Backend. Hiera would automatically look up the class-variables in LDAP, wouldn't it? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group.

[Puppet Users] Hiera vs OpenLDAP

2013-10-29 Thread Steven Jonthen
Hi guys, I want to use Hiera with a OpenLDAP-Backend. The OpenLDAP-Backend should contain class parameters. When a agent connects to the puppet master then hiera should extract from the OpenLDAP-Backend which roles and which class-parameters the node has. I've found any useful example in the i

[Puppet Users] Central configuration for DHCP and DNS

2013-10-29 Thread Steven Jonthen
Hi guys, I need your help: - I want to achieve a role-based Puppet-configuration of the nodes - I want a single file which contains: - All the roles a certain node has - All the DHCP and DNS configuration data for a specific node This central configuration file should be in "yaml"-format.

[Puppet Users] ENC - how to get info about the node

2013-10-27 Thread Steven Jonthen
Hi guys, It is only allowed to pass one parameter to your own ENC-Class in Puppet. But how can I set a "department" variable for each node and use it in my ENC-Script? Has anyone a clue how to do it? Thank's in advance! -- You received this message because you are subscribed to the Google Gro

[Puppet Users] Re: Role-based puppet

2013-10-26 Thread Steven Jonthen
I've a question: What does this mean/how is this realized?: '::role::somerole' Is this a module or a manifest? What is "role" and what "somerole"? How does the content look like and where do I have to create it? Can you give me an example? -- You received this message because you are subscribe

[Puppet Users] Re: Role-based puppet

2013-10-26 Thread Steven Jonthen
Ok thanks! That helps me a lot! I'll do research on your hints and come back if I've questions. Thanks a lot! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[Puppet Users] Role-based puppet

2013-10-25 Thread Steven Jonthen
Hi guys, I want realise a role-based puppet-configuration. What I mean is this: There should be a simple external text-file, which contains "hostname/node --> role" association. Then there should be a class-definition for each role. In this way, I want to associate a server with different roles

[Puppet Users] Puppet 3 class autoloading not working?

2013-09-25 Thread Steven James
vents Notice: Finished catalog run in 0.83 seconds [root@puppetcore1 tests]# Any takers? My head is hurting :( Thanks Steven -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it

RE: [Puppet Users] arnoudj/sudo and different versions of CentOS

2013-09-12 Thread Steven Nemetz
I don't know about the module you are using but things to verify: /etc/sudoers contains an include for /etc/sudoers.d Check that the version of sudo is new enough to support this. You may need to upgrade it. I had to on a number of my Redhat 5 servers Steven Date: Thu, 12 Sep 2013 15:

RE: [Puppet Users] Re: Is it possible to install actual OS using puppet?

2013-09-12 Thread Steven Nemetz
Take a look at razor https://puppetlabs.com/solutions/next-generation-provisioning https://github.com/puppetlabs/razor http://www.slideshare.net/PuppetLabs/puppetandrazor http://www.slideshare.net/PuppetLabs/razor-puppet Steven Subject: Re: [Puppet Users] Re: Is it possible to install actual OS

[Puppet Users] Setting up an HA Puppet console using HAProxy

2013-09-11 Thread Steven James
ve any advice on what to do with regards to the secondary console, which I'm assuming must be passive whilst the first is running? I suppose my question is around how to set up a load balanced pair of Puppet Masters (PE3), using HAProxy. Any experiences, or guides? My brain is hurtin

[Puppet Users] An assortment of 2.x agents out there...a Puppet 3 PM, and Satellite to lend a hand? Agent update / migration approach?

2013-09-11 Thread Steven James
new agent at the new PE3 server. Package to be signed on Satellite and deplyed out to clients to do the upgrade "magic" My fear is that the old agent will not come off cleanly, or something else "bad" may happen. Does anybody have any ideas or strategies on this one?

[Puppet Users] Puppet environments versus the PE console?

2013-09-11 Thread Steven James
Hi, I was wondering if it's possible to use (puppet.conf) environments within the classes in the PE console? I saw this link, but wondered if there had been any updates or other experiences from anybody? http://projects.puppetlabs.com/issues/6608 Thanks, Steven -- You received this me

[Puppet Users] hiera.yaml syntax required, for Puppet 3 lookup of files within a sudirectory

2013-09-11 Thread Steven James
actually returned?? This is the default in the hiera.conf file I see. clientcert, rather than fqdn?? ) Does anybody have the correct syntax for Puppet 3 hiera to search in a subdirectory as above? Thanks Steven -- You received this message because you are subscribed to the Google Grou

[Puppet Users] Setting up PE from scratch with PuppetDB/Postgres on separate box

2013-09-10 Thread Steven James
uld all else be fine? Thanks for your input, and I'm happy to post updates if anybody has any suggestions. Steven -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it

[Puppet Users] Puppet calls the ENC twice for some nodes.

2013-09-09 Thread Steven VanDevender
pierra mathieu writes: > Hi everyone, > > I have an issue setting up Puppet with an ENC. > For some nodes, puppet calls my ENC twice with a 2 sec interval. Why is that a problem? Your ENC should always return the same data for the same node, and it should be efficient enough that it can be

RE: [Puppet Users] clone system configuration with puppet

2013-09-06 Thread Steven Nemetz
Found the other one. It is pysa Links for both: Blueprinthttps://github.com/devstructure/blueprinthttp://devstructure.com/blueprint/ Pysahttp://pypi.python.org/pypi/Pysahttp://github.com/MadeiraCloud/pysa Steven From: snem...@hotmail.com To: puppet-users@googlegroups.com Subject: RE: [Puppet

RE: [Puppet Users] clone system configuration with puppet

2013-09-06 Thread Steven Nemetz
print. There is also a newer tool, but I can't remembered its name at the moment. Steven Date: Fri, 6 Sep 2013 01:54:28 -0700 From: marcus.schae...@gmail.com To: puppet-users@googlegroups.com Subject: [Puppet Users] clone system configuration with puppet Hi, I'm new to puppet, read a b

[Puppet Users] Puppet and RHN Satellite - Queensberry rules required?

2013-09-05 Thread Steven James
a whole new other workflow around progressing Puppet changes thru the environments ;) I'd really appreciate any insights anybody has around this stuff. Happy to share experiences over the next week or two. Regards, Steven -- You received this message because you are subscribed to the Goo

RE: [Puppet Users] puppet client

2013-08-29 Thread Steven Nemetz
itself with different names depending on what version you are running. Steven From: smcracr...@me.com Subject: Re: [Puppet Users] puppet client Date: Thu, 29 Aug 2013 09:27:52 -0700 To: puppet-users@googlegroups.com I assume it is just the version of puppet client which matches the master'

RE: [Puppet Users] puppet client

2013-08-28 Thread Steven Nemetz
Just use the RedHat packages We use the same packages for RedHat, CentOS, and Oracle EL Some modules need to get slightly modified to recognize Oracle EL Steven > Subject: [Puppet Users] puppet client > From: smcracr...@me.com > Date: Wed, 28 Aug 2013 10:02:48 -0700 > To:

RE: [Puppet Users] puppet-ls with Puppet 3.2

2013-08-23 Thread Steven Nemetz
You could try the newer module designed to do the same thing. It was written as a puppet face about 6 months ago https://github.com/dalen/puppetls Steven Date: Fri, 23 Aug 2013 01:42:11 -0700 From: andreas.dvo...@googlemail.com To: puppet-users@googlegroups.com Subject: [Puppet Users] puppet-ls

[Puppet Users] Selector within a resource -- location & syntax

2013-08-05 Thread Steven VanDevender
root writes: > > Can anyone tell me why this is legal: > > file { "/etc/cron.d": > owner => "root", > group => "root", > mode => $operatingsystem ? { >'Solaris' => "0755", >default => "0700", > } > } > > > .

RE: [Puppet Users] execution expired

2013-07-23 Thread Steven Nemetz
27;re comfortable with Steven Date: Tue, 23 Jul 2013 16:15:30 -0400 Subject: [Puppet Users] execution expired From: salty.cowd...@gmail.com To: puppet-users@googlegroups.com Just added a bunch of forge modules to my mix. If I run from my puppet master things go OK. Running from another server th

RE: [Puppet Users] Re: Validation failed: Host already has a report for time and kind

2013-06-11 Thread Steven Nemetz
Every time that I've received this error, it was because 2 different hosts had the same cert name. In my case a problem caused by system cloning or a system template that contained a cert name. Hope that helps, Steven Date: Tue, 11 Jun 2013 08:17:42 +0100 Subject: Re: [Puppet User

RE: [Puppet Users] Trouble writing authorized_keys2

2013-05-07 Thread Steven Nemetz
rom dsa to rsa key and that caused this error on every system that had the old key. This also blocks other things in the manifest from running. Usually I just delete the bad files and let puppet recreate them. But you could also just remove the bad entries. Steven Date: Tue, 7 May 2013 10:1

RE: [Puppet Users] Puppet mount fails due to kernel module

2013-04-09 Thread Steven Nemetz
ns to allow mount to work for non-root users. Check your mount man page and test. Load a different app to handle user mounts. There are other apps available for this type of thing. Fuse and apps based on fuse are the most common, but not the only ones available. Hope that helps a little, S

RE: [Puppet Users] serving large files "formally code artifacts" best practices

2013-03-09 Thread Steven Nemetz
when this issue comes up. Steven Date: Sat, 9 Mar 2013 23:21:06 +0200 Subject: [Puppet Users] serving large files "formally code artifacts" best practices From: emamd...@cloud9ers.com To: puppet-users@googlegroups.com Hi All, I'd like to know best practices in serving code arti

RE: [Puppet Users] inplace line manipulation

2013-03-09 Thread Steven Nemetz
https://github.com/puppet-modules/puppet-common/blob/master/manifests/defines/replace.pp Also found a module for editing files. I just found it and have not used it, so no idea how well it works https://github.com/mstrauss/puppet-editfile Steven Date: Sat, 9 Mar 2013 23:55:50 +0200 Subject: [P

[Puppet Users] puppet openstack - missing quantum module

2013-02-27 Thread Steven Vacaroaia
id not help either Any help getting this working would be greatly appreciated Steven -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+

RE: [Puppet Users] Using Facter to find the Java version running on the machine

2013-02-21 Thread Steven Nemetz
This is the fact that I use Facter.add("java_version") do setcode do `/usr/bin/java -version 2>&1`.split("\n")[0].split('"')[1] end end Steven Date: Thu, 21 Feb 2013 22:50:24 + From: y...@comcast.net To: puppet-users@googlegr

RE: [Puppet Users] Managing puppeteer modules with git

2013-02-11 Thread Steven Nemetz
others. So far, it has worked well. Steven > From: opsma...@gmail.com > Subject: [Puppet Users] Managing puppeteer modules with git > Date: Mon, 11 Feb 2013 15:53:34 -0500 > To: puppet-users@googlegroups.com > > How do other people organize their puppet configs in Git? > > Ri

RE: [Puppet Users] hiera query yaml parameters

2013-02-09 Thread Steven Nemetz
that use this method, but I need time to document and clean them up a bit, before releasing them. Mounts is one of the simpler ones. Steven Date: Sat, 9 Feb 2013 20:15:55 -0800 From: rai...@gmail.com To: puppet-users@googlegroups.com Subject: Re: [Puppet Users] hiera query yaml parameters When t

RE: [Puppet Users] hiera query yaml parameters

2013-02-05 Thread Steven Nemetz
keys comes form the PuppetLab's stdlib moduleSo does is_array and a bunch of other nice functions Steven Date: Tue, 5 Feb 2013 07:12:45 -0800 From: rai...@gmail.com To: puppet-users@googlegroups.com Subject: Re: [Puppet Users] hiera query yaml parameters Steven, thanks for your reply!

RE: [Puppet Users] hiera query yaml parameters

2013-02-03 Thread Steven Nemetz
is_array($user_keys) { process_users { $user_keys:; } } define process_users { # Do whatever you want for each element of the hash # $name will be the hash key # $user_defs[$name] is the hash of the current item # $user_defs[$name]['comment'] to access the user's comment field

RE: [Puppet Users] Re: Hiera hashes and arrays in ERB templates

2013-01-04 Thread Steven Nemetz
name)So you can access anything in the data structure to build your resources. Steven Date: Fri, 4 Jan 2013 09:05:15 -0800 From: andytaylo...@gmail.com To: puppet-users@googlegroups.com Subject: [Puppet Users] Re: Hiera hashes and arrays in ERB templates Thanks for your suggestions guys. I did

Re: [Puppet Users] tweaking emacs puppet mode ?

2012-12-17 Thread Steven VanDevender
Philip Brown writes: > > > On Monday, December 17, 2012 1:02:20 PM UTC-8, Steven VanDevender wrote: > > > > Philip Brown writes: > > > ... > > > So, one to change the tabstops thing, and one to make the closing brace > > > outdent

[Puppet Users] tweaking emacs puppet mode ?

2012-12-17 Thread Steven VanDevender
Philip Brown writes: > I enjoy the puppet mode that comes with emacs by default. > However... people in our organization prefer a slightly different formating > standard. > > Would anyone be able to tell me what tweaks I could put in my .emacs file, > to make it so that code gets autoforma

Re: [Puppet Users] New to Puppet -- why the puppet user

2012-11-26 Thread Steven VanDevender
st run in a dedicated user/group. The agents, however, need root access to do their jobs. Unfortunately I failed to notice that was a top-posted reply. Sorry. > On Mon, Nov 26, 2012 at 3:41 PM, Steven VanDevender > wrote: > > > Jerald Sheets writes: > > > Because standard

Re: [Puppet Users] New to Puppet -- why the puppet user

2012-11-26 Thread Steven VanDevender
Jerald Sheets writes: > Because standard systems administration practice is to rarely if ever > run anything at all as root. This practice, generally speaking, will > not pass ITIL, SOX, HIPAA, or PCI compliance auditing, and if > something like Puppet (which has complete run of your system) r

RE: [Puppet Users] Re: How do you install a yum repo?

2012-11-25 Thread Steven Nemetz
obvious, post that section of the file and with a note of which line it is complaining about. Steven Date: Sun, 25 Nov 2012 07:39:11 -0800 From: amitywebsoluti...@gmail.com To: puppet-users@googlegroups.com Subject: [Puppet Users] Re: How do you install a yum repo? Does anyone know what this

RE: [Puppet Users] Creating files from array?

2012-11-16 Thread Steven Nemetz
Change your yaml file to: files: - a - b - c Then puppet will read it in as an array. Pass the array to a define and the define will run once for each element of the array Steven > Date: Sat, 17 Nov 2012 03:27:20 +0100 > From: jso...@srce.hr > To: puppet-users@googlegroups.com

RE: [Puppet Users] Issue with service => disabled and stopped

2012-11-16 Thread Steven Nemetz
command puppet is running Steven > Date: Fri, 16 Nov 2012 16:15:42 -0800 > Subject: [Puppet Users] Issue with service => disabled and stopped > From: for...@gmail.com > To: puppet-users@googlegroups.com > > I have a simple manifest that I'm using to keep unwanted ser

RE: [Puppet Users] puppet facter variable substring

2012-10-25 Thread Steven Nemetz
nter codes. Steven Date: Thu, 25 Oct 2012 01:13:04 -0700 From: paolo.sup...@gmail.com To: puppet-users@googlegroups.com Subject: Re: [Puppet Users] puppet facter variable substring Hi Steven Why the if statement? TIA Paolo On Wednesday, October 24, 2012 5:58:16 PM UTC+2, Steven wrote: You can

RE: [Puppet Users] puppet facter variable substring

2012-10-24 Thread Steven Nemetz
You can use regex for that Here is an piece of my code for doing that. In my case [environment, 1 letter][collo, 2 letters] if $hostname =~ /^(.)(..)/ { $global_env = $1 $location = $2 } Steven Date: Wed, 24 Oct 2012 07:14:50 -0700 From: paolo.sup...@gmail.com To: puppet-users

RE: [Puppet Users] Re: Can Puppet interact with perl script user input fields?

2012-10-05 Thread Steven Nemetz
d modified, it can't manage them. Goes against the primary design. Steven > Date: Thu, 4 Oct 2012 23:55:55 -0700 > Subject: [Puppet Users] Re: Can Puppet interact with perl script user input > fields? > From: jon.skarpet...@gmail.com > To: puppet-users@googlegroups.com >

RE: [Puppet Users] Puppet Autosign

2012-10-03 Thread Steven Nemetz
This is normal. New system will always generate a new cert. You only need to delete /var/lib/puppet/ssl on the client and remove the cert on the master "puppet cert clean " There has been some discussions on ways to automate this. Should be able to find them in the archives. Steven

RE: [Puppet Users] hiera and fallback to params?

2012-10-03 Thread Steven Nemetz
s and they are defined as parameters. So, the variable can be set via a default, parameter, or hiera. This makes it very flexible. Steven > Date: Wed, 3 Oct 2012 17:02:45 +0200 > From: jso...@srce.hr > To: puppet-users@googlegroups.com > Subject: [Puppet Users] hiera and fallback to p

[Puppet Users] Re: Puppet Nagios group problem

2012-09-07 Thread Steven C
Having a similar problem. So far I've tried clearing the nagios.cfg and dropping the puppet database from puppetmaster, but this has not helped. On Friday, September 7, 2012 6:27:54 AM UTC-6, thbe wrote: > > Hi @all, > > I got stucked in the configuration of Nagios resources from Puppet. I've >

[Puppet Users] Hiera with Yaml and Json backend does not seem to work for me.

2012-06-06 Thread Steven Truong
YAML or JSON alone. Is it possible to use both YAML and JSON as Hiera's backends? Or just JSON + puppet or YAML + puppet or MySQL/Redis + puppet? Is Puppet backend required as the second tier? Thanks, Steven. cat hiera.yaml --- :backends: - yaml - json :hier

RE: [Puppet Users] Autoscaling with Puppet

2012-05-15 Thread Steven Nemetz
ter. The master would have autosigning setup, so it will automatically exchange certs with the new system. Then the behavior would continue as defined in the puppet configuration. Steven Date: Mon, 14 May 2012 11:30:04 -0700 From: dustye...@gmail.com To: puppet-users@googlegroups.com Subject: Re

Re: [Puppet Users] template arrays

2012-04-12 Thread Steven King
Marek, I'd suggest using something like the following to use a template based on hostname: file { '/path/to/file': template => $hostname ? { /regex/ => 'puppet://module/template.erb', /regex2/ => 'puppet://module/template1.erb', default=> 'puppet://module/default-template.e

Re: [Puppet Users] iterating over an array of hashs

2012-02-14 Thread Steven Pokrandt
eclaration section OF the > yum::wars defined resource type) :) > > Try putting them in another class (or directly in your site.pp) and you > should be good to go! > > > On Tue, Feb 14, 2012 at 11:33 AM, Steven Pokrandt wrote: > >> >> We run many tomcat instances

Re: [Puppet Users] iterating over an array of hashs

2012-02-14 Thread Steven Pokrandt
We run many tomcat instances on each machine. and the instance is not know until another hiera call is made. is it not possible to use create resource in a class? On Tue, Feb 14, 2012 at 11:13 AM, Gary Larizza wrote: > > > On Tue, Feb 14, 2012 at 11:04 AM, Steven Pokrandt wrote:

Re: [Puppet Users] iterating over an array of hashs

2012-02-14 Thread Steven Pokrandt
app-${VERSION}.war' app_target_dir : 'pharmacy-webapp' could not create resource of unknown type tomcat::war at /etc/puppet/modules/tomcat/manifests/wars.pp:4 on node pokrsx1puppetagent.ghc.org On Tue, Feb 14, 2012 at 8:53 AM, Gary Larizza wrote: > Steven, > >

[Puppet Users] Mounting Swap

2011-11-04 Thread Steven VanDevender
Douglas Garstang writes: > All, > > Trying to mount swap. Using: > > mount { > 'swap': > device => '/dev/xvdq1', > atboot => true, > ensure => mounted, > fstype => 'swap', > options => 'defaults'; > } > > This is g

Re: [Puppet Users] Yum questions

2011-11-04 Thread Steven VanDevender
Sam Roza writes: > So I use createrepo to make a local repo somewhere-for instance, the puppet > server-and then use that to do the install? If you are reluctant to create a local yum repository (maybe you don't have many custom packages) you can just source a package from a web server or the li

Re: [Puppet Users] Re: Clearing delayed job failures in dashboard

2011-11-03 Thread Steven L. Seed
Thanks all. That worked. On 11/03/2011 08:36 AM, Nigel Kersten wrote: FWIW the bug was put in as: https://projects.puppetlabs.com/issues/10442 (adding these comments to it) On Thu, Nov 3, 2011 at 5

Re: [Puppet Users] Re: Clearing delayed job failures in dashboard

2011-11-01 Thread Steven L. Seed
may help rake RAILS_ENV=production reports:prune upto=0 unit=day On Oct 28, 9:32 pm, "Steven L. Seed" wrote: I have a ton of delayed job failures in my dashboard under background tasks. They are mostly failed imports of report yaml files that were deleted. There are over 4 of

Re: [Puppet Users] undefined class results in error instead of warning in 2.7.3

2011-09-30 Thread Steven L. Seed
e suggestion on how to validate the existence of a class from my ENC then I could check them before adding them to a node. Currently the ENC is written in perl. On Sep 27, 2011 1:17 PM, "Steven Seed" wrote: > My ENC has always added some extra classes not defined in puppet (things >

Re: [Puppet Users] Community Package Repos for Puppet Labs products

2011-09-30 Thread Steven L. Seed
Thanks. This is much appreciated! On Sep 12, 2011 2:36 PM, "Michael Stahnke" wrote: > I've had a vision of having packages for Puppet, Dashboard, > mcollective, facter, et al, available in native packaging formats for > as many distributions as possible. > > > I've updated http://yum.puppetlabs.co

[Puppet Users] undefined class results in error instead of warning in 2.7.3

2011-09-27 Thread Steven Seed
My ENC has always added some extra classes not defined in puppet (things that I might end up using later based on the host name, department, or other attributes associated with the host in my database). In 0.25.5 the undefined class was reported at (info), in 2.6.9 it was reported as (warning),

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Steven VanDevender
Douglas Garstang writes: > On Thu, Sep 1, 2011 at 1:35 PM, Steven VanDevender wrote: > > > Douglas Garstang writes: > > > Was that in reply to my original post, or a subsequent reply? You did > > see > > > where I said /etc/puppet was a working copy,

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Steven VanDevender
Douglas Garstang writes: > Was that in reply to my original post, or a subsequent reply? You did see > where I said /etc/puppet was a working copy, right? It sounds like you need to get to the point where no one does their edits under /etc/puppet on the puppetmaster, because you're obviously run

Re: [Puppet Users] Updating /etc/puppet ?

2011-09-01 Thread Steven VanDevender
Aaron Grewell writes: > Technically true, but administratively confusing IMHO. We put our all our Puppet data (but not the puppetmaster config) in a Subversion repository. Everyone does editing in their own working copy checked out from that Subversion repository. Commits to the repository trig

[Puppet Users] Bind9 & Ubuntu Lucid

2011-08-31 Thread Steven VanDevender
Craig White writes: > Seems that every cycle, puppet thinks that bind9 service is stopped and > wants to restart... > > info: Applying configuration version '1314822598' > notice: /Stage[main]/Bind::Service/Service[bind9]/ensure: ensure changed > 'stopped' to 'running' > notice: Finished

  1   2   >