attributes:
apache:
mpm: prefork
+ - name: donate
+ run_list:
+ - recipe[accounts::default]
+ - role[donate]
+ attributes:
+ apache:
+ mpm: prefork
- name: exim
run_list:
- recipe[exim::default]
- name: "Test Kitchen (dmca)"
script:
- bundle exec kitchen test dmca-ubuntu-1804
+ - name: "Test Kitchen (donate)"
+ script:
+ - bundle exec kitchen test donate-ubuntu-1804
- name: "Test Kitchen (exim)"
script:
- bundle exec kitchen test exim-ubuntu-1804
--- /dev/null
+{
+ "id": "donate",
+ "uid": "524",
+ "comment": "OSMF Donations"
+}
--- /dev/null
+{
+ "id": "passwords",
+ "database": "database-password"
+}
--- /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
--- /dev/null
+require "serverspec"
+
+# Required by serverspec
+set :backend, :exec
+
+describe package("mysql-server") do
+ it { should be_installed }
+end
+
+describe service("mysql") do
+ it { should be_enabled }
+ it { should be_running }
+end
+
+describe port(3306) do
+ it { should be_listening.with("tcp") }
+end