Posts tagged "saltstack"

Minion did not return. [No response]

There are multiple reasons why your minion did not return.
Hereby a couple checks you can do for troubleshooting your Salt – minion configuration.

First, check if your minion is running.

On unix:
systemctl status salt-minion
On Windows:
Check it with services.msc

Second, check if you can resolve the salt master.

If not, add to dns or hostfile

Tirth, check your firewall.

On both master and minion.

Fourth, check if you can ping your minion.

salt VM01

If not..
Then mostly increasing the timeout value of salt master fix it
Sudo nano /etc/salt/master
Search for timeout

Increase it to for example 60

Restart your salt-master.
sudo pkill salt-master
sudo salt-master -d

Fifth, reinstall your minion.

If you have other options then this, be free to comment 😊

Create Windows user using SALTstack

The first thing i did using salt stack was creating a local windows user. Creating users on different OS builds are fully supported by using the built-in salt functions.

First create a mapping in your top.sls config which point to your Windows state directory.

Sample config in top.sls Defining 2 hostnames, one with a wildcard for matching a server group.

Content of the win_generic.sls

In this example I use pillar for securing passwords. If you don’t use pillar, just use a plain text password in the password field.
Ill write a blog article how to use Pillar in SALT.