The argus.recipes.cloud.windows Module

Windows cloudbaseinit recipes.

class argus.recipes.cloud.windows.AlwaysChangeLogonPasswordRecipe(backend)

Always change the password at next logon.

behaviour = 'always'
class argus.recipes.cloud.windows.BaseNextLogonRecipe(backend)

Useful for testing the next logon behaviour.

behaviour = None
prepare_cbinit_config(service_type)
class argus.recipes.cloud.windows.ClearPasswordLogonRecipe(backend)

Change the password at next logon if the password is from metadata.

behaviour = 'clear_text_injected_only'
class argus.recipes.cloud.windows.CloudbaseinitCloudstackRecipe(backend)

Recipe for Cloudstack metadata service mocking.

config_group = 'cloudstack'
metadata_address = 'http://172.17.95.62/cloudstack'
prepare_cbinit_config(service_type)
class argus.recipes.cloud.windows.CloudbaseinitCreateUserRecipe(backend)

A recipe for creating the user created by cloudbaseinit.

The purpose is to use this recipe for testing that cloudbaseinit works, even when the user which should be created already exists.

pre_sysprep()
class argus.recipes.cloud.windows.CloudbaseinitEC2Recipe(backend)

Recipe for EC2 metadata service mocking.

config_group = 'ec2'
metadata_address = 'http://172.17.95.62'
class argus.recipes.cloud.windows.CloudbaseinitHTTPRecipe(backend)

Recipe for http metadata service mocking.

metadata_address = 'http://172.17.95.62/'
class argus.recipes.cloud.windows.CloudbaseinitImageRecipe(backend)

Calibrate already sys-prepared cloudbase-init images.

prepare(service_type=None, **kwargs)
wait_cbinit_finalization()
class argus.recipes.cloud.windows.CloudbaseinitKeysRecipe(backend)

Recipe that facilitates x509 certificates and public keys testing.

prepare_cbinit_config(service_type)
class argus.recipes.cloud.windows.CloudbaseinitLocalScriptsRecipe(backend)

Recipe for testing local scripts return codes.

pre_sysprep()
class argus.recipes.cloud.windows.CloudbaseinitLongHostname(backend)

Recipe for testing the netbios long hostname compatibility option.

prepare_cbinit_config(service_type)
class argus.recipes.cloud.windows.CloudbaseinitMaasRecipe(backend)

Recipe for Maas metadata service mocking.

config_group = 'maas'
metadata_address = 'http://172.17.95.62/'
prepare_cbinit_config(service_type)
class argus.recipes.cloud.windows.CloudbaseinitMockServiceRecipe(backend)

A recipe for patching the cloudbaseinit’s conf with a custom server.

Attributes:

config_group: The group name specific to the metadata provider. config_entry: Field containing the metadata url name for the

specified provider.

metadata_address: The address for where to access the metadata service.

config_entry = 'metadata_base_url'
config_group = 'DEFAULT'
metadata_address = 'metadata_url_value'
prepare_cbinit_config(service_type)
class argus.recipes.cloud.windows.CloudbaseinitRecipe(backend)

Recipe for preparing a Windows instance.

execution_prologue()
get_installation_script()

Get instalation script for CloudbaseInit.

inject_cbinit_config()

Inject the cloudbase-init config in the right place.

install_cbinit()

Proceed on checking if cloudbase-init should be installed.

pre_sysprep()
prepare_cbinit_config(service_type)

Prepare the cloudbase-init config.

replace_code()

Replace the code of cloudbaseinit.

replace_install()

Replace the cb-init installed files with the downloaded ones.

For the same file names, there will be a replace. The new ones will just be added and the other files will be left there. So it’s more like an update.

set_mtu(interface='ipv4', subinterface_name='Ethernet', mtu_value=1400, store_type='active')
sysprep()

Prepare the instance for the actual tests, by running sysprep.

wait_cbinit_finalization()
wait_for_boot_completion()
class argus.recipes.cloud.windows.CloudbaseinitScriptRecipe(backend)

A recipe which adds support for testing .exe scripts.

pre_sysprep()
class argus.recipes.cloud.windows.CloudbaseinitWinrmRecipe(backend)

A recipe for testing the WinRM configuration plugin.

prepare_cbinit_config(service_type)