- name: networking
run_list:
- recipe[networking::default]
+ - name: nginx
+ run_list:
+ - recipe[munin::default]
+ - recipe[nginx::default]
+ attributes:
+ networking:
+ nameservers:
+ - 127.0.0.1
- name: nodejs
run_list:
- recipe[nodejs::default]
- name: "Test Kitchen (networking)"
script:
- bundle exec kitchen test networking-ubuntu-1804
+ - name: "Test Kitchen (nginx)"
+ script:
+ - bundle exec kitchen test nginx-ubuntu-1804
- name: "Test Kitchen (nodejs)"
script:
- bundle exec kitchen test nodejs-ubuntu-1804
version "1.0.0"
supports "ubuntu"
+depends "munin"
+depends "networking"
depends "ssl"
--- /dev/null
+require "serverspec"
+
+# Required by serverspec
+set :backend, :exec
+
+describe package("nginx") do
+ it { should be_installed }
+end
+
+describe service("nginx") do
+ it { should be_enabled }
+ it { should be_running }
+end
+
+describe port(8050) do
+ it { should be_listening.with("tcp") }
+end