provisioner:
name: chef_zero
+ data_bags_path: test/data_bags
platforms:
- name: ubuntu-16.04
suites:
+ - name: apache
+ run_list:
+ - recipe[apache::default]
+ - name: apache-ssl
+ run_list:
+ - recipe[apache::ssl]
- name: apt
run_list:
- recipe[apt::default]
description "Installs and configures apache"
long_description IO.read(File.join(File.dirname(__FILE__), "README.md"))
version "1.0.0"
+depends "munin"
depends "ssl"
--- /dev/null
+{
+ "id": "admins",
+ "hosts": [
+ "192.168.1.1"
+ ]
+}
--- /dev/null
+{
+ "id": "keys",
+ "openstreetmap": [
+ "-----BEGIN RSA PRIVATE KEY-----",
+ "dummy",
+ "-----END RSA PRIVATE KEY-----"
+ ],
+ "tile.openstreetmap": [
+ "-----BEGIN RSA PRIVATE KEY-----",
+ "dummy",
+ "-----END RSA PRIVATE KEY-----"
+ ],
+ "osmfoundation": [
+ "-----BEGIN PRIVATE KEY-----",
+ "dummy",
+ "-----END PRIVATE KEY-----"
+ ]
+}
--- /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 }
+end
+
+describe port(443) do
+ it { should be_listening }
+end
--- /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 }
+end
+
+describe port(443) do
+ it { should_not be_listening }
+end