diff options
author | Paul Sherwood <paul.sherwood@codethink.co.uk> | 2015-02-07 11:31:05 +0000 |
---|---|---|
committer | Paul Sherwood <paul.sherwood@codethink.co.uk> | 2015-02-07 21:18:15 +0000 |
commit | 5edd89b891fc170d5b3297cd85e8392f8edd4b11 (patch) | |
tree | 011ada56be91c1e9ebd5efa7ffca70fd8c31fdec | |
parent | 72d295c7a74b378441b4524e347bb244c11af213 (diff) | |
download | definitions-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.morph | 9 | ||||
-rw-r--r-- | strata/connectivity/fail2ban.morph | 7 | ||||
-rw-r--r-- | systems/devel-system-x86_64-generic.morph | 2 |
3 files changed, 18 insertions, 0 deletions
diff --git a/strata/connectivity.morph b/strata/connectivity.morph index 2cc6bb69..409abcf2 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 00000000..fbc886c8 --- /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 32ddfc56..64296d52 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 |