mirror of
https://github.com/natelandau/ansible-homelab-config.git
synced 2025-11-18 01:43:40 -05:00
fix(nomad): run nomad as root user to enable docker plugin on raspberry pis
Nomad is running as root rather than the Nomad user due to the Docker driver not being started when cgroups v2 are enabled. More info: https://github.com/hashicorp/nomad/pull/16063
This commit is contained in:
@@ -7,9 +7,16 @@ ConditionFileNotEmpty={{ nomad_configuration_dir }}/nomad.hcl
|
||||
|
||||
[Service]
|
||||
{# {% if 'linode' in group_names %} #}
|
||||
User=nomad
|
||||
Group=nomad
|
||||
{# User=nomad #}
|
||||
{# Group=nomad #}
|
||||
{# {% endif %} #}
|
||||
|
||||
{# NOTE: Nomad is running as root rather than the Nomad user due to the Docker driver not being started when cgroups v2 are enabled.
|
||||
|
||||
https://github.com/hashicorp/nomad/pull/16063
|
||||
#}
|
||||
User=root
|
||||
Group=root
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
ExecStart=/usr/local/bin/nomad agent -config {{ nomad_configuration_dir }}
|
||||
KillMode=process
|
||||
|
||||
Reference in New Issue
Block a user