[Puppet Users] Re: Conditional actions based on result of other actions?

2018-01-03 Thread buoyant_puppy


On Thursday, December 28, 2017 at 2:10:22 AM UTC+1, John Gelnaw wrote:
>
>
> ... which *should* require the resource 'pkg::wget' to be compiled first, 
> and then test for the package to be defined.
>

Thanks, that may work in some cases. I'm still trying to find a more 
general approach, though.
 

>
> Unfortunately, my personal experience is that while puppet is very good at 
> using conditional logic to generate a catalog, it's not very good at 
> generating a catalog that contains conditional logic.
>
> However, the idea of an "onFailure" meta-parameter intrigues me-- similar 
> to notify, but only triggers the target resource if the source resource 
> fails.
>

That's exactly what I'm looking for. If I take my past experience with 
tools like cfengine and ansible, I use this constantly. The declarative 
approach works fine for most things but conditional logic is often needed 
for corrective actions. Another example, there's a product I install that 
has a certain common issue during install time. I just can't make it never 
have that install issue - it's a vendor product - but it's very easy for me 
(in a script, ansible, cfengine, etc) to catch that the install failed, 
attempt a corrective action that works 90% of the time, then check if that 
worked, and if not, send an alert. 
At the moment it looks like the only easy general solution is to just run 
the whole thing through an exec script, which feels like a big step 
backwards.

I'm wondering if I can pull the failures out of puppetdb and use that 
somehow. I'm looking into that next.

 

-- 
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.google.com/d/msgid/puppet-users/d683c8a0-b099-462a-9975-21471ff86d4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Puppet agent and non-LTS Ubuntu releases policy change

2018-01-03 Thread Aécio
Hello, Scott!

It is a prudent decision.

Aécio Pires
Book of Puppet => novatec.com.br/livros/puppet
Book of Zabbix => novatec.com.br/livros/zabbix

2018-01-02 19:43 GMT-03:00 Scott Garman :

> Hi all,
>
> Some of you have probably noticed that our latest official puppet-agent
> release for Ubuntu was for version 16.10 "Yakkety", which is currently end
> of life and no longer supported. Due to the short lifecycle of non-LTS
> Ubuntu releases (9 months), and the backlog that the Puppet Platform OS
> team is working on, we've made the decision to no longer release official
> puppet-agent builds for non-LTS Ubuntu releases.
>
> I will note however that so far it has been possible to use the LTS 16.04
> "Xenial" puppet-agent package on Ubuntu 17.04 and 17.10, they're just not
> officially supported. This is a workaround that may be useful to be aware
> of until the next LTS release of Ubuntu 18.04 "Bionic" comes out in April.
>
> This policy change doesn't impact other platforms that are currently
> supported with a lifecycle of more than 12 months. For example, Fedora
> releases have a 13-month lifecycle, and we intend to keep releasing
> packages for them. Likewise for Debian releases, CentOS/RHEL, etc.
>
> The Platform OS team at Puppet has an ever-growing list of platforms to
> support on an ongoing basis. We believe that focusing our efforts on
> existing platforms with at least a year-long lifecycle will result in the
> greatest return on effort we can offer to the community.
>
> Scott Garman
>
>
>
>
>
>
>
> --
> 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.google.com/d/ms
> gid/puppet-users/13140f25-1373-730e-a757-87af1d991ed7%40puppet.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.google.com/d/msgid/puppet-users/CALCxXJi0sHN0gLHdJ4z-j7LDp3EN_41RUU17aiGdU_2_bFQXhg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] /etc/sysconfig/puppetserver git source?

2018-01-03 Thread Christopher Wood
Is the source for /etc/sysconfig/puppetserver in the puppetserver rpm stored in 
any public-facing git repository? If so, where?

More details:

I was reading the tuning guide (it's augment time again) and it occurred to me 
to read the commit messages for this file to see how Puppet figured out the 
defaults. That information may inform my own configurations.

https://puppet.com/docs/puppetserver/5.1/tuning_guide.html

I'm not actually a programmer, and couldn't find this file or obvious source 
code in the puppetserver git repository if it is there. (Hints welcome too!)

https://github.com/puppetlabs/puppetserver

Running puppetserver 5.1.4 here.

-- 
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.google.com/d/msgid/puppet-users/20180103175542.2jt55rzf3hz3tpkp%40iniquitous.heresiarch.ca.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] /etc/sysconfig/puppetserver git source?

2018-01-03 Thread Morgan Rhodes
Hi Christopher,

That file is generated during packaging and is generated from a template in
the ezbake project.
https://github.com/puppetlabs/ezbake/blob/master/resources/puppetlabs/lein-ezbake/template/foss/ext/default.erb

On Wed, Jan 3, 2018 at 9:56 AM Christopher Wood 
wrote:

> Is the source for /etc/sysconfig/puppetserver in the puppetserver rpm
> stored in any public-facing git repository? If so, where?
>
> More details:
>
> I was reading the tuning guide (it's augment time again) and it occurred
> to me to read the commit messages for this file to see how Puppet figured
> out the defaults. That information may inform my own configurations.
>
> https://puppet.com/docs/puppetserver/5.1/tuning_guide.html
>
> I'm not actually a programmer, and couldn't find this file or obvious
> source code in the puppetserver git repository if it is there. (Hints
> welcome too!)
>
> https://github.com/puppetlabs/puppetserver
>
> Running puppetserver 5.1.4 here.
>
> --
> 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.google.com/d/msgid/puppet-users/20180103175542.2jt55rzf3hz3tpkp%40iniquitous.heresiarch.ca
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Morgan Rhodes
mor...@puppet.com
Release Engineer

-- 
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.google.com/d/msgid/puppet-users/CA%2BFnDv3G5WtPSh95p7KW9nraEKBZx9Fo%3DEoRFgj5PNO5OO8-Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] /etc/sysconfig/puppetserver git source?

2018-01-03 Thread Christopher Wood
That turned out to be even more interesting, thank you!

On Wed, Jan 03, 2018 at 06:38:02PM +, Morgan Rhodes wrote:
>Hi Christopher,
>That file is generated during packaging and is generated from a template
>in the ezbake
>project. 
> [1]https://github.com/puppetlabs/ezbake/blob/master/resources/puppetlabs/lein-ezbake/template/foss/ext/default.erb
>On Wed, Jan 3, 2018 at 9:56 AM Christopher Wood
><[2]christopher_w...@pobox.com> wrote:
> 
>  Is the source for /etc/sysconfig/puppetserver in the puppetserver rpm
>  stored in any public-facing git repository? If so, where?
> 
>  More details:
> 
>  I was reading the tuning guide (it's augment time again) and it occurred
>  to me to read the commit messages for this file to see how Puppet
>  figured out the defaults. That information may inform my own
>  configurations.
> 
>  [3]https://puppet.com/docs/puppetserver/5.1/tuning_guide.html
> 
>  I'm not actually a programmer, and couldn't find this file or obvious
>  source code in the puppetserver git repository if it is there. (Hints
>  welcome too!)
> 
>  [4]https://github.com/puppetlabs/puppetserver
> 
>  Running puppetserver 5.1.4 here.
> 
>  --
>  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 [5]puppet-users+unsubscr...@googlegroups.com.
>  To view this discussion on the web visit
>  
> [6]https://groups.google.com/d/msgid/puppet-users/20180103175542.2jt55rzf3hz3tpkp%40iniquitous.heresiarch.ca.
>  For more options, visit [7]https://groups.google.com/d/optout.
> 
>--
>Morgan Rhodes
>mor...@puppet.com
>Release Engineer
> 
>--
>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 [8]puppet-users+unsubscr...@googlegroups.com.
>To view this discussion on the web visit
>
> [9]https://groups.google.com/d/msgid/puppet-users/CA%2BFnDv3G5WtPSh95p7KW9nraEKBZx9Fo%3DEoRFgj5PNO5OO8-Dg%40mail.gmail.com.
>For more options, visit [10]https://groups.google.com/d/optout.
> 
> References
> 
>Visible links
>1. 
> https://github.com/puppetlabs/ezbake/blob/master/resources/puppetlabs/lein-ezbake/template/foss/ext/default.erb
>2. mailto:christopher_w...@pobox.com
>3. https://puppet.com/docs/puppetserver/5.1/tuning_guide.html
>4. https://github.com/puppetlabs/puppetserver
>5. mailto:puppet-users%2bunsubscr...@googlegroups.com
>6. 
> https://groups.google.com/d/msgid/puppet-users/20180103175542.2jt55rzf3hz3tpkp%40iniquitous.heresiarch.ca
>7. https://groups.google.com/d/optout
>8. mailto:puppet-users+unsubscr...@googlegroups.com
>9. 
> https://groups.google.com/d/msgid/puppet-users/CA%2BFnDv3G5WtPSh95p7KW9nraEKBZx9Fo%3DEoRFgj5PNO5OO8-Dg%40mail.gmail.com?utm_medium=email&utm_source=footer
>   10. https://groups.google.com/d/optout

-- 
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.google.com/d/msgid/puppet-users/20180103200959.f4lafrj3bqf3bzwf%40iniquitous.heresiarch.ca.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] /etc/sysconfig/puppetserver git source?

