From e6fab315c2a57fa529c87fe4b0e35fc1d6798fbb Mon Sep 17 00:00:00 2001 From: Thomas Dalichow Date: Mon, 13 Aug 2018 21:01:14 +0200 Subject: [PATCH] fbb-api - allow worker-restart for apache users --- customer/fbb-api/test.yaml | 4 ++++ customer/fbb-api/tst-api01-fbb.pixelpark.net.yaml | 2 +- customer/fbb-api/tst-api02-fbb.pixelpark.net.yaml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/customer/fbb-api/test.yaml b/customer/fbb-api/test.yaml index 24e7adcc..391ae39b 100644 --- a/customer/fbb-api/test.yaml +++ b/customer/fbb-api/test.yaml @@ -57,6 +57,10 @@ sudo::configs: priority: "06" content: | jenkins ALL=(apache) NOPASSWD: ALL + apache_restart_worker_rights: + priority: "07" + content: | + apache ALL=(root) NOPASSWD: /bin/systemctl restart fbb-worker.target repo::remi_php72: true diff --git a/customer/fbb-api/tst-api01-fbb.pixelpark.net.yaml b/customer/fbb-api/tst-api01-fbb.pixelpark.net.yaml index 87d27817..27f96f11 100644 --- a/customer/fbb-api/tst-api01-fbb.pixelpark.net.yaml +++ b/customer/fbb-api/tst-api01-fbb.pixelpark.net.yaml @@ -73,5 +73,5 @@ infra::profile::apache::pp_vhosts: require: requires: - 'user hh-push' - - 'ip 10.5.13.142 10.5.13.144 217.66.51.248 192.168.66.253 192.168.66.254 10.99.1.10' + - 'ip 10.5.13.142 217.66.51.248 192.168.66.253 192.168.66.254 10.99.1.10' enforce: all diff --git a/customer/fbb-api/tst-api02-fbb.pixelpark.net.yaml b/customer/fbb-api/tst-api02-fbb.pixelpark.net.yaml index d19acd1e..f436a29c 100644 --- a/customer/fbb-api/tst-api02-fbb.pixelpark.net.yaml +++ b/customer/fbb-api/tst-api02-fbb.pixelpark.net.yaml @@ -66,5 +66,5 @@ infra::profile::apache::pp_vhosts: require: requires: - 'user hh-push' - - 'ip 10.5.13.142 10.5.13.144 217.66.51.248 192.168.66.253 192.168.66.254 10.99.1.10' + - 'ip 10.5.13.142 217.66.51.248 192.168.66.253 192.168.66.254 10.99.1.10' enforce: all -- 2.39.5