Skip to content
Discussion options

You must be logged in to vote

Accepting multiple minions with salt-key is possible, but this is not the correct syntax.

As noted in the man page globbing is supported and this allows targeting multiple minions.

    -a ACCEPT, --accept=ACCEPT
                        Accept the specified public key (use --include-
                        rejected and --include-denied to match rejected and
                        denied keys in addition to pending keys). Globs are
                        supported.

So there would be multiple ways that could be used to accept all of these minions in one command. for instance:

salt-key -a 'Minion1,Minion2,Minion3'
salt-key -a 'Minion[1-3]'
salt-key -a 'Minion*'

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pepoluan
Comment options

@pepoluan
Comment options

Answer selected by pepoluan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants