cfme.configure.configuration.server_settings module

class cfme.configure.configuration.server_settings.AmazonAuthenticationView(*args, **kwargs)[source]

Bases: widgetastic.widget.View

Amazon Authentication View

access_key

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

get_groups

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

secret_key

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

validate

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

class cfme.configure.configuration.server_settings.AuthenticationSetting(appliance)[source]

Bases: cfme.utils.appliance.NavigatableMixin, cfme.utils.update.Updateable, cfme.utils.pretty.Pretty

Represents Authentication Setting for CFME

Parameters:auth_mode – authorization mode, default value ‘Database’ One of: ‘Database’, ‘Ldap’, ‘Ldaps’, ‘Amazon’, ‘External’
auth_mode

Check UI confiuration of auth mode

auth_settings

Authentication view fields values

Includes auth_mode

configure(auth_mode=None, auth_provider=None, user_type=None, reset=False, validate=True)[source]

Set up authentication mode

Defaults to Database if auth_mode is none, uses auth_provider.as_fill_value()

Parameters:
  • auth_mode – key for AUTH_MODES, UI dropdown selection, defaults to Database if None
  • auth_provider – authentication provider class from cfme.utils.auth
  • user_type – key for USER_TYPES
  • reset – to reset all changes for the page.after filling
  • validate – validate ldap/ldaps/amazon provider config bind_dn+password
pretty_attrs = ['auth_mode']
set_session_timeout(hours=None, minutes=None)[source]

Sets the session timeout of the appliance.

Parameters:
  • hours (str) – timeout hours value
  • minutes (str) – timeout minutes value

ex. auth_settings.set_session_timeout(‘0’, ‘30’)

class cfme.configure.configuration.server_settings.DatabaseAuthenticationView(*args, **kwargs)[source]

Bases: widgetastic.widget.View

Database Authentication View, empty

class cfme.configure.configuration.server_settings.ExternalAuthenticationView(*args, **kwargs)[source]

Bases: widgetastic.widget.View

External Authentication View

enable_saml

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

enable_sso

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

get_groups

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

class cfme.configure.configuration.server_settings.LdapAuthenticationView(*args, **kwargs)[source]

Bases: widgetastic.widget.View

Ldap Authentication View

base_dn

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

bind_dn

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

bind_password

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

domain_prefix

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

follow_referrals

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

get_groups

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

get_roles

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

host1

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

host2

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

host3

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

port

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

user_suffix

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

user_type

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

validate

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

class cfme.configure.configuration.server_settings.LdapsAuthenticationView(*args, **kwargs)[source]

Bases: cfme.configure.configuration.server_settings.LdapAuthenticationView

Ldaps Authentication View

class cfme.configure.configuration.server_settings.ServerAuthenticationView(*args, **kwargs)[source]

Bases: widgetastic.widget.View

Server Authentication View.

flash

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

form

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

hours_timeout

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

is_displayed

should be paired with a ServerView.in_server_settings in a nav.am_i_here

minutes_timeout

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

reset

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

save

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

title

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

class cfme.configure.configuration.server_settings.ServerInformation(appliance)[source]

Bases: cfme.utils.update.Updateable, cfme.utils.pretty.Pretty

This class represents the Server tab in Server Settings

Different Forms take different values for their operations

Note: All lower parameters by default set to None

  • BasicInformationForm:

    • company_name: [BasicInformationForm] Company name, default value in “My Company”
    • appliance_name: [BasicInformationForm] Appliance name.
    • appliance_zone: [BasicInformationForm] Appliance Zone.
    • time_zone: [BasicInformationForm] Time Zone.
    • locale: [BasicInformationForm] Locale used for users UI
  • ServerControlForm (Server Roles):

    • websocket, ems_metrics_coordinator, cockpit_ws, smartproxy,
    • storage_metrics_collector, database_operations, smartstate, event,
    • storage_inventory, storage_metrics_processor, web_services, automate,
    • rhn_mirror, database_synchronization, ems_operations, ems_metrics_collector,
    • reporting, ems_metrics_processor, scheduler, git_owner, user_interface,
    • embedded_ansible, storage_metrics_coordinator, ems_inventory,
    • vmdb_storage_bridge, notifier: set True/False to change the state
  • VWwareConsoleSupportForm:

    • console_type - Server console type
  • NTPServersForm:

    • ntp_server_1, ntp_server_2, ntp_server_3 - Set ntp server
  • SMTPServerForm:

    • host: SMTP Server host name
    • port: SMTP Server port
    • domain: E-mail domain
    • start_tls: Whether use StartTLS
    • ssl_verify: SSL Verification
    • auth: Authentication type
    • username: User name
    • password: User password
    • from_email: E-mail address to be used as the “From:”
    • test_email: Destination of the test-email.
  • WebServicesForm:

    • mode: web services mode
    • security: security type
  • LoggingForm:

    • log_level: log level type
  • CustomSupportURL:

    • url: custom url
    • decryption: url description
