forked from redhat-openstack/openstack-puppet-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #906 from jweisner/php_value
Implement php_value and php_flag
- Loading branch information
Showing
5 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<% if @php_values and not @php_values.empty? -%> | ||
<%- @php_values.sort.each do |key,value| -%> | ||
php_value <%= key %> <%= value %> | ||
<%- end -%> | ||
<% end -%> | ||
<% if @php_flags and not @php_flags.empty? -%> | ||
<%- @php_flags.sort.each do |key,flag| -%> | ||
<%-# normalize flag -%> | ||
<%- if flag =~ /true|yes|on|1/i then flag = 'on' else flag = 'off' end -%> | ||
php_flag <%= key %> <%= flag %> | ||
<%- end -%> | ||
<% end -%> |