Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende ÜberarbeitungLetzte ÜberarbeitungBeide Seiten der Revision | ||
infrastruktur:salt:bootstrap [16.04.2017 19:25] – angelegt skorpy | infrastruktur:salt:bootstrap [07.05.2023 14:30] – igor | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | wget -O bootstrap-salt.sh | + | Run the following commands on a new host: |
- | sudo sh bootstrap-salt.sh -A "salt.ffm.freifunk.net" | + | apt update && apt -y install gnupg2 |
- | echo "ipv6: True" | + | |
+ | echo "deb https:// | ||
+ | apt update | ||
+ | mkdir -p / | ||
+ | | ||
+ | echo ' | ||
+ | apt install -y salt-minion | ||
+ | salt-call --local key.finger | ||
+ | |||
+ | Init the pillar config for the new host: | ||
+ | <file yaml host/ | ||
+ | roles: | ||
+ | gateway | ||
+ | [...] | ||
+ | </ | ||
+ | Potentially include service pillar like for example: | ||
+ | <file yaml top.sls> | ||
+ | base: | ||
+ | [...] | ||
+ | ' | ||
+ | - services.cadvisor | ||
+ | - services.pretix | ||
+ | </ | ||
+ | |||
+ | And now check the key on the Salt Master, add the new host and run state.apply for the first time: | ||
+ | salt-key -F | ||
+ | salt-key -a '< | ||
+ | salt '< | ||
+ | salt '< |