view modules/apache/templates/vhost/_php_admin.erb @ 0:956e484adc12

Initial public release of Puppet configs
author IBBoard <dev@ibboard.co.uk>
date Sat, 16 Aug 2014 19:47:38 +0000
parents
children 37675581a273
line wrap: on
line source

<% if @php_admin_values and not @php_admin_values.empty? -%>
<% @php_admin_values.each do |key,value| -%>
  php_admin_value <%= key %> <%= value %>
<% end -%>
<% end -%>
<% if @php_admin_flags and not @php_admin_flags.empty? -%>
<% @php_admin_flags.each do |key,flag| -%>
<%# normalize flag -%>
<% if flag =~ /true|yes|on|1/i then flag = 'on' else flag = 'off' end -%>
  php_admin_flag <%= key %> <%= flag %>
<% end -%>
<% end -%>