melato / lxops

Apache License 2.0
6 stars 0 forks source link

add cloudconfig command #2

Closed melato closed 9 months ago

melato commented 9 months 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 9 months ago

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