DO Ideas 2

Add an option for destroying/creating a range of servers in one command + API support

When I have 40-50 servers using a naming convention such as foo000-foo050 I want to destroy these servers using one command.

I would also want an option for recreating the servers as well.

We use remote SSH scripts to configure the server for puppet and then puppet to configure the server. So if we have an option to bring down and bring up servers with different personalities for different job types through an API that would be great.

We can donate the puppet and ssh dev ops code.

  • Derek Pappas
  • Sep 11 2018
  • Will not implement
  • Attach files
  • Moisey Uretsky commented
    September 11, 2018 18:54

    The way the API is created isn't to serve a specific use case such as destroying 50 servers at once, but instead to provide the most basic building blocks that you could script around.

    Otherwise we would end up with 100s of use case specific commands, but iterating through a loop and calling a destroy command via the API should be rather easy to put together.

    In regards to creating servers you may want to look into creating a base image that you like with your most commonly used applications pre-installed and then you can create new servers from that snapshot.