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

    Opinions: Ansible vs. SaltStack

    Scheduled Pinned Locked Moved IT Discussion
    devopsansiblesaltautomationsaltstack
    88 Posts 17 Posters 10.3k 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.
    • stacksofplatesS
      stacksofplates
      last edited by

      I think you know mine. I've never used Salt. The thing that I find awesome with Ansible, is I can install Ansible with Ansible (and provision ansible-pull from push). I think the biggest plus for Ansible is the number of modules they have. 944 in this list http://docs.ansible.com/ansible/list_of_all_modules.html

      They also have a new one that deals just with containers and no SSH. https://www.ansible.com/ansible-container

      There is also an LXC module that will run commands in an LXC container from the host.

      Tower is supposed to be open sourced this year. I've been using ansible-pull, but I'd like to switch back to push because I've lost the ability to run playbooks with things like tags easily. It also has awesome central auditing.

      scottalanmillerS 1 Reply Last reply Reply Quote 1
      • stacksofplatesS
        stacksofplates
        last edited by

        Plus the ansible-galaxy init function is awesome. No more manually making the directories and yml files for the roles.

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

          @stacksofplates said in Opinions: Ansible vs. Salt:

          Tower is supposed to be open sourced this year.

          I was looking at that, any guess as to a time frame?

          stacksofplatesS 1 Reply Last reply Reply Quote 0
          • stacksofplatesS
            stacksofplates @scottalanmiller
            last edited by

            @scottalanmiller said in Opinions: Ansible vs. Salt:

            @stacksofplates said in Opinions: Ansible vs. Salt:

            Tower is supposed to be open sourced this year.

            I was looking at that, any guess as to a time frame?

            Someone on Reddit said they were talking with a dev and it was supposed to be the end of Q1, but I'm skeptical. I don't remember where I saw it on there.

            I'm assuming it will be an upstream like all of their other products, so I don't know what it will and won't include also.

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

              Q1 isn't for too much longer. Would be nice to get to really try it out.

              stacksofplatesS 1 Reply Last reply Reply Quote 0
              • stacksofplatesS
                stacksofplates @scottalanmiller
                last edited by

                @scottalanmiller said in Opinions: Ansible vs. Salt:

                Q1 isn't for too much longer. Would be nice to get to really try it out.

                Ya I have it here at home and it's really nice for the couple machines I've tested it on.

                1 Reply Last reply Reply Quote 0
                • matteo nunziatiM
                  matteo nunziati @scottalanmiller
                  last edited by matteo nunziati

                  On my side I've used Ansible a bit just for a small activity - more of a test- just because the learning curve is smoother: Salt has a more enterprise approach since day-0, which is not something I was in search for at the time.

                  @scottalanmiller have you seen this? It is not the first time I listen to people who dislikes the community support on ansible.
                  Complains about community/support are not to be neglectable to me, when we talk about community supported SW.

                  It is basically about the scale of your job: do simple/small things, even if a lot: go ansible, maybe slower but easier to start with and poke around. If performance is a major hit and/or you are going to run complex devoperated networks of servers then Salt is a better investment in the long run.

                  scottalanmillerS stacksofplatesS 2 Replies Last reply Reply Quote 0
                  • scottalanmillerS
                    scottalanmiller @matteo nunziati
                    last edited by

                    @matteo-nunziati interesting take. I wonder if the new Red Hat governance will change that?

                    I also have a certain affinity for Salt as one of the code contributors is a friend of mine.

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

                      One thing that I like about Salt is the agent model. No open ports for management, at all. Pure "reach out" for added security.

                      1 Reply Last reply Reply Quote 0
                      • stacksofplatesS
                        stacksofplates @matteo nunziati
                        last edited by stacksofplates

                        @matteo-nunziati I saw that post before, and actually commented on it. They aren't leveraging tags at all from what it seems like. A lot of people have a full run and then after the full run, if you're just doing CM, they set up tags for configuration.

                        It's also 3 years old using Ansible 1.6, and is now currently on 2.2. There were a lot of big changes going to 2. Ansible-pull wasn't as mature as it is now.

                        Like I've said other places, I don't put much stock in community complaints. The second one he mentions about the lib/library, I don't see why they should change the whole structure for that one person. If he is the only one that has complained, I don't see that as rude.

                        I don't think it's slow at all. I've run both Puppet and Ansible and they seem pretty comparable.

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

                          @stacksofplates said in Opinions: Ansible vs. Salt:

                          I don't think it's slow at all. I've run both Puppet and Ansible and they seem pretty comparable.

                          Not necessarily a good comparison, Puppet is one of the slow ones that Salt specifically was designed to address. Not saying Ansible is slow, I don't know. I just know that Salt was specifically designed to be fast because Puppet was so slow.

                          stacksofplatesS 1 Reply Last reply Reply Quote 1
                          • stacksofplatesS
                            stacksofplates @scottalanmiller
                            last edited by stacksofplates

                            @scottalanmiller said in Opinions: Ansible vs. Salt:

                            @stacksofplates said in Opinions: Ansible vs. Salt:

                            I don't think it's slow at all. I've run both Puppet and Ansible and they seem pretty comparable.

                            Not necessarily a good comparison, Puppet is one of the slow ones that Salt specifically was designed to address. Not saying Ansible is slow, I don't know. I just know that Salt was specifically designed to be fast because Puppet was so slow.

                            I have seen it be really slow. I don't like saying one is faster than the other with anecdotal evidence, that's why I worded it that way. So with that said:

                            I've found Ansible to be faster in a lot of areas (again anecdotal). It also depends on how you're running. Pull is faster than push. I mistakenly said in another area it SSHs into the local machine, but it has a local connection that you specify. If you are doing push you still do the local machine with the local connection. You can also cache facts which speeds things up. My stuff checks in every 10 minutes and on a no change run it takes about 10-20 seconds, and we do all of our SCAP hardening with it. We don't really do users and groups, that's all through LDAP, but I have done it and it didn't seem slow at all.

                            1 Reply Last reply Reply Quote 0
                            • matteo nunziatiM
                              matteo nunziati
                              last edited by matteo nunziati

                              tbh I think that speed really matters only after you scale a bit. having to administer a few tens of VM is not so influenced by speed. having to manage few hundreds is a different thing.

                              I've choosed ansible in the past because you have less stuff to learn at first and I prefer the no-agent approach (and usually I have an ssh connection open anyway). but my needs are really limited.

                              btw, zeromq is the fastest thing you can have in the python world, so if speed really matters, there is no other solution than salt.

                              1 Reply Last reply Reply Quote 0
                              • stacksofplatesS
                                stacksofplates
                                last edited by

                                I have different separate networks but each has a little less than 100 machines (physical and virtual) and they are all managed with Ansible. Even with full changes the playbooks take less than a minute.

                                Pipelining also drastically improves speed. You have to disable requiretty (which is arguable in its adding security anyway).

                                One thing that would be nice is central reporting for ansible-pull logs.

                                1 Reply Last reply Reply Quote 0
                                • RomoR
                                  Romo
                                  last edited by

                                  @stacksofplates Doesn't the use of tags allow for writing tasks that are not idempotent and this is not recommended?

                                  stacksofplatesS 1 Reply Last reply Reply Quote 1
                                  • stacksofplatesS
                                    stacksofplates @Romo
                                    last edited by

                                    @Romo said in Opinions: Ansible vs. Salt:

                                    @stacksofplates Doesn't the use of tags allow for writing tasks that are not idempotent and this is not recommended?

                                    They're still idempotent. But you just don't include the installation of the application if it's just configuration. You don't have to do that, and it might not save that much time.

                                    However, its really nice for dev machines to make sure something is running properly.

                                    1 Reply Last reply Reply Quote 2
                                    • momurdaM
                                      momurda
                                      last edited by

                                      learned a new English word today.

                                      1 Reply Last reply Reply Quote 0
                                      • ObsolesceO
                                        Obsolesce
                                        last edited by

                                        I found a more up to date (march of 2017) article doing a good SaltStack vs Ansible comparison.

                                        https://www.upguard.com/articles/saltstack-vs-ansible-revisited

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

                                          @scottalanmiller

                                          I think SS works better under Windows, especially the ready modules for RDP/local group policy, and the installer, so they are targeting that better.

                                          1 Reply Last reply Reply Quote 2
                                          • F
                                            flaxking @Obsolesce
                                            last edited by

                                            @tim_g said in Opinions: Ansible vs. SaltStack:

                                            I found a more up to date (march of 2017) article doing a good SaltStack vs Ansible comparison.

                                            https://www.upguard.com/articles/saltstack-vs-ansible-revisited

                                            I didn't find this article particularly useful.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 1 / 5
                                            • First post
                                              Last post