Merge "add the ability to mask systemd units"

This commit is contained in:
Zuul 2020-02-04 19:04:47 +00:00 committed by Gerrit Code Review
commit 1d2634139c
2 changed files with 3 additions and 1 deletions

View File

@ -22,6 +22,8 @@ data:
type: boolean
stop:
type: boolean
mask:
type: boolean
additionalProperties: false
apt_source_line:
type: string

View File

@ -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 %}