melato / lxops

Apache License 2.0
8 stars 0 forks source link

add cloudconfig command #2

Closed melato closed 1 year ago

melato commented 1 year ago

lxops has the functionality to apply cloud-config files to instances, but it does so through an lxops config file.

I propose adding a command to apply cloud-config files directly from the command line:

lxops apply -i <instance> -ostype alpine <cloud-config-file.cfg> ...

lxops apply -i <instance> -ostype alpine - <<END
#cloud-config
runcmd:
- hostname
END

There are currently separate projects cloudconfiglxd, cloudconfigincus that do this. Incorporating this functionality in lxops will have the advantages:

melato commented 1 year ago

Added instance cloudconfig command. Also added ostypes command to list available os types.