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

    Automation with Ansible, Salt etc - at what point?

    Scheduled Pinned Locked Moved IT Discussion
    24 Posts 6 Posters 1.0k 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.
    • 1
      1337
      last edited by

      When does it makes sense to start using automation tools such as ansible, saltstack etc?

      Is it when you have enough machines (VMs, containes etc) so the work to automate is less than the work to do the same repetitive things over and over?

      Does it make sense for 10, 50, 100 VMs/containers or when?

      scottalanmillerS 1 Reply Last reply Reply Quote 0
      • black3dynamiteB
        black3dynamite
        last edited by black3dynamite

        Even with one client or server, I'll still use Salt or Ansible.

        stacksofplatesS scottalanmillerS 2 Replies Last reply Reply Quote 2
        • black3dynamiteB
          black3dynamite
          last edited by

          I do have a few Salt SLS configurations and Ansible playbooks for deploying chocolatey packages to Windows clients.

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

            @black3dynamite said in Automation with Ansible, Salt etc - at what point?:

            Even with one client or server, I'll still use Salt or Ansible.

            I agree. I'd use it even with only one.

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

              I would say once you have a solid skill set, then yes, even with only one machine.

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

                @pete-s said in Automation with Ansible, Salt etc - at what point?:

                When does it makes sense to start using automation tools such as ansible, saltstack etc?

                Nearly always, IMHO. The real question, I think, should be reversed....

                In what scenarios would we want to do something different?

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

                  @black3dynamite said in Automation with Ansible, Salt etc - at what point?:

                  Even with one client or server, I'll still use Salt or Ansible.

                  Exactly. If you are able to do it, it's just the better approach.

                  1 Reply Last reply Reply Quote 1
                  • 1
                    1337
                    last edited by 1337

                    Alright, if you guys says so I guess I better get around to it.
                    Ansible seems to be the least complicated to get started with so I guess that'll be as good as anything.

                    I have a lot of VM hosts and guest to set up as well as a way to do changes and keep everything updated and patched. So I might as well start with it from scratch.

                    Would it be very hard to write something that could mount an iso using ipmi, power up the server over ipmi, install xenserver, set up networks and storages, then install a few different guest VMs with some different packages?

                    scottalanmillerS stacksofplatesS black3dynamiteB 4 Replies Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller @1337
                      last edited by

                      @pete-s said in Automation with Ansible, Salt etc - at what point?:

                      Ansible seems to be the least complicated to get started with so I guess that'll be as good as anything.

                      Syntactically yes.

                      Salt has the simpler architecture, because it is clients reaching the server, not the server reaching the clients.

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

                        @pete-s said in Automation with Ansible, Salt etc - at what point?:

                        Would it be very hard to write something that could mount an iso using ipmi, power up the server over ipmi, install xenserver, set up networks and storages, then install a few different guest VMs with some different packages?

                        Sounds like MaaS.

                        Teraform is probably the best tool for this.

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

                          @pete-s said in Automation with Ansible, Salt etc - at what point?:

                          Alright, if you guys says so I guess I better get around to it.
                          Ansible seems to be the least complicated to get started with so I guess that'll be as good as anything.

                          I have a lot of VM hosts and guest to set up as well as a way to do changes and keep everything updated and patched. So I might as well start with it from scratch.

                          Would it be very hard to dwrite something that could mount an iso using ipmi, power up the server over ipmi, install xenserver, set up networks and storages, then install a few different guest VMs with some different packages?

                          Ansible has a module that interfaces with iLO and boot from whatever you tell it to. Installing xenserver might be difficult (I've not tried that) but still my last job Ansible built the kickstart for each system and when we PXE booted the boxes were kick-started and Ansible built the rest.

                          1 Reply Last reply Reply Quote 2
                          • 1
                            1337 @scottalanmiller
                            last edited by 1337

                            @scottalanmiller said in Automation with Ansible, Salt etc - at what point?:

                            @pete-s said in Automation with Ansible, Salt etc - at what point?:

                            Would it be very hard to write something that could mount an iso using ipmi, power up the server over ipmi, install xenserver, set up networks and storages, then install a few different guest VMs with some different packages?

                            Sounds like MaaS.

                            Teraform is probably the best tool for this.

                            It's for setting up our servers we will put in colocation. There will be twice as many as originally planned, so 20 hardware nodes. 8 of them will run bare metal, maybe with containers, and 12 will run xenserver with an estimated 4 to 8 VMs on each.
                            Some of these will be for production and some for development.

                            I guess I could clone them as well but then we're back to manual operations.

                            1 Reply Last reply Reply Quote 0
                            • black3dynamiteB
                              black3dynamite @1337
                              last edited by

                              @pete-s said in Automation with Ansible, Salt etc - at what point?:

                              Alright, if you guys says so I guess I better get around to it.
                              Ansible seems to be the least complicated to get started with so I guess that'll be as good as anything.

                              I have a lot of VM hosts and guest to set up as well as a way to do changes and keep everything updated and patched. So I might as well start with it from scratch.

                              Would it be very hard to write something that could mount an iso using ipmi, power up the server over ipmi, install xenserver, set up networks and storages, then install a few different guest VMs with some different packages?

                              You can probably setup a network installation using pxe to install XenServer.

                              1 Reply Last reply Reply Quote 0
                              • black3dynamiteB
                                black3dynamite @scottalanmiller
                                last edited by

                                @scottalanmiller said in Automation with Ansible, Salt etc - at what point?:

                                @pete-s said in Automation with Ansible, Salt etc - at what point?:

                                Ansible seems to be the least complicated to get started with so I guess that'll be as good as anything.

                                Syntactically yes.

                                Salt has the simpler architecture, because it is clients reaching the server, not the server reaching the clients.

                                That’s the main thing I like about salt. But damn, if the minion service is hosed for whatever reason can be a real pain.

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

                                  @black3dynamite said in Automation with Ansible, Salt etc - at what point?:

                                  @scottalanmiller said in Automation with Ansible, Salt etc - at what point?:

                                  @pete-s said in Automation with Ansible, Salt etc - at what point?:

                                  Ansible seems to be the least complicated to get started with so I guess that'll be as good as anything.

                                  Syntactically yes.

                                  Salt has the simpler architecture, because it is clients reaching the server, not the server reaching the clients.

                                  That’s the main thing I like about salt. But damn, if the minion service is hosed for whatever reason can be a real pain.

                                  SaltStack can do agentless as well, like Ansible.

                                  black3dynamiteB 1 Reply Last reply Reply Quote 0
                                  • black3dynamiteB
                                    black3dynamite @Obsolesce
                                    last edited by

                                    @obsolesce said in Automation with Ansible, Salt etc - at what point?:

                                    @black3dynamite said in Automation with Ansible, Salt etc - at what point?:

                                    @scottalanmiller said in Automation with Ansible, Salt etc - at what point?:

                                    @pete-s said in Automation with Ansible, Salt etc - at what point?:

                                    Ansible seems to be the least complicated to get started with so I guess that'll be as good as anything.

                                    Syntactically yes.

                                    Salt has the simpler architecture, because it is clients reaching the server, not the server reaching the clients.

                                    That’s the main thing I like about salt. But damn, if the minion service is hosed for whatever reason can be a real pain.

                                    SaltStack can do agentless as well, like Ansible.

                                    Ansible uses winrm to manage Windows. Can Salt do the same? Because Salt agentless uses SSH, so I would need to setup ssh server on Windows.
                                    https://docs.saltstack.com/en/getstarted/ssh/index.html

                                    scottalanmillerS ObsolesceO 2 Replies Last reply Reply Quote 0
                                    • scottalanmillerS
                                      scottalanmiller @black3dynamite
                                      last edited by

                                      @black3dynamite said in Automation with Ansible, Salt etc - at what point?:

                                      @obsolesce said in Automation with Ansible, Salt etc - at what point?:

                                      @black3dynamite said in Automation with Ansible, Salt etc - at what point?:

                                      @scottalanmiller said in Automation with Ansible, Salt etc - at what point?:

                                      @pete-s said in Automation with Ansible, Salt etc - at what point?:

                                      Ansible seems to be the least complicated to get started with so I guess that'll be as good as anything.

                                      Syntactically yes.

                                      Salt has the simpler architecture, because it is clients reaching the server, not the server reaching the clients.

                                      That’s the main thing I like about salt. But damn, if the minion service is hosed for whatever reason can be a real pain.

                                      SaltStack can do agentless as well, like Ansible.

                                      Ansible uses winrm to manage Windows. Can Salt do the same? Because Salt agentless uses SSH, so I would need to setup ssh server on Windows.
                                      https://docs.saltstack.com/en/getstarted/ssh/index.html

                                      Why would you want to do that, though? The agent is the key reason to be on Salt in the first place.

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

                                        If you don't want the agent, why not use Ansible?

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

                                          @black3dynamite said in Automation with Ansible, Salt etc - at what point?:

                                          @obsolesce said in Automation with Ansible, Salt etc - at what point?:

                                          @black3dynamite said in Automation with Ansible, Salt etc - at what point?:

                                          @scottalanmiller said in Automation with Ansible, Salt etc - at what point?:

                                          @pete-s said in Automation with Ansible, Salt etc - at what point?:

                                          Ansible seems to be the least complicated to get started with so I guess that'll be as good as anything.

                                          Syntactically yes.

                                          Salt has the simpler architecture, because it is clients reaching the server, not the server reaching the clients.

                                          That’s the main thing I like about salt. But damn, if the minion service is hosed for whatever reason can be a real pain.

                                          SaltStack can do agentless as well, like Ansible.

                                          Ansible uses winrm to manage Windows. Can Salt do the same? Because Salt agentless uses SSH, so I would need to setup ssh server on Windows.
                                          https://docs.saltstack.com/en/getstarted/ssh/index.html

                                          Oh för Windows no. Definitely use the agent with windows it's way more secure.

                                          1 Reply Last reply Reply Quote 0
                                          • black3dynamiteB
                                            black3dynamite @scottalanmiller
                                            last edited by

                                            @scottalanmiller said in Automation with Ansible, Salt etc - at what point?:

                                            @black3dynamite said in Automation with Ansible, Salt etc - at what point?:

                                            @obsolesce said in Automation with Ansible, Salt etc - at what point?:

                                            @black3dynamite said in Automation with Ansible, Salt etc - at what point?:

                                            @scottalanmiller said in Automation with Ansible, Salt etc - at what point?:

                                            @pete-s said in Automation with Ansible, Salt etc - at what point?:

                                            Ansible seems to be the least complicated to get started with so I guess that'll be as good as anything.

                                            Syntactically yes.

                                            Salt has the simpler architecture, because it is clients reaching the server, not the server reaching the clients.

                                            That’s the main thing I like about salt. But damn, if the minion service is hosed for whatever reason can be a real pain.

                                            SaltStack can do agentless as well, like Ansible.

                                            Ansible uses winrm to manage Windows. Can Salt do the same? Because Salt agentless uses SSH, so I would need to setup ssh server on Windows.
                                            https://docs.saltstack.com/en/getstarted/ssh/index.html

                                            Why would you want to do that, though? The agent is the key reason to be on Salt in the first place.

                                            I'm all good with using the agent. But until I figured out the problem I'm having the agent on my Windows machines, Ansible will be used.

                                            scottalanmillerS ObsolesceO 2 Replies Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post