From 81a941a055dee4680d4e0a890d1e9b7d6e1d2bd3 Mon Sep 17 00:00:00 2001 From: Chris Wedgwood Date: Mon, 3 Feb 2020 14:28:05 -0600 Subject: [PATCH] add the ability to mask systemd units Change-Id: I4f2a1ed3f5b2d4491784bef9b6e4c9b2f3896396 --- promenade/schemas/HostSystem.yaml | 2 ++ promenade/templates/include/up.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/promenade/schemas/HostSystem.yaml b/promenade/schemas/HostSystem.yaml index f12f0b50..eda63cbe 100644 --- a/promenade/schemas/HostSystem.yaml +++ b/promenade/schemas/HostSystem.yaml @@ -22,6 +22,8 @@ data: type: boolean stop: type: boolean + mask: + type: boolean additionalProperties: false apt_source_line: type: string diff --git a/promenade/templates/include/up.sh b/promenade/templates/include/up.sh index 18c9ecd3..fdb0b496 100644 --- a/promenade/templates/include/up.sh +++ b/promenade/templates/include/up.sh @@ -127,7 +127,7 @@ log === Starting Docker and Kubelet === set -x systemctl daemon-reload -{% for a in ['enable','start','stop','disable'] %} +{% for a in ['enable','start','stop','disable','mask'] %} {% for u in config.get_units_by_action(a) %} systemctl {{ a }} {{ u }} {% endfor %}