Re: [Puppet Users] managing vmware-tools with puppet

2016-08-10 Thread Nick Cammorato
So setting aside if this is a good idea or not, you can do this in a single exec resource. Look at https://docs.puppet.com/puppet/latest/reference/types/exec.html Pay particular attention to onlyif, refreshonly, unless, and creates. Used either alone or in concert with the file resource type

Re: [Puppet Users] Exported resources from multiple sources?

2014-11-01 Thread Nick Cammorato
: On Thursday, October 30, 2014 12:00:21 PM UTC-5, Nick Cammorato wrote: I don't see why you couldn't write a hiera backend to do exactly this. The current puppetdb hiera backend wouldn't be too hard to modify to do it I don't think. You couldn't write an Hiera back end to do this particular

Re: [Puppet Users] Exported resources from multiple sources?

2014-10-30 Thread Nick Cammorato
I don't see why you couldn't write a hiera backend to do exactly this. The current puppetdb hiera backend wouldn't be too hard to modify to do it I don't think. --Nick On Thu, Oct 30, 2014 at 12:36 PM, Atom Powers atom.pow...@gmail.com wrote: Is it possible, and how, to collect exported

Re: [Puppet Users] jenkins workflow

2014-08-07 Thread Nick Cammorato
Pre-commit hooks are great but Github and github enterprise won't enforce them(arbitrary code on the server is uncool for some reason), so if you want to be 100% and use either they still need to be run as part of your jenkins build task. On Aug 6, 2014 7:11 PM, John Warburton jwarbur...@gmail.com

Re: [Puppet Users] Re: Puppet fails to run if ruby1.8 is not installed.

2014-04-04 Thread Nick Cammorato
Did anyone try using the EL7 RPM? I've had success with testing with it in the RHEL7 beta, so if amazon has moved closer to RHEL7, it should be worth a shot. --Nick On Fri, Apr 4, 2014 at 3:40 PM, Tom Poulton poulton...@gmail.com wrote: I was running into this problem as well so I ran:

Re: [Puppet Users] Augeas: Duplicate declaration

2014-01-18 Thread Nick Cammorato
, not Hash* =( On Friday, January 17, 2014 5:10:16 AM UTC-2, Andrew wrote: another option to use create_resources('hostinclude',$netentry) On 16 Jan 2014 23:47, Nick Cammorato nick.ca...@gmail.com wrote: Your augeas resource is always called hosts_include which is why it's doing that. Try

Re: [Puppet Users] Augeas: Duplicate declaration

2014-01-16 Thread Nick Cammorato
Your augeas resource is always called hosts_include which is why it's doing that. Try including the entry[name] in that resource name. On Jan 16, 2014 4:15 PM, Reinaldo Lima reiml...@gmail.com wrote: Hi Everyone, I'm trying to write a class that put some entries in /etc/hosts file as follow

[Puppet Users] Refactoring my modules and moving from 2.7.x to 3.3 and have a few questions

2013-09-12 Thread Nick Cammorato
Mostly surrounding if there are better(less hackish) ways of doing things. The first is the classic exported resource expiration problem. My existing modules use a wrapper that uses an inline template to call out to Ruby's Time function, set a timestamp, and set the resource to absent after an

[Puppet Users] Re: Status of STONITH support in the puppetlabs corosync module?

2012-12-01 Thread Nick Cammorato
You should be able to rig something up using the existing cs_primitive, cs_clone and cs_property provider/types, although I've avoided doing this as it worries me. The problem as far as I can tell is that cs_primitive assumes a provider, primitive class, and primitive type, and stonith

[Puppet Users] Re: Apparent problem with resource ordering using Puppetlabs Corosync module (does not bring up HA resources in correct order when configured to do so)

2012-12-01 Thread Nick Cammorato
Which puppetlabs-corosync are you using? There are 19 forks of it last I checked(including one by me for my own needs surrounding DRBD which is now horribly out of date). I would change this: cs_order { 'jboss_ip_before_jboss': first = 'applayer_ip', second = 'applayer_jboss',

[Puppet Users] Re: How to do release managment integration with puppet?

2012-12-01 Thread Nick Cammorato
Right now we're deploying via cap and something custom and part of the deployment is a config yaml file which puppet parses via facter in order to determine how to do the OS/middleware config. It works fairly well, but it feels kludgy to do it this way. I've been wanting to cook something up

Re: [Puppet Users] Using catalog inventory/Puppet::Resource::Catalog?

2012-07-14 Thread Nick Cammorato
% of the time(which populates the management classes), and it all works, it might break in the future. I was hoping there was another way of exposing this. On Thursday, July 12, 2012 7:14:16 PM UTC-4, R.I. Pienaar wrote: - Original Message - From: Nick Cammorato nick_cammor

Re: [Puppet Users] Using catalog inventory/Puppet::Resource::Catalog?

2012-07-14 Thread Nick Cammorato
a choice. On Saturday, July 14, 2012 11:36:50 AM UTC-4, R.I. Pienaar wrote: - Original Message - From: Nick Cammorato nick_cammor...@terc.edu To: puppet-users@googlegroups.com Sent: Saturday, July 14, 2012 3:04:48 PM Subject: Re: [Puppet Users] Using catalog inventory/Puppet

Re: [Puppet Users] Using catalog inventory/Puppet::Resource::Catalog?

2012-07-14 Thread Nick Cammorato
UTC-4, R.I. Pienaar wrote: - Original Message - From: Nick Cammorato nick_cammor...@terc.edu To: puppet-users@googlegroups.com Sent: Saturday, July 14, 2012 5:02:29 PM Subject: Re: [Puppet Users] Using catalog inventory/Puppet::Resource::Catalog? Sorry, I should've

[Puppet Users] Re: How can I list classes available on the puppet master?

2012-07-12 Thread Nick Cammorato
You could do something like this, it's not the cleanest in the world(I barely ever use sed anymore), but as something quick and dirty: curl -k -H Accept: yaml https://puppet:8140/mgmt/resource_types/class | more | grep name: | sed -e 's/^ *name: //;s/id.* //' | sort | uniq It'll have some

[Puppet Users] Using catalog inventory/Puppet::Resource::Catalog?

2012-07-12 Thread Nick Cammorato
I'd like to be able to get a list of all of the classes being applied to my nodes and insert this as a list into mcollective's facts.yaml file. The reason for this is that I have a couple post-commit hooks that parse out changes to specific modules/classes for changelog purposes and I'm