Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| infrastruktur:salt:bootstrap [12.06.2017 17:16] – Added pillar changes igor | infrastruktur:salt:bootstrap [19.06.2023 22:55] (aktuell) – igor | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | Auf der Maschine wo der Salt Minion läuft | + | Run the following commands on a new host: |
| - | wget -O bootstrap-salt.sh | + | apt update && apt -y install gnupg2 |
| - | sudo sh bootstrap-salt.sh -A "salt.ffm.freifunk.net" | + | wget -O - "https://repo.saltproject.io/ |
| - | echo "ipv6: True" | + | echo "deb https:// |
| + | apt update | ||
| + | mkdir -p / | ||
| + | echo 'ipv6: True' | ||
| + | echo ' | ||
| + | apt install -y salt-minion | ||
| salt-call --local key.finger | salt-call --local key.finger | ||
| - | Im Git die pillar config | + | Init the pillar config |
| <file yaml host/ | <file yaml host/ | ||
| roles: | roles: | ||
| gateway | gateway | ||
| + | [...] | ||
| </ | </ | ||
| + | Potentially include service pillar like for example: | ||
| <file yaml top.sls> | <file yaml top.sls> | ||
| - | [...] | ||
| base: | base: | ||
| [...] | [...] | ||
| - | 'service.host.domain.tld': | + | 'prometheus1.aixit.off.de.ffffm.net': |
| - | - host.tld.domain.host.service | + | - services.cadvisor |
| + | - services.pretix | ||
| </ | </ | ||
| - | Und nun auf den Salt Master | + | 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 -F | ||
| - | salt-key -a ' | + | salt-key -a '<hostname>' |
| - | salt ' | + | salt '<hostname>' test.ping |
| + | salt '< | ||