2018-01-03 Thread Matthaus Owens
Just to add a little extra info, the template draws from several
sources, one of which is in the project.clj for puppetserver here:
https://github.com/puppetlabs/puppetserver/blob/5.1.x/project.clj#L113-L114

On Wed, Jan 3, 2018 at 12:09 PM, Christopher Wood
 wrote:
> That turned out to be even more interesting, thank you!
>
> On Wed, Jan 03, 2018 at 06:38:02PM +, Morgan Rhodes wrote:
>>Hi Christopher,
>>That file is generated during packaging and is generated from a template
>>in the ezbake
>>project. 
>> [1]https://github.com/puppetlabs/ezbake/blob/master/resources/puppetlabs/lein-ezbake/template/foss/ext/default.erb
>>On Wed, Jan 3, 2018 at 9:56 AM Christopher Wood
>><[2]christopher_w...@pobox.com> wrote:
>>
>>  Is the source for /etc/sysconfig/puppetserver in the puppetserver rpm
>>  stored in any public-facing git repository? If so, where?
>>
>>  More details:
>>
>>  I was reading the tuning guide (it's augment time again) and it occurred
>>  to me to read the commit messages for this file to see how Puppet
>>  figured out the defaults. That information may inform my own
>>  configurations.
>>
>>  [3]https://puppet.com/docs/puppetserver/5.1/tuning_guide.html
>>
>>  I'm not actually a programmer, and couldn't find this file or obvious
>>  source code in the puppetserver git repository if it is there. (Hints
>>  welcome too!)
>>
>>  [4]https://github.com/puppetlabs/puppetserver
>>
>>  Running puppetserver 5.1.4 here.
>>
>>  --
>>  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 [5]puppet-users+unsubscr...@googlegroups.com.
>>  To view this discussion on the web visit
>>  
>> [6]https://groups.google.com/d/msgid/puppet-users/20180103175542.2jt55rzf3hz3tpkp%40iniquitous.heresiarch.ca.
>>  For more options, visit [7]https://groups.google.com/d/optout.
>>
>>--
>>Morgan Rhodes
>>mor...@puppet.com
>>Release Engineer
>>
>>--
>>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 [8]puppet-users+unsubscr...@googlegroups.com.
>>To view this discussion on the web visit
>>
>> [9]https://groups.google.com/d/msgid/puppet-users/CA%2BFnDv3G5WtPSh95p7KW9nraEKBZx9Fo%3DEoRFgj5PNO5OO8-Dg%40mail.gmail.com.
>>For more options, visit [10]https://groups.google.com/d/optout.
>>
>> References
>>
>>Visible links
>>1. 
>> https://github.com/puppetlabs/ezbake/blob/master/resources/puppetlabs/lein-ezbake/template/foss/ext/default.erb
>>2. mailto:christopher_w...@pobox.com
>>3. https://puppet.com/docs/puppetserver/5.1/tuning_guide.html
>>4. https://github.com/puppetlabs/puppetserver
>>5. mailto:puppet-users%2bunsubscr...@googlegroups.com
>>6. 
>> https://groups.google.com/d/msgid/puppet-users/20180103175542.2jt55rzf3hz3tpkp%40iniquitous.heresiarch.ca
>>7. https://groups.google.com/d/optout
>>8. mailto:puppet-users+unsubscr...@googlegroups.com
>>9. 
>> https://groups.google.com/d/msgid/puppet-users/CA%2BFnDv3G5WtPSh95p7KW9nraEKBZx9Fo%3DEoRFgj5PNO5OO8-Dg%40mail.gmail.com?utm_medium=email&utm_source=footer
>>   10. https://groups.google.com/d/optout
>
> --
> 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.google.com/d/msgid/puppet-users/20180103200959.f4lafrj3bqf3bzwf%40iniquitous.heresiarch.ca.
> For more options, visit https://groups.google.com/d/optout.

-- 
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.google.com/d/msgid/puppet-users/CACD%3DwAdfVhR4UHvR17uCJa-aHu1diCmv5CstK4O-%2Bz85vyKu7A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] /etc/sysconfig/puppetserver git source?

2018-01-03 Thread Christopher Wood
Digging around there takes me to 28aee7b (SERVER-815), which appears close 
enough for an explanation. Quoth:

--
This is done in hopes of counteracting some of the 'Out of Memory' JVM errors 
that we've been seeing when running unit/integration tests via Travis CI.
---

