Cloud configuration - RedCoolBeans/CargOS GitHub Wiki
CargOS can be installed within a cloud environment using the cloud images. Basic support for EC2 compatible configuration is implemented through the special EC2 URL or a configuration drive. The following features are supported in the user-data section (#cloud-config):
- packages
- disable_root
- groups
- users
- bootcmd
- runcmd
- chpasswd
The following features are supported in the meta-data section:
- hostname
- public-keys
An example cloud-config file to setup two users and install some packages.
#cloud-config
users:
- name: johndoe
gecos: John Doe
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
shell: /bin/bash
ssh-authorized-keys:
- ssh-dss AAAAB3NzaC1kc3MAAACBAIcK/p42S0XD8960p//pPbYs1vPdFE1mD6gybdhOKDs0ytjPM6E4XrbgL5wbG8e9vZOwWxbsAY9vPXiMTpW0N3i8geZZtFu7G6KKEUorHUqRKN6M2syVPT3+JX3/gyeImkN9MBtULuyTXxC4USlukTQrTtmWjbfQQFvAiBcW3clxAAAAFQCS0WHnlRbVc7t7XmLRczdeVpd7QQAAAIBvYPsmlqGghqWeVxl/OIydbLEC2YAAhQ0KkraaieeFAGbEkdtNy0MzaWACMzelEbc8TbDwmJtsx2m16RsDLjCWxDlgkG8Gqc2jADfP9E3F1MJ/YaOatoCn9yJYroGs2pGqssJyStRHcCYrQrNu/P/y2TyAGIAJ29KhKgGGROzWGwAAAIBJYtNUOBJP/uhvpwsZh6s2PKEuEab3XF8VRnyseJ67z3O9AOOP+JrsKJ8FIWk2rXgP2ckxn/sQpbI9jCtrIIlPydRDeyEzmGk8MJfwdECI7sO77JmDi7zFdgWQi3ABHeT86nm6ZF/vugTVMKPTTWZuxyXbitDoVqzb8tD/Uf9tlw== johndoe@localhost
- name: johndoejr
gecos: John Doe Jr.
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
shell: /bin/bash
ssh-authorized-keys:
- ssh-dss AAAAB3NzaC1kc3MAAACBAIcK/p42S0XD8960p//pPbYs1vPdFE1mD6gybdhOKDs0ytjPM6E4XrbgL5wbG8e9vZOwWxbsAY9vPXiMTpW0N3i8geZZtFu7G6KKEUorHUqRKN6M2syVPT3+JX3/gyeImkN9MBtULuyTXxC4USlukTQrTtmWjbfQQFvAiBcW3clxAAAAFQCS0WHnlRbVc7t7XmLRczdeVpd7QQAAAIBvYPsmlqGghqWeVxl/OIydbLEC2YAAhQ0KkraaieeFAGbEkdtNy0MzaWACMzelEbc8TbDwmJtsx2m16RsDLjCWxDlgkG8Gqc2jADfP9E3F1MJ/YaOatoCn9yJYroGs2pGqssJyStRHcCYrQrNu/P/y2TyAGIAJ29KhKgGGROzWGwAAAIBJYtNUOBJP/uhvpwsZh6s2PKEuEab3XF8VRnyseJ67z3O9AOOP+JrsKJ8FIWk2rXgP2ckxn/sQpbI9jCtrIIlPydRDeyEzmGk8MJfwdECI7sO77JmDi7zFdgWQi3ABHeT86nm6ZF/vugTVMKPTTWZuxyXbitDoVqzb8tD/Uf9tlw== johndoejr@localhost
packages:
- tmux
- wget