This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:saltstack [2016/12/08 21:51] tkilla created |
linux:saltstack [2018/05/14 20:43] (current) tkilla [Installation on Raspberry Pi, Banana PI and other ARM machines] |
||
---|---|---|---|
Line 4: | Line 4: | ||
Here are some tricks, because the documentation is a bit ...dense, structured strange and incomplete.. | Here are some tricks, because the documentation is a bit ...dense, structured strange and incomplete.. | ||
+ | |||
+ | ===== Installation ===== | ||
+ | |||
+ | 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 -4 -O - https:// | ||
+ | |||
+ | **add to / | ||
+ | |||
+ | **debian 8 - jessie:** | ||
+ | deb http:// | ||
+ | |||
+ | **debian 9 - stretch:** | ||
+ | deb http:// | ||
+ | |||
+ | |||
+ | **install: | ||
+ | apt-get install salt-minion | ||
+ | |||
+ | if you get python-systemd not installable, | ||
+ | |||
+ | |||
+ | ==== Installation on Raspberry Pi, Banana PI and other ARM machines ==== | ||
+ | |||
+ | **add to / | ||
+ | |||
+ | **debian 8 - jessie:** | ||
+ | deb http:// | ||
+ | |||
+ | **debian 9 - stretch:** | ||
+ | deb http:// | ||
+ | |||
+ | ===== minion config ===== | ||
+ | |||
+ | set ID in / | ||
+ | |||
+ | xxxx.yyyy | ||
+ | |||
+ | config in / | ||
+ | |||
+ | master: 1.2.3.4 | ||
+ | master_finger: | ||
+ | | ||
+ | mine_functions: | ||
+ | test.ping: [] | ||
+ | grains.items: | ||
+ | network.ip_addrs: | ||
+ | interface: eth0 | ||
+ | | ||
===== gitfs ===== | ===== gitfs ===== | ||
- | You can use a local repository to store states, but it must be a *bare* repository | + | You can use a local repository to store states, but it must be a *bare* repository. |
- | | + | Salt refreshes the cache by default every 60 seconds! |
+ | |||
+ | | ||
mkdir -p / | mkdir -p / | ||
git init --bare | git init --bare | ||
Line 28: | Line 80: | ||
- file:/// | - file:/// | ||
+ | |||
+ | |||
+ | * https:// | ||
+ | |||
+ | ===== bugs ===== | ||
+ | |||
+ | salt-minion not starting - probably in lxc-vs: | ||
+ | |||
+ | multiprocessing.SemLock(kind, | ||
+ | |||
+ | /dev/shm missing - add to /etc/fstab (in vs): | ||
+ | |||
+ | none /dev/shm tmpfs rw, | ||
+ | |||
+ | mkdir /dev/shm | ||
+ | mount /dev/shm | ||
+ | |||
+ | |||
+ | * https:// | ||
===== Links ===== | ===== Links ===== |