diff --git a/Modulefile b/Modulefile index bf75af6..92aa6ee 100644 --- a/Modulefile +++ b/Modulefile @@ -1,5 +1,5 @@ name 'tracywebtech-supervisor' -version '1.1.1' +version '1.1.2' source 'https://github.com/TracyWebTech/puppet-supervisor' author 'Tracy Web Technologies' summary 'Install and configure Supervisord' diff --git a/manifests/app.pp b/manifests/app.pp index 8181c38..7bd5169 100644 --- a/manifests/app.pp +++ b/manifests/app.pp @@ -7,6 +7,7 @@ $stopwaitsecs = undef, $priority = undef, $environment = undef, + $stopsignal = undef, ) { $conf_file = "supervisor_${app_name}" diff --git a/templates/supervisor.conf.erb b/templates/supervisor.conf.erb index 1afb9b5..c6fd224 100644 --- a/templates/supervisor.conf.erb +++ b/templates/supervisor.conf.erb @@ -17,3 +17,6 @@ priority=<%= @priority %> <%- if @environment %> environment=<% @environment.each_pair do |key,value| -%><%=key%>="<%=value%>",<% end -%> <%- end %> +<%- if @stopsignal %> +stopsignal=<%= @stopsignal %> +<%- end %>