Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende ÜberarbeitungLetzte ÜberarbeitungBeide Seiten der Revision | ||
infrastruktur:salt:bootstrap [15.05.2017 20:47] – christf | infrastruktur:salt:bootstrap [07.05.2023 14:30] – igor | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | Run the following commands on a new host: | ||
+ | apt update && apt -y install gnupg2 | ||
+ | wget -O - " | ||
+ | echo "deb https:// | ||
+ | apt update | ||
+ | mkdir -p / | ||
+ | echo 'ipv6: True' > / | ||
+ | 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 '< | ||
- | auf der maschine wo der minition läuft und die unter salt-verwlatung gestellt werden soll | ||
- | wget -O bootstrap-salt.sh https:// | ||
- | sudo sh bootstrap-salt.sh -A " | ||
- | echo "ipv6: True" > / | ||
- | | ||
- | Und nun auf den Salt Master... |