|
|
il y a 4 ans | |
|---|---|---|
| .. | ||
| group_vars | il y a 4 ans | |
| roles | il y a 4 ans | |
| staging | il y a 4 ans | |
| .gitignore | il y a 4 ans | |
| README.md | il y a 4 ans | |
| mint.yml | il y a 4 ans | |
| ping.yml | il y a 4 ans | |
# create cluster
mkdir -p clients/CLUSTER/.ssh
cd clients/CLUSTER
# append your cluster hosts
touch hosts
# generate ssh key
ssh-keygen -t ed25519 -f .ssh/id_ed25519
# upload the ssh public key to target host
ssh-copy-id -i .ssh/id_ed25519 USER@HOST
# test ssh connections
peony -i staging ping.yml
# run on all hosts
peony -i staging pi.yml
# run on only group
peony -i staging pi.yml -l GROUP