New Question
0

How can I run Cloudbase-Init multiple times?

asked 2020-12-07 17:41:02 +0200

cfkwok gravatar image

I am trying to debug a runcmd. Is it possible to run Cloudbase-Init multiple times?

For Cloud-Init, I was able to rerun it when I do something like this: https://stackoverflow.com/questions/2...

Is there something similar for Cloudbase-Init? Where can I find the runcmd file?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2021-01-06 13:26:57 +0200

avladu gravatar image

Hello,

If you refer to the runcmd from cloud-config userdata, the state of that plugin is saved in the registry keys: HKLM:\\SOFTWARE\\Cloudbase Solutions\\Cloudbase-Init\\<INSTANCE-ID>\\<PLUGIN-NAME>

In your case, PLUGIN-NAME is UserDataPlugin. You need to remove that key or if you want to do a full rerun, just remove HKLM:\\SOFTWARE\\Cloudbase Solutions\\Cloudbase-Init\\.

Thank you,
Adrian Vladu

edit flag offensive delete link more

Comments

The answer from this question has also an example in PowerShell: https://ask.cloudbase.it/question/1334/sethostnameplugin-execution-already-done/ .

avladu gravatar imageavladu ( 2021-01-06 13:28:32 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-12-07 17:41:02 +0200

Seen: 12,176 times

Last updated: Jan 06 '21