Skip to content

What specific task needs sudo/root privilege's when nomad_user is not root? #145

@saurabh-sp-tripathi

Description

@saurabh-sp-tripathi

I understand the nomad need to be start/restart as a 'root' user because many operation it runs, needs root privilege.

However as a system admin I would like to harden/limit the scope of 'sudo' access to specific tasks only. As far as I have analyzed the following will need sudo/become/root privilege's:

  • handlers/main.yml: restart nomad
  • tasks/main.yml: start nomad
  • file & template operations owned by root

Is there anything out of this list ? and Is there any cautions or recommendations?

ref: https://www.nomadproject.io/docs/install/production/requirements

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions