Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 75

EPP template : elseif condition ?

$
0
0
Hi dear puppeteers ! I was trying to implement some logic lately within an EPP template, and couldn't get an elsif **strong text**statement to work <% if $facts['os']['family'] == 'RedHat' { -%><% if $facts['os']['release']['major'] == '7' { -%><% } elsif $facts['os']['release']['major'] == '6' { -%><% } -%><% } -%> Does anyone know how to implement it ? Thanks beforehand

Viewing all articles
Browse latest Browse all 75

Trending Articles