[Puppet Users] Bolt 1.10.0 now available

2019-01-16 Thread Puppet Product Updates
Greetings!

We're happy to announce the release of Bolt 1.10.0. Highlights in this
release include:

   - Hyphens allowed in aliases and group names
   - Secured download of the `puppet_agent::install_powershell` task

For more information, check out the release notes:
https://puppet.com/docs/bolt/1.x/bolt_release_notes.html

To try this version of Bolt, follow the installation instructions for your
operating system:
https://puppet.com/docs/bolt/1.x/bolt_installing.html

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


Re: [Puppet Users] Concerns about Puppet 4 master serving Puppet 3 clients

2019-01-16 Thread Eric Sorenson
You're correct John - Puppet 4 masters using Puppet Server will work with 
Puppet 3 agents.  If the catalog compiles (Henrik's point), the 
agent/master comms will be fine.

Note the same is not true for Apache/Passenger based Puppet 4 setups - the 
URL rewriting that enables the compatibility is only implemented in 
puppetserver.

--eric

On Tuesday, January 15, 2019 at 5:52:35 AM UTC-8, jcbollinger wrote:
>
>
>
> On Monday, January 14, 2019 at 10:01:21 AM UTC-6, Henrik Lindberg wrote:
>>
>> On 2019-01-14 16:22, Peter Berghold wrote: 
>> > I am about to have our first Puppet 4 Puppet master into our production 
>> > environment. We have a very large community of Puppet 3 "leaf nodes" 
>> > being managed by our old Puppet 3 infrastructure. 
>> > 
>> > What issues might I run into with that and what should I do to mitigate 
>> > this? 
>> > 
>>
>> It is a quite open ended question unfortunately. You may want to start 
>> reading here: https://puppet.com/docs/puppet/4.10/upgrade_major_pre.html 
>> and then come back with more specific questions. 
>>
>
>
> Hmmm.  I took the question to be about whether there were known issues 
> revolving around a P4 master serving catalogs to P3 agents.  I didn't think 
> P4 broke the pattern that the master supports agents from the previous 
> generation.  Or is that less of a pattern than I thought?
>
>
> John
>  
>

-- 
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/ece3301a-9651-4238-a02c-3ded8831ad1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Ternary operator in puppet ?

2019-01-16 Thread Henrik Lindberg

On 2019-01-16 11:18, Karsten Heymann wrote:

Hi Albert,

Am Mi., 16. Jan. 2019 um 11:09 Uhr schrieb Albert Shih :

Is they are something like the ruby ternary operator ?: in puppet ?


Sort of, it's called selectors:
https://puppet.com/docs/puppet/5.3/lang_conditional.html#selectors



You can also use an if-expression - for example:

$x = if $somevar == 'foo' { 'it is foo' } else { 'it is not foo' }

- henrik


--

Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/

--
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/q1n1vv%24o8k%241%40blaine.gmane.org.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Ternary operator in puppet ?

2019-01-16 Thread Karsten Heymann
Hi Albert,

Am Mi., 16. Jan. 2019 um 11:09 Uhr schrieb Albert Shih :
> Is they are something like the ruby ternary operator ?: in puppet ?

Sort of, it's called selectors:
https://puppet.com/docs/puppet/5.3/lang_conditional.html#selectors

Unfortunately one of the most useful cases (inside class declarations)
of selectors is disregarded according to puppet-lint:
http://puppet-lint.com/checks/selector_inside_resource/

Best regards
Karsten

-- 
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/CAL017hCVn9Gq5mhjAbuswG8HSHd%3D2NOhLMCe024mXsXM51ahJA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Ternary operator in puppet ?

2019-01-16 Thread Albert Shih
Hi, 

Is they are something like the ruby ternary operator ?: in puppet ?

I would like to do something like
  
  $value = $hash.has_key('key') ? $hash('key') : $default_value

instead of

  if $hash.has_key('key') {
$value = $hash('key')
  }
  else
  { 
$value = $default_value
}

to not get a lot of if.

Regards

--
Albert SHIH
DIO bātiment 15
Heure local/Local time:
Wed Jan 16 12:06:15 CET 2019

-- 
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/20190116110922.GD1721%40io.chezmoi.fr.
For more options, visit https://groups.google.com/d/optout.