Category "salt-stack"

In salt states, we use "grains.host" to get the host details. How do we get the AWS EC2 availability zone name using salt grains?

In salt states, we use "grains.host" to get the host details. How do we get the AWS EC2 availability zone name using salt grains? To get the hostname I give the

check if file exists in salt file system salt://

I would like to check if a file exist in salt file system (salt://) and add an instruction depending on that. I precise that I use gitfs as a mount point in th