@scottalanmiller OK, my screw-up. I just found out there are two saltmasters. One for Windows systems and the other for Linux boxes. That explains things. Only about 150 Windows systems. That may be all I need to address. I ran the command on the Windows saltmaster and have a nice list to work with. I appreciate all the help guys. This would have taken me many hours without your assistance.
Best posts made by roninmage
-
RE: Saltstack Query
-
Saltstack Query
I am a Windows Network Engineer but my company has Saltmaster installed on a Linux box (Ubuntu). I am comfortable using Linux, but not as proficiently as Windows. The Saltmaster manages both Windows and Linux minions. Our Linux guy has moved on to greener pastures so I have been tasked with "querying the salt master for a list of all machines that have a specific pkg installed" Since I don't know anything about Salt, I spent hours researching installation and configuration without finding any useful information. I thought it would be stored on a SQL db where I could just build a query for what I need but the system reports no SQL installed.
How do I get Saltmaster to give me a list of computers with a specific program (pkg) installed? Anyone here proficient with Salt?
-
RE: Saltstack Query
@DustinB3403 Damn, I was trying too hard. I can use that and filter through grep. Thanks DustinB3403!
Latest posts made by roninmage
-
RE: Saltstack Query
@DustinB3403 Both, you both made my life a lot easier this week. I have a handle on the problem now and should have this completed tomorrow. I appreciate it.
-
RE: Saltstack Query
@scottalanmiller OK, my screw-up. I just found out there are two saltmasters. One for Windows systems and the other for Linux boxes. That explains things. Only about 150 Windows systems. That may be all I need to address. I ran the command on the Windows saltmaster and have a nice list to work with. I appreciate all the help guys. This would have taken me many hours without your assistance.
-
RE: Saltstack Query
@scottalanmiller OK, I see what is happening; I have a very complete list of installed software but only a few of the minions. The last three minion names did not respond (probably turned off). Does the command abort after a certain number of failures?
-
RE: Saltstack Query
@DustinB3403 The problem is that this command pulls information on pkgs installed on the saltmaster. I would need to go to each of 200 machines and run it to get that machines software list unless there is a way to direct that command to a list of minions. Then I could produce a list of all minions and create a for loop to query each one and output results to a text file, or am I overthinking again?
-
RE: Saltstack Query
@scottalanmiller That make more sense. So my saltmaster may be in control but it needs to pull specific information on configuration directly from the minions. That explains why I couldn't find the database. I appreciate the clarity.
-
RE: Saltstack Query
@DustinB3403 Damn, I was trying too hard. I can use that and filter through grep. Thanks DustinB3403!
-
Saltstack Query
I am a Windows Network Engineer but my company has Saltmaster installed on a Linux box (Ubuntu). I am comfortable using Linux, but not as proficiently as Windows. The Saltmaster manages both Windows and Linux minions. Our Linux guy has moved on to greener pastures so I have been tasked with "querying the salt master for a list of all machines that have a specific pkg installed" Since I don't know anything about Salt, I spent hours researching installation and configuration without finding any useful information. I thought it would be stored on a SQL db where I could just build a query for what I need but the system reports no SQL installed.
How do I get Saltmaster to give me a list of computers with a specific program (pkg) installed? Anyone here proficient with Salt?