From 20192c1088af9272a6d9b3b191ecb5b2e3b81bd6 Mon Sep 17 00:00:00 2001 From: Patrick Brideau Date: Thu, 3 Sep 2015 11:18:42 -0400 Subject: [PATCH 1/2] Add priority as comment in header for debian --- manifests/module/ini.pp | 1 + templates/module.ini.erb | 3 +++ 2 files changed, 4 insertions(+) diff --git a/manifests/module/ini.pp b/manifests/module/ini.pp index 67c775b..9f1cd34 100644 --- a/manifests/module/ini.pp +++ b/manifests/module/ini.pp @@ -20,6 +20,7 @@ $prefix = undef, $settings = {}, $zend = false, + $priority = '20', ) { include '::php::params' diff --git a/templates/module.ini.erb b/templates/module.ini.erb index 3c23dde..3821d5b 100644 --- a/templates/module.ini.erb +++ b/templates/module.ini.erb @@ -1,5 +1,8 @@ ; NOTICE : File auto-generated by puppet, do not edit ; Enable <%= @modname %> extension module +<% if @priority -%> +; priority=<%= @priority %> +<% end -%> <% if @zend == true -%> zend_extension=<%= @modname %>.so <% elsif @zend -%> From c518d79a8f83d5a1f0c19e7d1c41d68c5b08e4e5 Mon Sep 17 00:00:00 2001 From: Patrick Brideau Date: Fri, 16 Oct 2015 11:22:56 -0400 Subject: [PATCH 2/2] Make the priority appears only on debian based distro --- templates/module.ini.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/module.ini.erb b/templates/module.ini.erb index 3821d5b..30314b8 100644 --- a/templates/module.ini.erb +++ b/templates/module.ini.erb @@ -1,6 +1,6 @@ ; NOTICE : File auto-generated by puppet, do not edit ; Enable <%= @modname %> extension module -<% if @priority -%> +<% if @osfamily == 'Debian' and @priority -%> ; priority=<%= @priority %> <% end -%> <% if @zend == true -%>