Freifunk:Salt: Unterschied zwischen den Versionen

Aus Hacksaar Wiki
Zur Navigation springen Zur Suche springen
 
Zeile 24: Zeile 24:
  
 
1. https://docs.saltstack.com/en/latest/topics/installation/index.html#installation
 
1. https://docs.saltstack.com/en/latest/topics/installation/index.html#installation
 +
 +
== Dealing with Salt issues ==
 +
 +
If you get an error saying "Salt request timed out. The master is not responding.", it seems to help to restart the Salt master:
 +
 +
  sudo systemctl restart salt-master
  
 
2. apt install salt-minion
 
2. apt install salt-minion

Aktuelle Version vom 11. Januar 2025, 18:47 Uhr

How to deploy the salt state

Deploy on all gateways:

  cd /srv/salt && sudo git pull && sudo salt --state-output=changes 'gw*.*' state.apply -t 32

Deploy on mgmt:

  cd /srv/salt && sudo git pull && sudo salt --state-output=changes 'mgmt.*' state.apply -t 32

Some other salt commands

 salt '*' pkg.upgrade refresh=True dist_upgrade=True
 salt '*' system.reboot

How to set up a new gateway

0. auf mgmt: per `salt-key -d <hostname>` altes GW löschen

0. auf dem alten GW salt ausschalten

0. auf dem neuen GW den hostname setzen

1. https://docs.saltstack.com/en/latest/topics/installation/index.html#installation

Dealing with Salt issues

If you get an error saying "Salt request timed out. The master is not responding.", it seems to help to restart the Salt master:

 sudo systemctl restart salt-master

2. apt install salt-minion

3. `/etc/salt/minion`, sehr weit oben: `master: mgmt.saar.freifunk.net`

4. auf mgmt: per `salt-key` neues GW freischalten

5. vor dem deployen: IP und eth0-name in pillar aktualisieren.