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

Am Mi., 16. Jan. 2019 um 11:09 Uhr schrieb Albert Shih <[email protected]>:
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 [email protected].
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.

Reply via email to