User Tools

Site Tools


linux:saltstack

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:saltstack [2016/12/10 16:46]
tkilla [installation]
linux:saltstack [2018/05/14 20:43] (current)
tkilla [Installation on Raspberry Pi, Banana PI and other ARM machines]
Line 8: Line 8:
  
 Use the latest versions from salt repo, because various things like finger-key-exchange have been modified in 2016 and you get authentication errors with older versions Use the latest versions from salt repo, because various things like finger-key-exchange have been modified in 2016 and you get authentication errors with older versions
-debian: 
-  wget -O -4 - https://repo.saltstack.com/apt/debian/8/amd64/latest/SALTSTACK-GPG-KEY.pub | sudo apt-key add - 
  
-add to sources.list:+**debian:** 
 +  wget -4 -O  - https://repo.saltstack.com/apt/debian/8/amd64/latest/SALTSTACK-GPG-KEY.pub |  apt-key add - 
 + 
 +**add to /etc/apt/sources.list:** 
 + 
 +**debian 8 - jessie:**
   deb http://repo.saltstack.com/apt/debian/8/amd64/latest jessie main   deb http://repo.saltstack.com/apt/debian/8/amd64/latest jessie main
  
-install+**debian 9 - stretch:** 
 +  deb http://repo.saltstack.com/apt/debian/9/amd64/latest stretch main 
 + 
 + 
 +**install:**
   apt-get install salt-minion   apt-get install salt-minion
  
 if you get python-systemd not installable, maybe you have pinned all *systemd* packages in /etc/apt/preferences.d/systemd to avoid systemd installation? if you get python-systemd not installable, maybe you have pinned all *systemd* packages in /etc/apt/preferences.d/systemd to avoid systemd installation?
  
-===== =====+ 
 +==== Installation on Raspberry Pi, Banana PI and other ARM machines ==== 
 + 
 +**add to /etc/apt/sources.list:** 
 + 
 +**debian 8 - jessie:** 
 +  deb http://repo.saltstack.com/apt/debian/8/armhf/latest jessie main 
 + 
 +**debian 9 - stretch:** 
 +  deb http://repo.saltstack.com/apt/debian/9/armhf/latest stretch main 
 + 
 +===== minion config =====
  
 set ID in /etc/salt/minion_id  set ID in /etc/salt/minion_id 
Line 27: Line 45:
 config in /etc/salt/minion  : config in /etc/salt/minion  :
  
-  master: 138.201.57.19+  master: 1.2.3.4         # or hostname
   master_finger: 'xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:.....'   master_finger: 'xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:.....'
      
Line 66: Line 84:
   * https://salt-private.readthedocs.io/en/latest/topics/tutorials/gitfs.html   * https://salt-private.readthedocs.io/en/latest/topics/tutorials/gitfs.html
  
 +===== bugs =====
 +
 +salt-minion not starting - probably in lxc-vs:
 +
 +  multiprocessing.SemLock(kind, value, maxvalue) OSError: [Errno 38] Function not implemented
 +
 +/dev/shm missing - add to /etc/fstab (in vs):
 +
 +  none /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0
 +
 +  mkdir /dev/shm
 +  mount /dev/shm
 +
 +
 +  * https://stackoverflow.com/questions/6033599/oserror-38-errno-38-with-multiprocessing
  
 ===== Links ===== ===== Links =====
linux/saltstack.1481384774.txt.gz · Last modified: 2016/12/10 16:46 by tkilla