cloudbase / cloudbase-init

Cross-platform instance initialization
http://openstack.org
Apache License 2.0
414 stars 150 forks source link

update hostname perboot #95

Open alishir opened 2 years ago

alishir commented 2 years ago

Is it possible to update instance hostname perboot using NoCloud configuration driver? AFAIK cloud-init support updating hostname on every reboot.

chenxinlong commented 11 months ago

@alishir Did you solved this ? I'm also looking a way to execute command per boot

alishir commented 11 months ago

@chenxinlong Sorry for the late reply. I have not used this tool in a long time, but as far as I know, you can overwrite the frequency of each module by adding a new file in the /etc/cloud/cloud.cfg/ directory. Please check the cloud_config_modules and cloud_final_modules configuration phases.

chenxinlong commented 11 months ago

@alishir Thx