- name: python
run_list:
- recipe[python::default]
+ - name: serverinfo
+ run_list:
+ - recipe[serverinfo::default]
- name: spamassassin
run_list:
- recipe[spamassassin::default]
- name: "Test Kitchen (python)"
script:
- bundle exec kitchen test python-ubuntu-1804
+ - name: "Test Kitchen (serverinfo)"
+ script:
+ - bundle exec kitchen test serverinfo-ubuntu-1804
- name: "Test Kitchen (spamassassin)"
script:
- bundle exec kitchen test spamassassin-ubuntu-1804
package %w[
ruby
ruby-dev
+ libssl-dev
zlib1g-dev
+ pkg-config
]
gem_package "bundler" do
--- /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