User Tools

Site Tools


tech:cheatsheets:salt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
tech:cheatsheets:salt [2024/01/15 07:32] – removed - external edit (Unknown date) 127.0.0.1tech:cheatsheets:salt [2024/01/15 07:32] (current) – ↷ Page moved from infrastructure:cheatsheets:salt to tech:cheatsheets:salt waldemar
Line 1: Line 1:
 +====== Salt Project ======
 +https://docs.saltproject.io
  
 +===== Remove entry from mine =====
 +  * https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.mine.html
 +  * https://docs.saltproject.io/en/latest/ref/runners/all/salt.runners.mine.html
 +  * https://github.com/saltstack/salt/issues/11389#issuecomment-192000830
 +
 +Should a node be removed at least its prometheus/monitoring entry in the mine should be removed.
 +Given a node ''pi-k8s-01'' run the following command to remove all mine entries.
 +  salt-run mine.update 'pi-k8s-01' clear=True
 +  
 +The previous command only works while the minion is still connected to the master.
 +If the minion is already removed you can execute this command.
 +  salt-run cache.clear_all pi-k8s-01

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki