- name: geoipupdate
run_list:
- recipe[geoipupdate::default]
+ - name: gps-tile
+ run_list:
+ - recipe[gps-tile::default]
- name: incron
run_list:
- recipe[incron::default]
- name: "Test Kitchen (geoipupdate)"
script:
- bundle exec kitchen test geoipupdate-ubuntu-1804
+ - name: "Test Kitchen (gps-tile)"
+ script:
+ - bundle exec kitchen test gps-tile-ubuntu-1804
- name: "Test Kitchen (incron)"
script:
- bundle exec kitchen test incron-ubuntu-1804
--- /dev/null
+default[:accounts][:users][:gpstile][:status] = :role
version "1.0.0"
supports "ubuntu"
+depends "accounts"
depends "apache"
+depends "git"
+depends "memcached"
depends "systemd"
# limitations under the License.
#
+include_recipe "accounts"
include_recipe "apache"
+include_recipe "git"
+include_recipe "memcached"
package %w[
make
execute "/srv/gps-tile.openstreetmap.org/import/src/Makefile" do
action :nothing
- command "make"
+ command "make DB=none LDFLAGS=-lm"
cwd "/srv/gps-tile.openstreetmap.org/import/src"
user "gpstile"
group "gpstile"
:users => {
:enf => { :status => :administrator },
:gpstile => {
- :status => :role,
:members => [:enf, :tomh]
}
}
)
run_list(
- "recipe[memcached]",
"recipe[gps-tile]"
)
--- /dev/null
+{
+ "id": "gpstile",
+ "uid": "519",
+ "comment": "gps-tile.openstreetmap.org",
+ "home": "/srv/gps-tile.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
--- /dev/null
+require "serverspec"
+
+# Required by serverspec
+set :backend, :exec
+
+describe service("gps-update") do
+ it { should be_enabled }
+ it { should be_running }
+end