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
(http
n 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.
>>
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 wrote:
> Is it possible, and how, to collect exported resources from multiple
> pu
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" wrote:
> On 7 Aug
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 wrote:
> I was running into this problem as well so I ran:
>
> *sudo cp -r /usr/lib/
tName on node*
>>
>>
>> And including the entry[name] in the resource name:
>>
>> *Resource title must be a String, not Hash*
>>
>>
>>
>> =(
>>
>> On Friday, January 17, 2014 5:10:16 AM UTC-2, Andrew wrote:
>>>
>>> a
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" wrote:
> Hi Everyone,
>
> I'm trying to write a class that put some entries in "/etc/hosts" file as
> follow below:
>
>
The puppetlabs-stdlib module includes a getparam function that you can use
to retrieve a resource parameter if you know the resource type, name and
parameter you want to retrieve(which may fit your use case, I'm a little
unclear). You can see it here:
https://github.com/puppetlabs/puppetlabs-stdli
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
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 l
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',
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
resource
emic.
On Saturday, July 14, 2012 12:33:02 PM UTC-4, R.I. Pienaar wrote:
>
>
>
> - Original Message -
> > From: "Nick Cammorato"
> > To: puppet-users@googlegroups.com
> > Sent: Saturday, July 14, 2012 5:02:29 PM
> > Subject: Re: [Puppe
not have a choice.
On Saturday, July 14, 2012 11:36:50 AM UTC-4, R.I. Pienaar wrote:
>
>
>
> - Original Message -
> > From: "Nick Cammorato"
> > To: puppet-users@googlegroups.com
> > Sent: Saturday, July 14, 2012 3:04:48 PM
> > Subject: Re: [P
staging. So while I have this being populated last, and use an ENC 90% 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 wro
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 som
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
conside
17 matches
Mail list logo