Skip to content

run salt-master and salt-minion in parallel #1488

@mrud

Description

@mrud

From the discussion on the mailinglist:

Problem

Currently salt-master and salt-minion share the pki directory per
default. This is works great unless salt-minion and salt-master run as
different users.
On startup salt-{master,minion} check and fix the permissions for
pki_dir, cachedir and logfile. If salt-master is executed under a non root
user all permissions will be adjusted accordingly. If salt-minion is
started afterwards the permissions will be fixed and adjusted for the
root user. This means salt-master can no longer read or write to pki_dir
and cachedir.

Proposed Solution by Jeff and Thomas

Change verification on the minion, e.g:

  1. If the directory/file exists and is readable by the minion do nothing
  2. If the director/file exists and is not readable - abort and log
  3. If the directory/file does not exist create one with the correct
    permissions
  4. If the directory/file does not exist fall back to directories in $HOME, e.g. ~/.cache/salt/minionid.pem or ~/.salt/minionid.pem

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions