Re: [Puppet Users] Puppet Custom Facts

2015-02-03 Thread Wolf Noble
Hi Steve, All custom facts are delivered to all nodes within a puppetmaster's control. IOW, having a module that has a custom fact will deploy that fact to every node, regardless of if that node uses, or is aware of the fact, or module in question. It is generally expected that the fact

Re: [Puppet Users] Apt: Execute sources before builddep

2014-07-06 Thread Wolf Noble
Hi David, I've seen a setup that has an exec which fires apt-get update. This exec has refreshonly = true. All Apt::Source resources are instantiated via a profile class kicking off create_resources. All Apt::Source resources notify the apt-get update exec. I think something similar to that

[Puppet Users] 3.6 directory environments, r10k, and hieradata

2014-06-20 Thread Wolf Noble
Hi Guys, I have a few questions about 3.6 directory environments, which we're looking to adopt. Currently the most pressing surrounds the integration of r10k and hiera… I believe I want to store hieradata inside the r10k repos, so that each r10k repo (I'm planning on using these to segregate

Re: [Puppet Users] rspec - Unable to find class ::logstash

2014-06-05 Thread Wolf Noble
Hi Brian, I've found having my spec test print out a catalog is a good way to build out a suite of tests context 'when the do_stuff param has the value of hell_yeah' do let (:facts) {{'osfamily' = 'RainbowOS }} let (:params) {{'do_stuff' = 'hell_yeah'}} It 'print a catalog for spec

Re: [Puppet Users] Re: Profiling catalog compilation

2014-05-22 Thread Wolf Noble
indeed. I'd strongly encourage y'all to move to 3.5+ there's a bunch of really nifty stuff that's been added... not to mention it's incredibly more performant. Say Hi to Seb for me, and pass along my contact info. W On Wed, May 21, 2014 at 12:13 AM, William Leese william.le...@meltwater.com

[Puppet Users] Profiling catalog compilation

2014-05-20 Thread Wolf Noble
Hey guys, I wrote a post on how to profile your puppet catalog compilations (3.4+) to find resource hogs Hope this helps someone http://www.wolfspyre.com/2014/05/profiling-puppet-catalog-compilations/ -- You received this message because you are subscribed to the Google Groups Puppet Users

Re: [Puppet Users] Error 4000 on SERVER: Could not find class

2014-03-24 Thread Wolf Noble
at the very least, I'd alter the process you use to copy the new modules dir into something like $puppetconfigdir/modules_MMDDYYSTUFF and then doing 2 mv's: mv modulepathdir modulepathdir.old mv modules_MMDDYYSTUFF modulepathdir and then puppet should be good, you can start the rm -rf on module

Re: [Puppet Users] PuppetDB performance tests

2013-10-24 Thread Wolf Noble
I would LOVE it if this (or some other tool) would be capable of sending puppetdb pushes to a back-of-house / reporting puppetdb instance asynchronously... this seems like a nifty feature.. course, being able to list multiple puppetdb instances in /etc/puppet/puppetdb.conf might be just as nice

[Puppet Users] most straight-forward way to verify catalog compilation of several node types?

2013-10-16 Thread Wolf Noble
Hi All, I am going to be doing a large bit of module refactoring, without an existing suite of tests; and I wanted to convince a master inside of vagrant on my dev laptop to compile a catalog against a collection of node names to try to catch breaking changes more expediently and less impact

Re: [Puppet Users] exporting custom facts to puppet agents

2013-10-13 Thread Wolf Noble
Hi Santanu, custom facts should always do their work inside a setcode block. http://docs.puppetlabs.com/guides/custom_facts.html That has nothing to do with the issue at hand, however. If you need the file to exist before puppet's first run, have your provisioning system lay it down. Otherwise,

Re: [Puppet Users] Sync data between various PuppetDB instances

2013-10-10 Thread Wolf Noble
I'd be interested in accomplishing a similar thing. I want to have a central reporting puppetdb which I can (outside of puppet) query for multisite information without tying isolated environments together via a single postgres db, or using multi-master replication. my needs do not involve making

Re: [Puppet Users] Force Fact within manifest

2013-10-07 Thread Wolf Noble
Hi Paul, Here's a diagram showing how the puppet run process flows: http://www.aosabook.org/images/puppet/TimingDiagram.png as you can see, facter is run exactly once, before the catalog is created. facter is not invoked again until the next run. I suppose you could have your sshkey resource

Re: [Puppet Users] Puppet 3.2.2: Could not find declared class

2013-09-26 Thread Wolf Noble
Hi Sergey, I've noticed behavior similar to then when resource ordering is specified outside of a class; something like this: #foo class # # Class['prereq'] - Class['foo'] class foo() { #some stuff here } since that dependency isn't occurring INSIDE the boundary of Class['foo'], there can be

Re: [Puppet Users] tidy negative match

2013-09-26 Thread Wolf Noble
Hi Sebastian, A potentially better way to do it might be to set purge = true on the /etc/yum.repos.d directory, and specifically manage every file/repo in there via puppet. This should insure that there are no repos present that puppet didn't create HTH w On Thu, Sep 26, 2013 at 1:28 PM,

Re: [Puppet Users] Puppet 3.2.2: Could not find declared class

2013-09-26 Thread Wolf Noble
On Thu, Sep 26, 2013 at 5:21 PM, jcbollinger john.bollin...@stjude.orgwrote: On Thursday, September 26, 2013 3:11:24 PM UTC-5, Wolf Noble wrote: Hi Sergey, I've noticed behavior similar to then when resource ordering is specified outside of a class; something like this: #foo class

Re: [Puppet Users] 3.3.0 bug? Could not prefetch package provider/UTF-8

2013-09-17 Thread Wolf Noble
When I ran into this, what bit me was funky characters hiding in comments in the manifests. On Tue, Sep 17, 2013 at 3:42 PM, Robin Lee Powell rlpow...@digitalkingdom.org wrote: As of upgrading master and clients to 3.3.0, some of my servers are saying: Error: Could not prefetch package

Re: [Puppet Users] Re: Need input on how to run a file with list of commands

2013-09-15 Thread Wolf Noble
Glad to hear you got it worked out! You might have good luck with this module for controlling network interfaces https://github.com/adrienthebo/puppet-network =MobileMail= Please excuse brevity or spelling errors On Sep 15, 2013, at 22:31, Mani Devarajan

Re: [Puppet Users] Re: How do I set global noop?

2013-07-26 Thread Wolf Noble
Hi Sam, it somewhat depends on your requirements, but if you have a window during which changes are not permitted, end of story, what about a cronjob to set it to false at a particular time? or in the same run that you set noop to true, require an exec which creates an at job to re-enable at a

Re: [Puppet Users] Puppet Razor doesn't recognize Scientific Linux?

2013-07-10 Thread Wolf Noble
It seems like the match is 'Scientific' not 'Scientific Linux' but I'm nowhere near a computer to check MobileMail On Jul 10, 2013, at 19:36, Stefan Lasiewski lasiew...@gmail.com wrote: I am using Scientific Linux 6.4. Scientific Linux is a derivative of Red Hat Enterprise Linux, similar

Re: [Puppet Users] scope for templates that is called from a class that includes the class that calls the template.

2013-07-01 Thread Wolf Noble
Hi Daniel, What I've done in the past is: Foo.erb % foobar = scope.lookupvar('::somefact') othervar = scope.lookupvar('class::variable') lastvar = scope.lookupvar('myclass::myvar') fqdn = scope.lookupvar('::fqdn') -% #this file generated automatically by puppet for %=fqdn% #manual changes

Re: [Puppet Users] Using Puppet for downgrading Varnish (circular dependency)

2013-06-28 Thread Wolf Noble
Hi Stefan, I've run into similar issues before… I don't have module code handy, but what I ended up doing was creating an exec which performed something similar to: exec{'nuke_pesky_pkg': command = 'rpm -e $package; touch /etc/package.removed', creates = '/etc/package.removed' } which I

