Quote Originally Posted by TFP_nzqa View Post
I get the error of " Cannot read/write '/var/lib/salt/.ssh/known_hosts" when i try to add (bootstrap) a machine.
Maybe the easiest way to solve this, to check if your system has all the permissions like it should have.
If not, please change them.

How it should be:

drwxr-xr-x 3 salt salt /var/lib/
drwx------ 2 salt salt /var/lib/.ssh/
-rw-r--r-- 1 salt salt /var/lib/salt/.ssh/known_hosts

Please check also /etc/sudoers.d/ . There should be only 1 file called spacewalk and it should contain,
beside of others, the following line:

tomcat ALL=(root) NOPASSWD: /usr/bin/ls -la /var/lib/salt/.ssh/known_hosts