CONSOLE_TYPES = ('VNC', 'VMware VMRC Plugin', 'VMware WebMKS')
SERVER_ROLES = ('embedded_ansible', 'ems_metrics_coordinator', 'ems_operations', 'ems_metrics_collector', 'reporting', 'ems_metrics_processor', 'scheduler', 'smartproxy', 'database_operations', 'smartstate', 'event', 'user_interface', 'web_services', 'ems_inventory', 'notifier', 'automate', 'rhn_mirror', 'database_synchronization_role', 'git_owner', 'websocket', 'storage_metrics_processor', 'storage_metrics_collector', 'storage_metrics_coordinator', 'storage_inventory', 'vmdb_storage_bridge', 'cockpit_ws')
basic_information_values

Returns(dict): basic_information fields values

custom_support_url_values

Returns(dict): custom_support_url fields values

disable_server_roles(*roles)[source]

Disable Server roles

enable_server_roles(*roles)[source]

Enables Server roles

logging_values

Returns(dict): logging fields values

ntp_servers_fields_keys

Returns(list): ntp servers fields names

ntp_servers_values

Returns(dict): ntp_servers fields values

pretty_attrs = ['appliance']
send_test_email(email=None)[source]

Send a testing e-mail on specified address. Needs configured SMTP.

server_roles_db

Get server roles from Configure / Configuration from DB

Returns: dict ex.{‘cockpit’: True}

server_roles_ui
smtp_server_values

Returns(dict): smtp_server fields values

update_basic_information(updates, reset=False)[source]

Navigate to a Server Tab. Updates basic information form

Parameters:
  • updates – dict, widgets will be updated regarding updates. ex. update_basic_information({‘company_name’: ‘New name’})
  • updates. (regarding) –
  • reset – By default(False) changes will not be reset, if True changes will be reset
update_custom_support_url(updates, reset=False)[source]

Navigate to a Server Tab. Updates custom support url

Parameters:
  • updates – dict, widgets will be updated regarding updates.
  • reset – By default(False) changes will not be reset, if True changes will be reset
update_logging_form(updates, reset=False)[source]

Navigate to a Server Tab. Updates logging form

Parameters:
  • updates – dict, widgets will be updated regarding updates.
  • reset – By default(False) changes will not be reset, if True changes will be reset
update_ntp_servers(updates, reset=False)[source]

Navigate to a Server Tab. Updates ntp servers

Parameters:
  • updates – dict, widgets will be updated regarding updates.
  • reset – By default(False) changes will not be reset, if True changes will be reset
update_server_roles_db(roles)[source]

Set server roles on Configure / Configuration pages.

Parameters:roles – Roles specified as in server_roles dict in this module. Set to True or False
update_server_roles_ui(updates, reset=False)[source]

Navigate to a Server Tab. Updates server roles via UI

Parameters:
  • updates – dict, widgets will be updated regarding updates.
  • reset – By default(False) changes will not be reset, if True changes will be reset
update_smtp_server(updates, reset=False)[source]

Navigate to a Server Tab. Updates smtp server

Parameters:
  • updates – dict, widgets will be updated regarding updates.
  • reset – By default(False) changes will not be reset, if True changes will be reset
update_vmware_console(updates, reset=False)[source]

Navigate to a Server Tab. Updates Vmware console

Parameters:
  • updates – dict, widgets will be updated regarding updates.
  • reset – By default(False) changes will not be reset, if True changes will be reset
update_web_services(updates, reset=False)[source]

Navigate to a Server Tab. Updates web services

Parameters:
  • updates – dict, widgets will be updated regarding updates.
  • reset – By default(False) changes will not be reset, if True changes will be reset
vmware_console_values

Returns(dict): vmware_console fields values

web_services_values

Returns(dict): web_services fields values

class cfme.configure.configuration.server_settings.ServerInformationView(*args, **kwargs)[source]

Bases: widgetastic.widget.View

Class represents full Server tab view

basic_information

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

custom_support_url

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

flash

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

is_displayed
logging_form

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

ntp_servers

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

reset

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

save

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

server_roles

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

smtp_server

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

title

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

vmware_console

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

web_services

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.