ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Saltstack Query

    Scheduled Pinned Locked Moved IT Discussion
    salt saltstack
    29 Posts 5 Posters 1.9k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller @roninmage
      last edited by

      @roninmage said in 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?

      Salt command run against the Minions. The master might be one of the minions, but also may not be.

      R 1 Reply Last reply Reply Quote 0
      • R
        roninmage @scottalanmiller
        last edited by

        @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?

        DustinB3403D scottalanmillerS 2 Replies Last reply Reply Quote 0
        • DashrenderD
          Dashrender
          last edited by

          Does the SaltMaster maintain a list of all the minions?

          scottalanmillerS 1 Reply Last reply Reply Quote 0
          • DustinB3403D
            DustinB3403 @roninmage
            last edited by

            @roninmage it shouldn't just abort, instead it tells every minion to report back.

            How many minions do you have?

            R 1 Reply Last reply Reply Quote 0
            • DustinB3403D
              DustinB3403
              last edited by

              @roninmage run this to list all minions

              salt-run manage.up

              1 Reply Last reply Reply Quote 0
              • R
                roninmage @DustinB3403
                last edited by

                @DustinB3403 Somewhere from 350 - 500

                DustinB3403D 1 Reply Last reply Reply Quote 0
                • DustinB3403D
                  DustinB3403 @roninmage
                  last edited by

                  @roninmage said in Saltstack Query:

                  @DustinB3403 Somewhere from 350 - 500

                  Does the output you received have your minion list? You said "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)."

                  1 Reply Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller @roninmage
                    last edited by

                    @roninmage said in 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?

                    Yes, it only tries for so long, but it can be a while.

                    1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller @Dashrender
                      last edited by

                      @Dashrender said in Saltstack Query:

                      Does the SaltMaster maintain a list of all the minions?

                      Yes, it has to, or else it couldn't reach them.

                      R 1 Reply Last reply Reply Quote 0
                      • R
                        roninmage @scottalanmiller
                        last edited by

                        @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.

                        scottalanmillerS DustinB3403D 2 Replies Last reply Reply Quote 3
                        • scottalanmillerS
                          scottalanmiller @roninmage
                          last edited by

                          @roninmage said in 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.

                          No problem. Glad that we could help.

                          1 Reply Last reply Reply Quote 0
                          • DustinB3403D
                            DustinB3403 @roninmage
                            last edited by

                            @roninmage are you responding to Scott or me?

                            R 1 Reply Last reply Reply Quote 0
                            • R
                              roninmage @DustinB3403
                              last edited by

                              @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.

                              DustinB3403D 1 Reply Last reply Reply Quote 0
                              • DustinB3403D
                                DustinB3403 @roninmage
                                last edited by

                                @roninmage ah I was very confused based on your replies.

                                1 Reply Last reply Reply Quote 0
                                • 1
                                • 2
                                • 2 / 2
                                • First post
                                  Last post