I’m poking around with RancherOS and I’m building a “provision script” that I pass into the Droplet creation user data. However, instead of destroying the Droplet every time I need to fix my script, I would like to know if there is a way to inject new user data in the rebuild process. This would prevent allowing a new IP address, and so on.
Thanks,
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
you could run your provision script on the host directly to test it out. For the most part it will ignore / pass over steps it has already completed. Keep in mind this is only best used for initial scripting and setup/debugging.
You may want to use something like Terraform to automate the creation/destruction of your droplet which can also load your user-data - https://www.terraform.io/docs/providers/do/index.html
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.