https://github.com/puppetlabs/puppetserver/commit/28aee7b
https://tickets.puppetlabs.com/browse/SERVER-815

(Works for me.)

On Wed, Jan 03, 2018 at 01:15:45PM -0800, Matthaus Owens wrote:
> Just to add a little extra info, the template draws from several
> sources, one of which is in the project.clj for puppetserver here:
> https://github.com/puppetlabs/puppetserver/blob/5.1.x/project.clj#L113-L114
> 
> On Wed, Jan 3, 2018 at 12:09 PM, Christopher Wood
>  wrote:
> > That turned out to be even more interesting, thank you!
> >
> > On Wed, Jan 03, 2018 at 06:38:02PM +, Morgan Rhodes wrote:
> >>Hi Christopher,
> >>That file is generated during packaging and is generated from a template
> >>in the ezbake
> >>project. 
> >> [1]https://github.com/puppetlabs/ezbake/blob/master/resources/puppetlabs/lein-ezbake/template/foss/ext/default.erb
> >>On Wed, Jan 3, 2018 at 9:56 AM Christopher Wood
> >><[2]christopher_w...@pobox.com> wrote:
> >>
> >>  Is the source for /etc/sysconfig/puppetserver in the puppetserver rpm
> >>  stored in any public-facing git repository? If so, where?
> >>
> >>  More details:
> >>
> >>  I was reading the tuning guide (it's augment time again) and it 
> >> occurred
> >>  to me to read the commit messages for this file to see how Puppet
> >>  figured out the defaults. That information may inform my own
> >>  configurations.
> >>
> >>  [3]https://puppet.com/docs/puppetserver/5.1/tuning_guide.html
> >>
> >>  I'm not actually a programmer, and couldn't find this file or obvious
> >>  source code in the puppetserver git repository if it is there. (Hints
> >>  welcome too!)
> >>
> >>  [4]https://github.com/puppetlabs/puppetserver
> >>
> >>  Running puppetserver 5.1.4 here.
> >>
> >>  --
> >>  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 [5]puppet-users+unsubscr...@googlegroups.com.
> >>  To view this discussion on the web visit
> >>  
> >> [6]https://groups.google.com/d/msgid/puppet-users/20180103175542.2jt55rzf3hz3tpkp%40iniquitous.heresiarch.ca.
> >>  For more options, visit [7]https://groups.google.com/d/optout.
> >>
> >>--
> >>Morgan Rhodes
> >>mor...@puppet.com
> >>Release Engineer
> >>
> >>--
> >>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 [8]puppet-users+unsubscr...@googlegroups.com.
> >>To view this discussion on the web visit
> >>
> >> [9]https://groups.google.com/d/msgid/puppet-users/CA%2BFnDv3G5WtPSh95p7KW9nraEKBZx9Fo%3DEoRFgj5PNO5OO8-Dg%40mail.gmail.com.
> >>For more options, visit [10]https://groups.google.com/d/optout.
> >>
> >> References
> >>
> >>Visible links
> >>1. 
> >> https://github.com/puppetlabs/ezbake/blob/master/resources/puppetlabs/lein-ezbake/template/foss/ext/default.erb
> >>2. mailto:christopher_w...@pobox.com
> >>3. https://puppet.com/docs/puppetserver/5.1/tuning_guide.html
> >>4. https://github.com/puppetlabs/puppetserver
> >>5. mailto:puppet-users%2bunsubscr...@googlegroups.com
> >>6. 
> >> https://groups.google.com/d/msgid/puppet-users/20180103175542.2jt55rzf3hz3tpkp%40iniquitous.heresiarch.ca
> >>7. https://groups.google.com/d/optout
> >>8. mailto:puppet-users+unsubscr...@googlegroups.com
> >>9. 
> >> https://groups.google.com/d/msgid/puppet-users/CA%2BFnDv3G5WtPSh95p7KW9nraEKBZx9Fo%3DEoRFgj5PNO5OO8-Dg%40mail.gmail.com?utm_medium=email&utm_source=footer
> >>   10. https://groups.google.com/d/optout
> >
> > --
> > 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.google.com/d/msgid/puppet-users/20180103200959.f4lafrj3bqf3bzwf%40iniquitous.heresiarch.ca.
> > For more options, visit https://groups.google.com/d/optout.
> 
> -- 
> 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.google.com/d/msgid/puppet-users/CACD%3DwAdfVhR4UHvR17uCJa-aHu1diCmv5CstK4O-%2Bz85vyKu7A%40mail.gmail.com.
> For more options, vis