Re: [Puppet Users] Re: How to make a package dependant on a class for the repository.

2013-06-26 Thread Wolf Noble
Hi Stack, here's an example: https://github.com/wolfspyre/puppet-mysqlx/blob/master/manifests/v55.pp in this class I create a pair of bookend anchors, and then shove a yumrepo, and a file resource between them. Your other classes/resources can then declare a relationship to the end anchor to

Re: [Puppet Users] Is it possible to pass extra flags to Puppet via rspec?`

2013-06-26 Thread Wolf Noble
Hi Amos, Here's what I've done: in spec/spec_helper.rb: Puppet.settings[:confdir] = spec/fixtures then in the class I was working on, I made a parameter: class foo( $puppetdir = $settings::confdir ){ … } then in that class's spec test: require 'spec_helper' require

[Puppet Users] most current method of configuring cisco (and force10?) devices

2013-06-25 Thread Wolf Noble
Hey Gang, I've been asked to explore the landscape of network device management via puppet. in particular, I'm looking to support cisco, and force10 switches. I know about the network device system, I'm wondering if that's the way to go for both cisco and force10, or if there's a better way for

Re: [Puppet Users] puppet agent errors for non included module.

2013-06-24 Thread Wolf Noble
snip It is incorrect to make that relationship declaration (via the chain operator) if there are any nodes that do not declare the specified anchor, because top-level declarations in *any* manifest file apply to all nodes. It is poor practice to make declarations at top level like that other

Re: [Puppet Users] The handy Grail of Modules Standards

2013-06-22 Thread Wolf Noble
I'd like to say I really like the intent behind this. Yes, a name is important. So is continuity. I believe the underlying goal is to provide a collection of reference material. Once the skeleton of this material is generally agreed upon, it can be used as guidelines to the community for how

Re: [Puppet Users] puppet agent errors for non included module.

2013-06-17 Thread Wolf Noble
Hi JJ, I've seen this happen when class dependencies are placed outside the specific class' scope, ie: # default.pp # # Anchor['my_prereq::end'] - Class['default'] class{ 'default': notice 'default' } I've only seen this occur with anchors, but it's entirely possible it happens with other

Re: [Puppet Users] Preparing to install Puppet Dashboard on RHEL 5 with newer MySQL

2013-05-20 Thread Wolf Noble
Hi Dan, I've a script here that grabs the mysql 5.5 / 5.6 packages and turns them into a yumrepo for easier consumption: https://github.com/wolfspyre/MySQL_Createrepo it's not perfect, but imho better than grabbing the RPMs manually form Oracle. On Wed, May 15, 2013 at 3:24 PM, Dan White

Re: [Puppet Users] module namespace?

2013-05-20 Thread Wolf Noble
Hi Matt, What I've seen done before is to use ${modulename}x for 'wrapper' modules that give you the ability to stay current with the forge/release/externally-owned module, but still maintain the necessary site-spectific-shim code to extend the functionality of the original module in the ways you

Re: [Puppet Users] Two resources managing the same file?

2013-05-20 Thread Wolf Noble
It seems to me that you will be relinquishing puppet's ability to maintain the content of the file by doing this. If that's acceptable, use the replace parameter to only have puppet maintain the initial config and allow the file to be changed outside puppet moving forward. If that's not

Re: [Puppet Users] puppet pull code from svn

2013-05-20 Thread Wolf Noble
Hi Dominic, take a look at the vcsrepo module: http://forge.puppetlabs.com/puppetlabs/vcsrepo this should likely get you everything you need. On Mon, May 20, 2013 at 2:45 PM, DJames dominicrja...@gmail.com wrote: How can i setup puppet to pull code from A current SVN server? -- You

Re: [Puppet Users] Feedback on module pattern?

2013-05-06 Thread Wolf Noble
Hi Ken, I'm happy to give my $.02, FWIW. I've found immense benefit from the overall paradigm described in Craig Dunn's blog post here: http://www.craigdunn.org/2012/05/239/ That paradigm, combined with modules which have all of their variables placed as module::variable_name parameters which

Re: [Puppet Users] rspec-puppet testing with puppet $::settings

2013-05-01 Thread Wolf Noble
Hi Simon, On Tue, Apr 30, 2013 at 12:08 PM, Simon Piette piette.si...@gmail.comwrote: Hi Wolfe, On Tue, Apr 30, 2013 at 12:05 PM, Wolf Noble wno...@datapipe.com wrote: Hi Simon, On Apr 29, 2013, at 7:45 PM, Simon Piette piette.si...@gmail.com wrote: What I've done elsewhere is to make

Re: [Puppet Users] rspec-puppet testing with puppet $::settings

2013-04-30 Thread Wolf Noble
Hi Simon, On Apr 29, 2013, at 7:45 PM, Simon Piette piette.si...@gmail.com wrote: Hi all, snip Any solution for testing variables that depends on settings will be welcome. Thanks, I sent this last night from another account, but it didn't seem to go through: What I've done elsewhere is

Re: [Puppet Users] rspec-puppet testing with puppet $::settings

2013-04-30 Thread Wolf Noble
Hi Simon, On Apr 29, 2013, at 23:35, Simon Piette piette.si...@gmail.com wrote: Hi all, snip Any solution for testing variables that depends on settings will be welcome What I've done elsewhere is to make a parameter for, in your case, vardir: (untested, but close) Class foo($vardir =

Re: [Puppet Users] Re: How do I automagically remove old versions of jar files?

2013-04-25 Thread Wolf Noble
On Apr 25, 2013, at 9:47 AM, jcbollinger john.bollin...@stjude.org wrote: On Wednesday, April 24, 2013 4:24:08 PM UTC-5, Larry Fast wrote: I keep running into the following upgrade pattern. Previous Puppet run declared: file { my_jar.1.2.3.jar: ... } New puppet run declares:

Re: [Puppet Users] Rake tests for hiera

2013-03-28 Thread Wolf Noble
What we've been doing here is trying to make all our hiera calls as class parameter default values. This allows us to set param values in the unit tests, thus bypassing hiera. This has required some refactoring, but it has the advantage of being a simpler test collection to implement. Does

Re: [Puppet Users] Re: LSB Fact resolution in the absence of -lsb package

2013-03-20 Thread Wolf Noble
Hi John, Thanks for taking the time to respond :) Replies inline. On Mar 20, 2013, at 8:01 AM, jcbollinger john.bollin...@stjude.org wrote: On Tuesday, March 19, 2013 2:27:22 PM UTC-5, Wolf Noble wrote: Hi there, in house, we rely on the lsb facts: lsbdistcodename, lsbdistdescription

Re: [Puppet Users] How to make sure my common module executes before all other ones

2013-03-20 Thread Wolf Noble
Hi Chris, Take a look at run stages http://docs.puppetlabs.com/guides/language_guide.html#stages They make it a little easier to perform some coarse ordering. additionally, you can use PuppetLabs stdlib module and take advantage of the anchor pattern sparingly. Here's a good example of its use:

[Puppet Users] LSB Fact resolution in the absence of -lsb package

2013-03-19 Thread Wolf Noble
Hi there, in house, we rely on the lsb facts: lsbdistcodename, lsbdistdescription, lsbdistid, lsbdistrelease, and lsbmajdistrelease all of which are essentially derived from the /etc/${distro-specific-release-file} and don't _really_ need the lsb packages (and the associated bloat) installed.

Re: [Puppet Users] Certificate nightmares

2013-02-06 Thread Wolf Noble
Did you try removing the cert from a node and seeing if that changes the behavior? you removed the certs from the master, but the node still thinks it has a valid cert maybe? This message may contain confidential or privileged information. If you are not the

Re: [Puppet Users] Best practice to share variable values among nodes

2013-01-30 Thread Wolf Noble
On Jan 30, 2013, at 4:52 AM, Sylvain Mougenot sylvain.mouge...@gmail.com wrote: Hello, I'm new to puppet using a puppet-master. And I couldn't figure out what's the best practice I need. My context : - puppet-master with a puppet dashboard is setup and running - few modules are ready and

Re: [Puppet Users] Migration with Puppet -- A way to profile machines for module creation?

2013-01-30 Thread Wolf Noble
On Jan 30, 2013, at 2:56 PM, Jason Cochard jason.coch...@gmail.com wrote: Hello all, We are in the process of moving our data center from one city to another city (far away). This won't be a physical move -- we are simply bringing up equivalent machines in the new location and then

[Puppet Users] puppet + openscap / hardening

2013-01-27 Thread Wolf Noble
Hi All, I noticed that a few years back, someone from Puppet Labs (well Reductive Labs at that time) reached out to the openscap list in an attempt to collaborate on puppet modules: https://www.redhat.com/archives/open-scap-list/2010-March/msg0.html it seems like the aqueduct project

Re: [Puppet Users] Security considerations for basing decisions on facts

2013-01-23 Thread Wolf Noble
On Jan 22, 2013, at 3:04 PM, jcbollinger john.bollin...@stjude.org wrote: On Tuesday, January 22, 2013 7:08:09 AM UTC-6, Boyan Tabakov wrote: Hello, Let's consider the scenario when a client node in a puppet environment gets compromised. In case some of the puppet modules make decisions

Re: [Puppet Users] ssh::auth and other ways of managing ssh keys

2013-01-21 Thread Wolf Noble
This is actually a module I would love to see CURATED by PL, as I believe it is a great real-world example to demonstrate the current recommendations from which many people can learn. The focus is pretty tight, however it could make a lot of people's lives easier. Many community

[Puppet Users] Thoughts on roles/profiles class paradigm

2013-01-09 Thread Wolf Noble
Hi Gang, My colleagues and I are contemplating refactoring our modules to take advantage of the roles/profiles paradigm suggested by Craig Dunn in his blog post found here: http://www.craigdunn.org/2012/05/239/ Before we jump feet-first into adopting this paradigm, I thought it a good idea to

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

2013-01-04 Thread Wolf Noble
| -% group %=hash['group']-% v2c %=key% %end-% # Filesystem monitoring enabled % filesystems.each_pair do |key, hash| -% # %=key% disk %=hash['mountpoint']-% %=hash['threshold']% %end-% does that help at all? Wolf Noble UNIX Team Lead Datapipe Managed IT Services 1.201.792.4847 (international

[Puppet Users] Poll for thoughts on hierifying modules and OS default differences

2012-12-07 Thread Wolf Noble
get too much further Thanks so much in advance Wolf Noble This message may contain confidential or privileged information. If you are not the intended recipient, please advise us immediately and delete this message. See http://www.datapipe.com/legal

Re: [Puppet Users] Poll for thoughts on hierifying modules and OS default differences

2012-12-07 Thread Wolf Noble
Hi Gary, I know what you mean, and agree for modules destined to be released to the wild. unfortunately, we have a diverse enough environment that even the defaults occasionally need to be overridden; hence the hierification. (I've got all that logic wrapped into a case statement based on if

[Puppet Users] Best way to manage routing entries

2012-12-04 Thread Wolf Noble
Hello all, Is anyone managing custom static routes via puppet? if so, how? I'm wondering if there's a better cross-platform way of adding routes than a custom init script that defines the routes that need to be associated with each interface… or maybe someone with extra tasty brains (zombies

Re: [Puppet Users] [facter] ESX/vSphere version detection without vmware tools

2012-10-31 Thread Wolf Noble
Hi Keiran, I wrote this and posted it to the list awhile ago: https://github.com/wolfspyre/vmware_puppetfact there's been some suggestion that the source I used as a basis for this fact is slightly inaccurate, however I don't have a suite of esx servers to test on.. (it's on my list) feel

[Puppet Users] updating puppetlabs-firewall forge module to line up with whats in the github repo?

2012-10-10 Thread Wolf Noble
Hi there! Is there a timeline on when the puppetlabs-firewall forge module will be updated (not necessarily to 1.0) ? the github version has the firewallchain type (as well as other nifty) that the forge version seems to be lacking, but it's not clear from my perusing that the two are

Re: [Puppet Users] install vmware tools through puppet

2012-09-24 Thread Wolf Noble
I've just added a fact to github which on vmware hosts running linux runs dmidecode and matches known bios address/ esx version to realize an ESX version fact. this information generated from http://virtwo.blogspot.com/2010/10/which-esx-version-am-i-running-on.html in limited testing on an

Re: [Puppet Users] Problem with hiera arrays not obeying the hierachy

2012-09-04 Thread Wolf Noble
I believe hiera_array() collects and provides an array of all the relevant elements up the entirety of the tree. To collect only the most relevant data just use hiera() On Sep 3, 2012, at 10:21 AM, Josh j...@chickenmonkey.co.uk wrote: Versions: puppet 2.7.18, hiera 0.3.0 I have

Re: [Puppet Users] Best way to bail from facter script without using confine in Facter.add ?

2012-08-23 Thread Wolf Noble
why not check to see if the binary which you're using to talk to the raid hw exists.. if so, execute and provide facts, if not, do nothing.. That's how it's being done in the hpacucli fact I've been using. On Aug 23, 2012, at 11:26 AM, Nigel Kersten ni...@puppetlabs.com wrote: On Thu, Aug

Re: [Puppet Users] Hiera to hash

2012-08-22 Thread Wolf Noble
I accomplished something similar awhile back. While I've not spent much time looking at your particular problem, I think this'll help point you in the direction of what you need… class mymodule::params{ $collector= hiera('mymodule_collector','') } class mymodule::config{ $collector

[Puppet Users] Hiera relationships

2012-08-09 Thread Wolf Noble
I was asleep, and woke up thinking about a way to define a relationship between the hiera parameters of multiple modules such that conflicts could be avoided... The thought process was that if I set one value, say, the service enablement parameter for snmp to 'stopped' in my tripwire module,

Re: [Puppet Users] how to resolve hostnames to IP addresses in templates

2012-08-09 Thread Wolf Noble
if you're using hiera, why not something like: foo_data_webfarm_http_servers: foo1.example.com: { ip: '1.2.3.4', port: '80', } foo2.example.com: { ip: '2.3.4.5', port: '80', } foo_data_webfarm_https_servers: foo1.example.com: { ip: '1.2.3.4', port: '443', }

Re: [Puppet Users] how to resolve hostnames to IP addresses in templates

2012-08-09 Thread Wolf Noble
On Aug 9, 2012, at 5:42 PM, Tim Mooney tim.moo...@ndsu.edu wrote: In regard to: Re: [Puppet Users] how to resolve hostnames to IP addresses...: if you're using hiera, why not something like: […] heh yeah, okay, so, well, uh... I didn't say it was a GOOD idea ;) Thanks for the

Re: [Puppet Users] Hiera relationships

2012-08-09 Thread Wolf Noble
is that none of it has tried to contact us.” Bill Waterson (Calvin Hobbes) - Wolf Noble wno...@datapipe.com wrote: This message may contain confidential or privileged information. If you are not the intended recipient, please advise us immediately and delete

[Puppet Users] hiera peers

2012-08-09 Thread Wolf Noble
I wonder… Would there be a benefit in the notion of 'peer values' in hiera? Currently hiera_array will collect all the possible values for $thing defined all the way up the hierarchy… This js awesome. But there's no way to find out the values of $thing for other nodes at the same level in the

Re: [Puppet Users] Modify Facter Value

2012-08-01 Thread Wolf Noble
I'm doing something similar in one environment… I've come to realize this method contains less awesome than I'd anticipated. What I'd suggest doing, is changing the file deployed to the client into a template that's deployed via puppet.. have that template set the content correctly for the

[Puppet Users] create multiple resources from an array of things.

2012-07-08 Thread Wolf Noble
Hi gang, I feel like I'm missing something fundamental here… I've got the following: class snmp::rhel::rh5enable { $collector = ['10.0.0.1', '10.0.0.2'] define add_snmp_hosts_allow ($ip) { exec { hosts_allow_$ip: command = /bin/echo \snmpd : $ip : ALLOW\ /etc/hosts.allow,

Re: [Puppet Users] create multiple resources from an array of things.

2012-07-08 Thread Wolf Noble
but not using parameters. -Eric -- Eric Shamow Professional Services http://puppetlabs.com/ (c)631.871.6441 On Sunday, July 8, 2012 at 2:00 PM, Wolf Noble wrote: Hi gang, I feel like I'm missing something fundamental here… I've got the following: class snmp::rhel::rh5enable { $collector

Re: [Puppet Users] create multiple resources from an array of things.

2012-07-08 Thread Wolf Noble
, at 2:38 PM, Wolf Noble wrote: Hi Eric, No, this class is not being called anywhere else. What I think is going on is that I have an array of two strings, but somehow the defined type is getting a concatenated string which contains both values of the array instead of treating each element

Re: [Puppet Users] hiera questions

2012-07-03 Thread Wolf Noble
This thought crossed our minds as well. I created the following feature request awhile back: https://projects.puppetlabs.com/issues/13934#change-60706 the intent behind which is if this fact is flagged as immutable, and it changes, something is drastically wrong… (don't)? do something until

Re: [Puppet Users] Conditional with variable from facter

2012-06-18 Thread Wolf Noble
Hi Jakov, the two semicolons locate these variables as being in top-scope/variables outside of any specific module. otherwise it might be $modulename::variable Does that help at all? W On Jun 18, 2012, at 8:25 AM, Jakov Sosic wrote: Hi. I have the following facts available: # facter |

Re: [Puppet Users] Conditional with variable from facter

2012-06-18 Thread Wolf Noble
D'oh On Jun 18, 2012, at 11:26 AM, Martin Alfke wrote: Hi, On 18.06.2012, at 17:14, Wolf Noble wrote: Hi Jakov, the two semicolons locate these variables as being in top-scope/variables outside of any specific module. please note that these are colons (:) no semicolons(;). I

Re: [Puppet Users] can we avoid notify/subscribe firing on a mode change?

2012-06-18 Thread Wolf Noble
… Now that I'm excessively caffeinated (I'm not actually sure if that's better, or worse, than my previous state, but)… On Jun 18, 2012, at 12:47 PM, Jo Rhett wrote: On Jun 18, 2012, at 12:55 AM, Felix Frank wrote: this thread is starting to confuse me, I am no longer sure what you're

Re: [Puppet Users] can we avoid notify/subscribe firing on a mode change?

2012-06-18 Thread Wolf Noble
On Jun 18, 2012, at 6:04 PM, Jo Rhett wrote: On Jun 18, 2012, at 1:57 PM, Wolf Noble wrote: Well, a in the service of b -- but as a general point, I think that every notify/subscribe should be tune-able as to which things changing will cause the action to take place. Not to continue

Re: [Puppet Users] Hiera - can't convert Array into String error

2012-06-13 Thread Wolf Noble
I had some issues with using boolean logic with data being fed to me by hiera. I went for a slightly hacky option of: might help you, might be a BadIdea(™) (untested) class foo::params{ bool_to_be_tempname = hiera('some_TorF_key_as_a_string') case bool_to_be_tempname { [tT][rR][uU][eE]:

Re: [Puppet Users] Re: Best way to relate keys, or stuff multiple values into a single key in hiera?

2012-06-13 Thread Wolf Noble
where the pointy/sharp parts of this might be. On Jun 13, 2012, at 8:24 AM, jcbollinger wrote: On Tuesday, June 12, 2012 5:51:06 PM UTC-5, Wolf Noble wrote: Hi John, Thanks a bunch. This seems incredibly sensible. If I'm understanding your suggestion properly, I interpret the best thing

[Puppet Users] Best way to relate keys, or stuff multiple values into a single key in hiera?

2012-06-12 Thread Wolf Noble
So… I'm coming across a situation where I foresee myself having a collection of related k/v pairs in hiera. I want to create a thing… lets say a yumrepo for example's sake, but this same idea translates to a vhost, a web app configuration , a virtual domain, etc. lets assume a hierarchy of:

Re: [Puppet Users] Re: Best way to relate keys, or stuff multiple values into a single key in hiera?

2012-06-12 Thread Wolf Noble
? On Jun 12, 2012, at 5:18 PM, jcbollinger wrote: On Tuesday, June 12, 2012 1:48:09 PM UTC-5, Wolf Noble wrote: So… I'm coming across a situation where I foresee myself having a collection of related k/v pairs in hiera. I want to create a thing… lets say a yumrepo for example's sake

[Puppet Users] erb logic with a hiera value

2012-05-19 Thread Wolf Noble
so I've set a hiera key, and trying to display some different data in motd depending on if the value of said key is true or false… it gets set accordingly.. but my motd template doesn't seem to be properly reacting when the value of it changes.. it's as if the variable never matches true not

Re: [Puppet Users] erb logic with a hiera value

2012-05-19 Thread Wolf Noble
Thanks Gary, I knew it was something simple. Appreciate the help % if foostatus == true -% This is the problem - you're trying to compare a boolean value of true to a string value of 'true'. Just do something like: % if foostatus -% That should work for you :)

Re: [Puppet Users] how best to combine business data (Hiera) and machine data (Facts)

2012-05-14 Thread Wolf Noble
Hi Luke, Would adding fqdn to the bottom of your hierarchy give you the ability to override the values on the outliers that you can't automagically set while retaining elegance in your class? Or am I missing something? Wolf Noble Datapipe Managed IT Services On May 11, 2012, at 12:45 PM

Re: [Puppet Users] mixing source content (templates) in concat::fragment

2012-05-04 Thread Wolf Noble
/puppet-users?hl=en. Wolf Noble Senior UNIX Systems administrator Datapipe Managed IT Services Tel: 201.792.1918 x2910 This message may contain confidential or privileged information. If you are not the intended recipient, please advise us immediately

[Puppet Users] Mac users: Textbucket scripts for puppet types

2012-04-26 Thread Wolf Noble
Hi Gang, If you're a mac user and haven't heard of text bucket, but find yourself typing the same things semi-often.. you might want to check it out. http://bassetsoftware.com/b.cgi/textbucket/index I started using it about 9 months ago when someone showed me klypper on linux and I went

Re: [Puppet Users] Austin Puppet User's meetup

2012-02-07 Thread Wolf Noble
I'd enjoy coming to this. Please keep me posted as things develop. Thanks Dan! MobileMail On Feb 7, 2012, at 7:05 PM, Dan Bode d...@puppetlabs.commailto:d...@puppetlabs.com wrote: Hi Austin Puppet Users, I will be in the area in a few weeks and I would like to try to get some of the local

Re: [Puppet Users] Blocking or gating service restarts?

2012-01-10 Thread Wolf Noble
just a thought; what if you made a fact for number of apache workers currently serving something, and base the service restart off of that. Might not be the best option; might not even work, but it makes more sense to me to have the service restart dependent on a local fact than be dependent on

Re: [Puppet Users] LDAP Authentication and puppet?

2011-12-12 Thread Wolf Noble
Hi Peter, we used a different method here for linux hosts. We put the groups we want to grant access to in /etc/security/access.conf ; ala: [root@---]# egrep -v ^# /etc/security/access.conf - : ALL EXCEPT root admin pci_sysadmin pci_devadmin : ALL and then just add users to the group which

Re: [Puppet Users] Multiple template fallbacks

2011-09-01 Thread Wolf Noble
Here's what I've been doing, fwiw: file { 'nsswitch.conf': path = '/etc/nsswitch.conf', content = inline_template( file( /etc/puppet/modules/dist/ldapclient/templates/etc/nsswitch.conf.$hostname.erb,