New Question
0

How to re-execute plugins per instance boot

asked 2022-04-10 10:24:15 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi, I am using NoCloudConfigDrive metadata service for gathering information like password, hostname,... from user-data and meta-data files mounted into the VM and exposing them to a lot of plugins.

In my use case, I may want to change user password , VM hostname or somethings like that. So, It's best for me to apply these changes into the user-data and meta-data files and whenever the VM rebooted, cloudbase-init check the changes and apply them again.

I find out that if I change the value of instance-id in meta-data file, all of the plugins that mentioned in cloudbase-init configuration file will re-executed. But I don't like to change the instance-id due to my use case.

Is there any another way to re-execute plugins per VM boot ?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2022-04-11 20:03:53 +0200

avladu gravatar image

Hello,

If cloudbase-init does not find any instance-id, it will re-execute the plugins on every boot.

Thank you,
Adrian Vladu

edit flag offensive delete link more

Comments

Thanks a lot.

mareza gravatar imagemareza ( 2022-04-12 09:13:15 +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

Stats

Asked: 2022-04-10 10:24:15 +0200

Seen: 261 times

Last updated: Apr 11 '22