- name: passenger
run_list:
- recipe[passenger::default]
+ - name: piwik
+ run_list:
+ - recipe[piwik::default]
+ attributes:
+ apache:
+ mpm: prefork
- name: planet
run_list:
- recipe[planet::default]
- name: "Test Kitchen (passenger)"
script:
- bundle exec kitchen test passenger-ubuntu-1804
+ - name: "Test Kitchen (piwik)"
+ script:
+ - bundle exec kitchen test piwik-ubuntu-1804
- name: "Test Kitchen (planet)"
script:
- bundle exec kitchen test planet-ubuntu-1804
passwords = data_bag_item("piwik", "passwords")
-package "php"
-package "php-cli"
-package "php-curl"
-package "php-mbstring"
-package "php-mysql"
-package "php-gd"
-package "php-xml"
-package "php-apcu"
+package %w[
+ php
+ php-cli
+ php-curl
+ php-mbstring
+ php-mysql
+ php-gd
+ php-xml
+ php-apcu
+ unzip
+]
apache_module "expires"
apache_module "php7.2"
--- /dev/null
+{
+ "id": "passwords",
+ "database": "database-password",
+ "salt": "salt"
+}
--- /dev/null
+require "serverspec"
+
+# Required by serverspec
+set :backend, :exec
+
+describe package("apache2") do
+ it { should be_installed }
+end
+
+describe service("apache2") do
+ it { should be_enabled }
+ it { should be_running }
+end
+
+describe port(80) do
+ it { should be_listening.with("tcp") }
+end
+
+describe port(443) do
+ it { should be_listening.with("tcp") }
+end