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

    The differences between how Salt and Ansible manage Windows

    IT Discussion
    salt ansible
    2
    6
    628
    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.
    • F
      flaxking
      last edited by flaxking

      I've never used Ansible, but I was looking through the source code today and discovered how fundamentally different it's approach to managing Windows is from Salt.

      In order for Salt states/modules to manage windows it heavily utilizes pywin32, which is a project that is a valiant effort to expose Windows APIs to python. It look like it relies on C++ for some of it's backend.

      Ansible uses powershell. It's all in ps1 files, with some snippets written in C# and embedded into the powershell script. Since it's using Powershell, this allows Ansible to tap into .Net, which gives it a development edge on Salt. They can utilize the .Net classes and Powershell commands already created for supporting Windows. Although coding in Powershell looks very ugly.

      scottalanmillerS 1 Reply Last reply Reply Quote 3
      • scottalanmillerS
        scottalanmiller @flaxking
        last edited by

        @flaxking said in The differences between how Salt and Ansible manage Windows:

        Ansible uses powershell. It's all in ps1 files, with some snippets written in C# and embedded into the powershell script. Since it's using Powershell, this allows Ansible to tap into .Net, which gives it a development edge on Salt. They can utilize the .Net classes and Powershell commands already created for supporting Windows. Although coding in Powershell looks very ugly.

        Does this mean that Salt handles older Windows better, because in the SMB we still see a lot of pre-PS Windows machines.

        F 1 Reply Last reply Reply Quote 0
        • F
          flaxking @scottalanmiller
          last edited by

          @scottalanmiller said in The differences between how Salt and Ansible manage Windows:

          @flaxking said in The differences between how Salt and Ansible manage Windows:

          Ansible uses powershell. It's all in ps1 files, with some snippets written in C# and embedded into the powershell script. Since it's using Powershell, this allows Ansible to tap into .Net, which gives it a development edge on Salt. They can utilize the .Net classes and Powershell commands already created for supporting Windows. Although coding in Powershell looks very ugly.

          Does this mean that Salt handles older Windows better, because in the SMB we still see a lot of pre-PS Windows machines.

          Since Ansible currently has Powershell 3 and .Net 4.0 as dependencies for using on Windows, pre-powershell would be a problem.

          F scottalanmillerS 2 Replies Last reply Reply Quote 0
          • F
            flaxking @flaxking
            last edited by

            @flaxking said in The differences between how Salt and Ansible manage Windows:

            @scottalanmiller said in The differences between how Salt and Ansible manage Windows:

            @flaxking said in The differences between how Salt and Ansible manage Windows:

            Ansible uses powershell. It's all in ps1 files, with some snippets written in C# and embedded into the powershell script. Since it's using Powershell, this allows Ansible to tap into .Net, which gives it a development edge on Salt. They can utilize the .Net classes and Powershell commands already created for supporting Windows. Although coding in Powershell looks very ugly.

            Does this mean that Salt handles older Windows better, because in the SMB we still see a lot of pre-PS Windows machines.

            Since Ansible currently has Powershell 3 and .Net 4.0 as dependencies for using on Windows, pre-powershell would be a problem.

            And I could certainly see them wanting to increase those requirements in the near future

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

              @flaxking said in The differences between how Salt and Ansible manage Windows:

              @scottalanmiller said in The differences between how Salt and Ansible manage Windows:

              @flaxking said in The differences between how Salt and Ansible manage Windows:

              Ansible uses powershell. It's all in ps1 files, with some snippets written in C# and embedded into the powershell script. Since it's using Powershell, this allows Ansible to tap into .Net, which gives it a development edge on Salt. They can utilize the .Net classes and Powershell commands already created for supporting Windows. Although coding in Powershell looks very ugly.

              Does this mean that Salt handles older Windows better, because in the SMB we still see a lot of pre-PS Windows machines.

              Since Ansible currently has Powershell 3 and .Net 4.0 as dependencies for using on Windows, pre-powershell would be a problem.

              Not a huge deal, but potentially limiting for a while.

              1 Reply Last reply Reply Quote 0
              • F
                flaxking
                last edited by

                I should give Ansible a go one of these days, because whenever I research it, it seems to fall short of Salt, but it would be nice to really have concrete experience of how it falls short.

                My current thinking is that if there's a windows feature that Ansible that Salt doesn't, I could probably just grab the powershell script + any dependent scripts and create Salt state/module wrappers around it.

                Alternatively, Salt can run Ansible playbooks on minions, but the wrapper approach is more minimalist (don't have to install Ansible on each minion) and keeps secret security simpler.

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