博文

目前显示的是 七月, 2024的博文

cloud-init和rc.local

What is cloud-init? Cloud-init is a service that customizes Linux-based cloud servers. It's supported by most Linux distributions and public cloud vendors , and it's the industry standard to initialize cloud virtual machines. Canonical created cloud-init more than a decade ago for Ubuntu, and since then, all major public clouds and most Linux distributions have added support for cloud-init.  Advantages of cloud-init You'll discover several advantages when you start using cloud-init. First, it's portable. If you developed scripts at another public cloud, you could deploy those at Vultr without changes. You can also do many things with cloud-init that aren't easy to do with imageboot scripts , like: You can override Vultr's vendor-data with your user-data . You can inject shell scripts that run once per boot or once per instance. You have advanced logging and debugging tools with cloud-init analyze . It's easy to reset an instance and run clou...