summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2015-02-07 11:31:05 (GMT)
committerPaul Sherwood <paul.sherwood@codethink.co.uk>2015-02-07 21:18:15 (GMT)
commit5edd89b891fc170d5b3297cd85e8392f8edd4b11 (patch)
tree011ada56be91c1e9ebd5efa7ffca70fd8c31fdec
parent72d295c7a74b378441b4524e347bb244c11af213 (diff)
downloaddefinitions-baserock/ps/add-pyinotify-fail2ban-v2.tar.gz
Add fail2ban and pyinotify to connectivity.morphbaserock/ps/add-pyinotify-fail2ban-v2
This includes a systemd unit file to start Fail2Ban
-rw-r--r--strata/connectivity.morph9
-rw-r--r--strata/connectivity/fail2ban.morph7
-rw-r--r--systems/devel-system-x86_64-generic.morph2
3 files changed, 18 insertions, 0 deletions
diff --git a/strata/connectivity.morph b/strata/connectivity.morph
index 2cc6bb6..409abcf 100644
--- a/strata/connectivity.morph
+++ b/strata/connectivity.morph
@@ -20,3 +20,12 @@ chunks:
ref: 482c6d3731e2681cb4baae835c294840300197e6
unpetrify-ref: v1.4.21
build-depends: []
+- name: fail2ban
+ morph: strata/connectivity/fail2ban.morph
+ repo: upstream:fail2ban
+ ref: master
+ build-depends: []
+- name: pyinotify
+ repo: upstream:pyinotify
+ ref: master
+ build-depends: []
diff --git a/strata/connectivity/fail2ban.morph b/strata/connectivity/fail2ban.morph
new file mode 100644
index 0000000..fbc886c
--- /dev/null
+++ b/strata/connectivity/fail2ban.morph
@@ -0,0 +1,7 @@
+name: fail2ban
+kind: chunk
+build-system: python-distutils
+post-install-commands:
+- install -D -m 644 files/fail2ban.service "$DESTDIR$PREFIX"/lib/systemd/system/fail2ban.service
+- mkdir -p "$DESTDIR"/etc/systemd/system/multi-user.target.wants
+- ln -s "$DESTDIR$PREFIX"/lib/systemd/system/fail2ban.service "$DESTDIR"/etc/systemd/system/multi-user.target.wants/fail2ban.service
diff --git a/systems/devel-system-x86_64-generic.morph b/systems/devel-system-x86_64-generic.morph
index 32ddfc5..64296d5 100644
--- a/systems/devel-system-x86_64-generic.morph
+++ b/systems/devel-system-x86_64-generic.morph
@@ -36,6 +36,8 @@ strata:
morph: strata/python-tools.morph
- name: devtools
morph: strata/devtools.morph
+- name: connectivity
+ morph: strata/connectivity.morph
configuration-extensions:
- set-hostname
- add-config-files