How to re-run cloud-init without reboot

后端 未结 4 1591
南方客
南方客 2021-01-30 22:52

I am using openstack to create a VM using \'nova boot\' command. My image is cloud-init enabled. I pass a --user-data script which is a bash shell format for cloud-init to run d

4条回答
  •  天涯浪人
    2021-01-30 23:28

    To run the packages module of cloud-config part of cloud-init, you can run

    # cloud-init-cfg all config
    

    To run the runcmd module of cloud-config part of cloud-init, you can run

    # cloud-init-cfg all final
    

提交回复
热议问题