New Question

Revision history [back]

click to hide/show revision 1
initial version

Hello,

You can disable the hostname plugin in the cloudbase-init configuration (both configurations, the unattend and service one).

Make sure that in the cloudbase-init configuration you define the plugins, minus the cloudbaseinit.plugins.common.sethostname.SetHostNamePlugin.

plugins=plugin1, plugin2 # except the cloudbaseinit.plugins.common.sethostname.SetHostNamePlugin

If in the configuration of cloudbase-init you do not have the plugins entry set, these are the default ones executed:

plugins=cloudbaseinit.plugins.common.mtu.MTUPlugin,cloudbaseinit.plugins.windows.ntpclient.NTPClientPlugin,cloudbaseinit.plugins.common.sethostname.SetHostNamePlugin,cloudbaseinit.plugins.windows.createuser.CreateUserPlugin,cloudbaseinit.plugins.common.networkconfig.NetworkConfigPlugin,cloudbaseinit.plugins.windows.licensing.WindowsLicensingPlugin,cloudbaseinit.plugins.common.sshpublickeys.SetUserSSHPublicKeysPlugin,cloudbaseinit.plugins.windows.extendvolumes.ExtendVolumesPlugin,cloudbaseinit.plugins.common.userdata.UserDataPlugin,cloudbaseinit.plugins.common.setuserpassword.SetUserPasswordPlugin,cloudbaseinit.plugins.windows.winrmlistener.ConfigWinRMListenerPlugin,cloudbaseinit.plugins.windows.winrmcertificateauth.ConfigWinRMCertificateAuthPlugin,cloudbaseinit.plugins.common.localscripts.LocalScriptsPlugin,

More info here: https://github.com/openstack/cloudbase-init/blob/master/cloudbaseinit/conf/default.py#L179

Thank you,
Adrian Vladu