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

    Solved SaltStack rename minion ?

    IT Discussion
    salt saltstack rename minion
    5
    13
    5.1k
    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.
    • Emad RE
      Emad R
      last edited by Emad R

      Hi,

      So SaltStack question, how can I rename minion ID after it got registered on the salt master ? I dont think that is possible or is it ?

      For example I have minion with ID 172, and I want to rename it, without uninstalling it from the minion machine and the re-installing with the correct ID, lets say 175. So can this be done remotely from the Master ?

      A 1 Reply Last reply Reply Quote 0
      • A
        Alex Sage @Emad R
        last edited by

        @msff-amman-Itofficer Do you have one administrator username and password across all computers?

        Emad RE 1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller
          last edited by

          have you tried changing the ID setting on the minion? I don't believe that that will rename it on the server after being joined, but it is where you would start.

          dafyreD Emad RE 2 Replies Last reply Reply Quote 0
          • dafyreD
            dafyre @scottalanmiller
            last edited by

            @scottalanmiller said in SaltStack rename minion ?:

            have you tried changing the ID setting on the minion? I don't believe that that will rename it on the server after being joined, but it is where you would start.

            @scottalanmiller -- are you talking about the /etc/salt/minion_id file ?

            scottalanmillerS Emad RE 2 Replies Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller @dafyre
              last edited by

              @dafyre said in SaltStack rename minion ?:

              @scottalanmiller said in SaltStack rename minion ?:

              have you tried changing the ID setting on the minion? I don't believe that that will rename it on the server after being joined, but it is where you would start.

              @scottalanmiller -- are you talking about the /etc/salt/minion_id file ?

              There is an id field in the minion file.

              1 Reply Last reply Reply Quote 1
              • Emad RE
                Emad R @dafyre
                last edited by

                @dafyre said in SaltStack rename minion ?:

                @scottalanmiller said in SaltStack rename minion ?:

                have you tried changing the ID setting on the minion? I don't believe that that will rename it on the server after being joined, but it is where you would start.

                @scottalanmiller -- are you talking about the /etc/salt/minion_id file ?

                This is located at the minion side not master side

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

                  @msff-amman-Itofficer said in SaltStack rename minion ?:

                  @dafyre said in SaltStack rename minion ?:

                  @scottalanmiller said in SaltStack rename minion ?:

                  have you tried changing the ID setting on the minion? I don't believe that that will rename it on the server after being joined, but it is where you would start.

                  @scottalanmiller -- are you talking about the /etc/salt/minion_id file ?

                  This is located at the minion side not master side

                  Correct

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

                    @scottalanmiller said in SaltStack rename minion ?:

                    have you tried changing the ID setting on the minion? I don't believe that that will rename it on the server after being joined, but it is where you would start.

                    I know I can change it from the minion side, but I wondered if it can be done from the master side

                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                    • Emad RE
                      Emad R @Alex Sage
                      last edited by

                      @aaronstuder said in SaltStack rename minion ?:

                      @msff-amman-Itofficer Do you have one administrator username and password across all computers?

                      Currently no, but if you have an idea share it as well, cause I can create 1 user account and 1 password across all computers using salt master

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

                        @msff-amman-Itofficer said in SaltStack rename minion ?:

                        @scottalanmiller said in SaltStack rename minion ?:

                        have you tried changing the ID setting on the minion? I don't believe that that will rename it on the server after being joined, but it is where you would start.

                        I know I can change it from the minion side, but I wondered if it can be done from the master side

                        You can change the Minion side from the Master 😉

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

                          Lots of votes for this feature. but it does not appear to have been implemented.

                          https://github.com/saltstack/salt/issues/6896

                          1 Reply Last reply Reply Quote 1
                          • scottalanmillerS
                            scottalanmiller
                            last edited by

                            https://groups.google.com/forum/#!msg/salt-users/tOVaIF_KlPo/ZOBAdjjOkTIJ

                            1 Reply Last reply Reply Quote 1
                            • travisdh1T
                              travisdh1
                              last edited by

                              Not having used salt yet myself, couldn't you set the contents of that file using the Salt Master?

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