add oVirt provider to ManageIQ module (#33751)

This commit adds oVirt/RHEV capability to the ManageIQ remote
management module.
This commit is contained in:
Christopher Brown 2017-12-11 09:52:33 +00:00 committed by ansibot
parent dbc6963617
commit 145c6f953d

View file

@ -37,7 +37,7 @@ options:
type: type:
description: The provider's type. description: The provider's type.
required: true required: true
choices: ['Openshift', 'Amazon'] choices: ['Openshift', 'Amazon', 'oVirt']
zone: zone:
description: The ManageIQ zone name that will manage the provider. description: The ManageIQ zone name that will manage the provider.
required: false required: false
@ -310,6 +310,22 @@ EXAMPLES = '''
url: 'https://127.0.0.1' url: 'https://127.0.0.1'
token: 'VeryLongToken' token: 'VeryLongToken'
verify_ssl: true verify_ssl: true
- name: Create a new oVirt provider in ManageIQ
manageiq_provider:
name: 'RHEV'
type: 'oVirt'
state: 'present'
provider:
hostname: 'rhev01.example.com'
userid: 'admin@internal'
password: 'password'
manageiq_connection:
url: 'https://127.0.0.1'
username: 'admin'
password: 'password'
verify_ssl: true
''' '''
RETURN = ''' RETURN = '''
@ -331,6 +347,9 @@ def supported_providers():
Amazon=dict( Amazon=dict(
class_name='ManageIQ::Providers::Amazon::CloudManager', class_name='ManageIQ::Providers::Amazon::CloudManager',
), ),
oVirt=dict(
class_name='ManageIQ::Providers::Redhat::InfraManager',
),
) )