DO Ideas 2

Allow Droplets to be automatically bootstrapped with Chef

It would be *sick* if it were possible to have systems be automatically bootstrapped with Chef upon creation. e.g. Users could set up recipes and roles in the DO control panel somehow, and then pick a role to automatically create a Droplet from.

Additionally, users could share their Chef stuff with each other, which would allow everyone to benefit from the magical auto-provisioning. And, it's more transparent than allowing users to share pre-built images, since anyone can inspect the code for the Chef recipes before using them to provision a Droplet.

Or, even better than managing Chef stuff through the DO control panel, it would be great if I could just give a URL to a GitHub repo containing the recipes/roles, and then the Droplet would automatically pull down this repo and bootstrap itself with the desired role(s).

  • Cody Krieger
  • Sep 11 2018
  • Attach files
  • Moisey Uretsky commented
    September 11, 2018 19:29

    We haven't opened up custom iso imports but we will look into importing bitnami images.

  • Naushad Shaikh commented
    September 11, 2018 19:29

    Can we directly import from one of the amazing Bitnami images ?

  • Kyle Eby commented
    September 11, 2018 19:29

    A LEMP stack with cpanel would be sweet!

  • Vincent Gijsen commented
    September 11, 2018 19:29

    The way we use Chef, is from our command line, not a web-gui.

    We've created a simple script which starts a new node using the Digital-ocean API, and uppon node creation, we query the new node's ip-adress, issue the appropriate knife command to bootstrap it, and voila.

    no mouse clicking involved there.

    imho spending time to make this work using a gui, isn't very useful, as most users of chef will typically deploy there own scripts (or variants)

  • Anonymous commented
    September 11, 2018 19:29

    Chef is preferable for myself. Currently using AWS opswork for deploying chef based stacks, would be nice to port some of that stuff to DigitalOcean ;)

  • Tomás Gutiérrez commented
    September 11, 2018 19:29

    Hi all - the beauty of these services is that you can make them agnostic to the API. A friend just told me about DO, and I found this:

    https://github.com/rmoriz/knife-digital_ocean

    Similarly to AWS/RS, you can use knife to bootstrap a droplet and fulfill your DevOps happy bucket.

    Hit me up @togume if you have any questions.

    Have fun, and looking forward to playing with DO.

  • Thomas Le commented
    September 11, 2018 19:29

    Why not have some sort of support to use the bitnami images they have available for free.

  • James Seigel commented
    September 11, 2018 19:29

    To fill out the list, look up sprinkle.

  • Moisey Uretsky commented
    September 11, 2018 19:29

    Fabric is cool but it's been a while since I've heard someone mention it, is it still being widely and actively used or has it been replaced more by puppet/chef?

  • Micheal Cottingham commented
    September 11, 2018 19:29

    If you guys have an infrastructure for Salt (sweet!) or Chef or Puppet so I don't have to build it out, I'd happily pay an extra nominal fee to use it. I started with Fabric because I really don't want to have a master/slave setup with a Puppet or Chef or Salt exposed that can get popped. That's a perfect pivot in to the rest of my architecture ... For now, I'm learning Fabric as it is not a pub/sub but a push arch.

  • Moisey Uretsky commented
    September 11, 2018 19:29

    Hopefully 2-3 months which will overlap either with pre-built images or just stacks that are built atop of chef or puppet for easy roll-out.

  • Jonathan commented
    September 11, 2018 19:29

    Hi Moisey, any idea on an ETA for this? (weeks, months, etc)

  • Moisey Uretsky commented
    September 11, 2018 19:29

    Working on a few of those =]

  • Moisey Uretsky commented
    September 11, 2018 19:29

    Integration with Salt is also coming =]

  • Kenn Ejima commented
    September 11, 2018 19:29

    IMO chef (or puppet) is way too complicated for average VPS users.

    Thus I built Sunzi, which is a super lightweight alternative - it even has official Linode support to setup / teardown VMs from CLI. I'm going to add DigitalOcean support when the API is fully implemented.

    https://github.com/kenn/sunzi

  • Roland Moriz commented
    September 11, 2018 19:29

    You can use my knife plugin to create a droplet and bootstrap it with chef:
    https://github.com/rmoriz/knife-digital_ocean

    (one command with chef-server provisioning, using "knife-solo" it's two commands)

  • Moisey Uretsky commented
    September 11, 2018 19:29

    We're looking into it but definitely months away at this point.

    More likely to be puppet based if it does get rolled out.

  • Ankur Sethi commented
    September 11, 2018 19:29

    If a user is into this, they can create their own image and boot from it. Installing software on base images means they would have to be separate Chef templates.

  • Moisey Uretsky commented
    September 11, 2018 19:29

    We currently do not have this in the pipeline but we do know of a couple of startups that are operating in this space.

    Basically managed Chef/Puppet where you can spin up servers and they will get auto-signed and have that deployed.

    So this may be something that comes together a bit later when we've cleared through a bit more of the infrastructure backlog