- name: osmosis
run_list:
- recipe[osmosis::default]
+ - name: osqa
+ run_list:
+ - recipe[osqa::default]
- name: otrs
run_list:
- recipe[otrs::default]
- name: "Test Kitchen (osmosis)"
script:
- bundle exec kitchen test osmosis-ubuntu-1804
+ - name: "Test Kitchen (osqa)"
+ script:
+ - bundle exec kitchen test osqa-ubuntu-1804
+ attributes:
+ osqa:
+ sites:
+ - name: help.example.com
- name: "Test Kitchen (otrs)"
script:
- bundle exec kitchen test otrs-ubuntu-1804
default[:osqa][:database_user] = "osqa"
default[:osqa][:database_password] = ""
default[:osqa][:sites] = []
+
+default[:accounts][:users][:osqa][:status] = :role
version "1.0.0"
supports "ubuntu"
+depends "accounts"
depends "apache"
depends "memcached"
depends "python"
# limitations under the License.
#
-include_recipe "tools"
+include_recipe "accounts"
include_recipe "apache"
include_recipe "memcached"
include_recipe "python"
+include_recipe "tools"
package "python-dev"
package "libmysqlclient-dev"
description "Role applied to all OSQA servers"
default_attributes(
- :accounts => {
- :users => {
- :osqa => { :status => :role }
- }
- },
:osqa => {
:sites => [
{ :name => "help.openstreetmap.org",
--- /dev/null
+{
+ "id": "osqa",
+ "uid": "510",
+ "comment": "osqa.openstreetmap.org",
+ "home": "/srv/help.openstreetmap.org"
+}
--- /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