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

    Unsolved Next steps with SaltStack

    IT Discussion
    salt salt stack salt minion salt master
    5
    6
    1.0k
    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.
    • JaredBuschJ
      JaredBusch
      last edited by

      So, I have a Salt master running.
      I have Minions connected.

      So, before it gets complicated, what is a good way to handle things?

      Do I need to make groups for assigning things?

      I need some systems, not domain joined to have the admin accounts configured.

      I need domain joined systems to be left alone.

      I need to install printers by group or maybe by device.

      Etc.

      What would be a good way to get that going?

      I know there is no one way to do everything. But I want some opinions.

      Emad RE 1 Reply Last reply Reply Quote 2
      • black3dynamiteB
        black3dynamite
        last edited by black3dynamite

        Nodegroups is what I would use.
        https://docs.saltstack.com/en/latest/topics/targeting/nodegroups.html

        There's also some good best practices points like

        • Structuring States and Formulas
        • Structuring Pillar Files
        • Storing Secure Data

        https://docs.saltstack.com/en/latest/topics/best_practices.html

        1 Reply Last reply Reply Quote 2
        • wrx7mW
          wrx7m
          last edited by wrx7m

          I have had the same questions. Will check out Nodegroups, as @black3dynamite suggested.

          1 Reply Last reply Reply Quote 0
          • JaredBuschJ
            JaredBusch
            last edited by

            So looking at scheduling chocolatey updates with salt..

            This makes it clear that it is pretty straightforward to schedule a task.
            https://docs.saltstack.com/en/latest/ref/states/all/salt.states.schedule.html

            Has anyone used salt to run choco update all -y on a schedule like this?

            M 1 Reply Last reply Reply Quote 2
            • M
              marcinozga @JaredBusch
              last edited by

              @JaredBusch said in Next steps with SaltStack:

              So looking at scheduling chocolatey updates with salt..

              This makes it clear that it is pretty straightforward to schedule a task.
              https://docs.saltstack.com/en/latest/ref/states/all/salt.states.schedule.html

              Has anyone used salt to run choco update all -y on a schedule like this?

              Not salt, but I used https://chocolatey.org/packages/choco-upgrade-all-at which creates the same task, that runs choco upgrade all -y. If salt is using windows task scheduler, then it should just work.

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

                @JaredBusch

                Hi

                Play with this :

                https://docs.saltstack.com/en/latest/ref/states/all/salt.states.win_lgpo.html

                If you have windows minions and set it to run every 30/60/90 mins, and BAM you have AD without MS BS

                While you can use salt grains to target OSes, I like to diffrentiate them with good naming system:

                WIN.001
                LIN.001
                SRV.001

                You might ask how to differentiate between windows SRV and Linux SRV, well frankly my dear i dont give damn, and i dont run Windows servers.

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