From 5d08a13fa12b1b90cb673309cfb89996864a85d1 Mon Sep 17 00:00:00 2001 From: William Mantly Date: Sun, 30 Jun 2019 14:06:59 -0400 Subject: [PATCH 1/3] Static files optional for Apache --- templates/apache/vhost.conf.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/apache/vhost.conf.erb b/templates/apache/vhost.conf.erb index 4e7de90..bab179c 100644 --- a/templates/apache/vhost.conf.erb +++ b/templates/apache/vhost.conf.erb @@ -41,11 +41,13 @@ + <% if node['web']['static'] %> <% node['web']['static'].each do |static| -%> Alias <%= static['uri'] %> <%= node['working-dir'] %>/<%= static['path'] %> <% end -%> - + <% end -%> + <% if node['web']['wsgi'] %> WSGIDaemonProcess <%= node['app']['name'] %> python-path=<%= node['python']['working-dir'] %> python-home=<%= node['python']['env_path'] %> From 44b8a268024c2775a2a9df49e316c5a072c6bc90 Mon Sep 17 00:00:00 2001 From: William Mantly Date: Sun, 30 Jun 2019 14:08:33 -0400 Subject: [PATCH 2/3] Added php --- recipes/php.rb | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 recipes/php.rb diff --git a/recipes/php.rb b/recipes/php.rb new file mode 100644 index 0000000..ebb0e80 --- /dev/null +++ b/recipes/php.rb @@ -0,0 +1,6 @@ +[ + 'php', + 'libapache2-mod-php', +].each do |pkg| + apt_package pkg +end From 15bee53bdf28db2a0d554d696d76795f834b4dbf Mon Sep 17 00:00:00 2001 From: William Mantly Date: Sun, 30 Jun 2019 14:10:01 -0400 Subject: [PATCH 3/3] Upped version --- metadata.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata.rb b/metadata.rb index e2eb824..51e84b5 100644 --- a/metadata.rb +++ b/metadata.rb @@ -4,7 +4,7 @@ maintainer_email 'you@example.com' license 'All Rights Reserved' description 'Installs/Configures t42-common' long_description 'Installs/Configures t42-common' -version '0.1.3' +version '0.1.4' chef_version '>= 13.0' depends 'nodejs'