- db-base
- db-master
- db-slave
+ - dev
- devices
- dhcpd
- dmca
suite: osqa
- os: debian-12
suite: apt-repository
+ - os: debian-12
+ suite: dev
- os: debian-12
suite: dns
- os: debian-12
exclude:
- suite: apt-repository
os: ubuntu-2204
+ - suite: dev
+ os: ubuntu-2204
- suite: dns
os: ubuntu-2204
- suite: git-server
- name: db-slave
run_list:
- recipe[db::slave]
+ - name: dev
+ run_list:
+ - recipe[dev::default]
+ attributes:
+ postgresql:
+ versions:
+ - 15
- name: devices
run_list:
- recipe[devices::default]
--- /dev/null
+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 }
+ its("protocols") { should cmp "tcp" }
+end
+
+describe port(443) do
+ it { should be_listening }
+ its("protocols") { should cmp "tcp" }
+end
--- /dev/null
+mysql_variant = if os.name == "ubuntu"
+ "mysql"
+ else
+ "mariadb"
+ end
+
+describe package("#{mysql_variant}-server") do
+ it { should be_installed }
+end
+
+describe service("#{mysql_variant}") do
+ it { should be_enabled }
+ it { should be_running }
+end
+
+describe port(3306) do
+ it { should be_listening }
+ its("protocols") { should cmp "tcp" }
+end
--- /dev/null
+describe package("postgresql-15") do
+ it { should be_installed }
+end
+
+describe service("postgresql@15-main") do
+ it { should be_enabled }
+ it { should be_running }
+end
+
+describe port(5432) do
+ it { should be_listening }
+ its("protocols") { should cmp %w[tcp tcp6] }
+end