This server was a masterless server before. I moved /etc/salt
to a backup folder just in case.
I uninstalled salt package this way based on http://installion.co.uk/ubuntu/vivid/universe/s/salt-minion/uninstall/index.html
sudo apt-get remove --auto-remove salt-minion
sudo apt-get purge --auto-remove salt-minion
$ salt-call --versions
Salt Version:
Salt: 2016.3.3
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 2.5.3
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.8
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.7
mysql-python: 1.2.3
pycparser: Not Installed
pycrypto: 2.6.1
pygit2: Not Installed
Python: 2.7.9 (default, Jun 29 2016, 13:08:31)
python-gnupg: 0.3.8
PyYAML: 3.11
PyZMQ: 15.2.0
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.3
ZMQ: 4.1.2
System Versions:
dist: debian 8.7
machine: x86_64
release: 3.16.0-4-amd64
system: Linux
version: debian 8.7
$ uname -a
Linux <snip> 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) x86_64 GNU/Linux
I tried both from git installation and package manager https://repo.saltstack.com/#debian
$ wget -O - https://repo.saltstack.com/apt/debian/8/amd64/latest/SALTSTACK-GPG-KEY.pub | sudo apt-key add -
--2017-01-18 22:05:50-- https://repo.saltstack.com/apt/debian/8/amd64/latest/SALTSTACK-GPG-KEY.pub
Resolving repo.saltstack.com (repo.saltstack.com)... 198.199.77.106, 2604:a880:400:d0::2:e001
Connecting to repo.saltstack.com (repo.saltstack.com)|198.199.77.106|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1727 (1.7K)
Saving to: ‘STDOUT’
- 100%[=================================================>] 1.69K --.-KB/s in 0s
2017-01-18 22:05:52 (22.2 MB/s) - written to stdout [1727/1727]
OK
$ cat /etc/apt/sources.list.d/saltstack.list
deb http://repo.saltstack.com/apt/debian/8/amd64/latest jessie main
$ sudo apt-get update
Hit http://repo.saltstack.com jessie InRelease
Hit http://repo.saltstack.com jessie/main amd64 Packages
Hit http://security.debian.org jessie/updates InRelease
Hit http://security.debian.org jessie/updates/main Sources
Hit https://deb.nodesource.com jessie InRelease
Hit http://security.debian.org jessie/updates/main amd64 Packages
Ign http://repo.saltstack.com jessie/main Translation-en_US
Ign http://debian.mirrors.ovh.net jessie InRelease
Ign http://repo.saltstack.com jessie/main Translation-en
Hit https://deb.nodesource.com jessie/main Sources
Hit http://security.debian.org jessie/updates/main Translation-en
Hit https://deb.nodesource.com jessie/main amd64 Packages
Hit http://debian.mirrors.ovh.net jessie-updates InRelease
Hit http://debian.mirrors.ovh.net jessie-backports InRelease
Hit http://debian.mirrors.ovh.net jessie Release.gpg
Get:1 https://deb.nodesource.com jessie/main Translation-en_US [162 B]
Hit http://debian.mirrors.ovh.net jessie-updates/main Sources
Hit https://archive.serverdensity.com all InRelease
Get:2 https://deb.nodesource.com jessie/main Translation-en [162 B]
Get:3 http://debian.mirrors.ovh.net jessie-updates/main amd64 Packages/DiffIndex [6,916 B]
Get:4 http://debian.mirrors.ovh.net jessie-updates/main Translation-en/DiffIndex [2,704 B]
Get:5 http://debian.mirrors.ovh.net jessie-backports/main Sources/DiffIndex [27.8 kB]
Get:6 https://deb.nodesource.com jessie/main Translation-en_US [162 B]
Get:7 http://debian.mirrors.ovh.net jessie-backports/main amd64 Packages/DiffIndex [27.8 kB]
Get:8 https://deb.nodesource.com jessie/main Translation-en [162 B]
Hit https://archive.serverdensity.com all/main amd64 Packages
Get:9 http://debian.mirrors.ovh.net jessie-backports/main Translation-en/DiffIndex [27.8 kB]
Get:10 https://archive.serverdensity.com all/main Translation-en_US [303 B]
Hit http://debian.mirrors.ovh.net jessie Release
Get:11 https://deb.nodesource.com jessie/main Translation-en_US [162 B]
Get:12 https://deb.nodesource.com jessie/main Translation-en [162 B]
Get:13 https://archive.serverdensity.com all/main Translation-en [303 B]
Hit http://debian.mirrors.ovh.net jessie/main Sources
Hit http://debian.mirrors.ovh.net jessie/main amd64 Packages
Get:14 https://archive.serverdensity.com all/main Translation-en_US [303 B]
Hit http://debian.mirrors.ovh.net jessie/main Translation-en
Get:15 https://deb.nodesource.com jessie/main Translation-en_US [162 B]
Get:16 https://deb.nodesource.com jessie/main Translation-en [162 B]
Get:17 https://archive.serverdensity.com all/main Translation-en [303 B]
Get:18 https://archive.serverdensity.com all/main Translation-en_US [303 B]
Get:19 https://deb.nodesource.com jessie/main Translation-en_US [162 B]
Ign https://deb.nodesource.com jessie/main Translation-en_US
Get:20 https://deb.nodesource.com jessie/main Translation-en [162 B]
Ign https://deb.nodesource.com jessie/main Translation-en
Get:21 https://archive.serverdensity.com all/main Translation-en [303 B]
Get:22 https://archive.serverdensity.com all/main Translation-en_US [303 B]
Get:23 https://archive.serverdensity.com all/main Translation-en [303 B]
Get:24 https://archive.serverdensity.com all/main Translation-en_US [303 B]
Ign https://archive.serverdensity.com all/main Translation-en_US
Get:25 https://archive.serverdensity.com all/main Translation-en [303 B]
Ign https://archive.serverdensity.com all/main Translation-en
Fetched 93.0 kB in 2s (33.7 kB/s)
Reading package lists... Done
$ sudo apt-get install salt-minion
Reading package lists... Done
Building dependency tree
Reading state information... Done
salt-minion is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
$ sudo systemctl restart salt-minion
# return code 0, it worked ;)
$ salt-call --versions-report
Salt Version:
Salt: 2016.3.3
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 2.5.3
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.8
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: Not Installed
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.4.7
mysql-python: 1.2.3
pycparser: Not Installed
pycrypto: 2.6.1
pygit2: Not Installed
Python: 2.7.9 (default, Jun 29 2016, 13:08:31)
python-gnupg: 0.3.8
PyYAML: 3.11
PyZMQ: 15.2.0
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.3
ZMQ: 4.1.2
System Versions:
dist: debian 8.7
machine: x86_64
release: 3.16.0-4-amd64
system: Linux
version: debian 8.7
Still 2016.3.3
!
salt-minion binary isn't some weird symlink to somewhere else.
$ which salt-minion
/usr/local/bin/salt-minion
$ ls -la /usr/local/bin/salt-minion | grep salt-minion
-rwxr-xr-x 1 root staff 944 Sep 19 20:44 /usr/local/bin/salt-minion
➜ ~ sudo dpkg-query -l 'salt*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=======================-================-================-====================================================
ii salt-common 2016.11.1+ds-1 all shared libraries that salt requires for all packages
ii salt-minion 2016.11.1+ds-1 all client package for salt, the distributed remote exec
So what finally worked for me was to do it by hand from git and not using package manager nor bootstrap script:
🎉