forked from ManageIQ/manageiq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add azure_classic_credential, plus spec update
- Loading branch information
Showing
5 changed files
with
3,840 additions
and
7,845 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
app/models/manageiq/providers/ansible_tower/automation_manager/azure_classic_credential.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class ManageIQ::Providers::AnsibleTower::AutomationManager::AzureClassicCredential < ManageIQ::Providers::AnsibleTower::AutomationManager::CloudCredential | ||
include ManageIQ::Providers::AnsibleTower::Shared::AutomationManager::AzureClassicCredential | ||
end |
2 changes: 1 addition & 1 deletion
2
app/models/manageiq/providers/ansible_tower/automation_manager/azure_credential.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# This corresponds to Ansible Tower's Azure Resource Manager (azure_rm) type credential. We are not modeling the deprecated Azure classic | ||
# This corresponds to Ansible Tower's Azure Resource Manager (azure_rm) type credential | ||
class ManageIQ::Providers::AnsibleTower::AutomationManager::AzureCredential < ManageIQ::Providers::AnsibleTower::AutomationManager::CloudCredential | ||
include ManageIQ::Providers::AnsibleTower::Shared::AutomationManager::AzureCredential | ||
end |
30 changes: 30 additions & 0 deletions
30
...ls/manageiq/providers/ansible_tower/shared/automation_manager/azure_classic_credential.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
module ManageIQ::Providers::AnsibleTower::Shared::AutomationManager::AzureClassicCredential | ||
COMMON_ATTRIBUTES = { | ||
:userid => { | ||
:type => :string, | ||
:label => N_('Subscription ID'), | ||
:help_text => N_('The Subscription UUID for the Microsoft Azure Classic account'), | ||
:max_length => 1024, | ||
:required => true | ||
} | ||
}.freeze | ||
|
||
EXTRA_ATTRIBUTES = { | ||
:ssh_key_data => { | ||
:type => :password, | ||
:multiline => true, | ||
:label => N_('Management Certificate'), | ||
:help_text => N_('Contents of the PEM file that corresponds to the certificate you uploaded in the Microsoft Azure console'), | ||
:required => true | ||
} | ||
}.freeze | ||
|
||
API_ATTRIBUTES = COMMON_ATTRIBUTES.merge(EXTRA_ATTRIBUTES).freeze | ||
|
||
API_OPTIONS = { | ||
:type => 'cloud', | ||
:label => N_('Azure Classic (deprecated)'), | ||
:attributes => API_ATTRIBUTES | ||
}.freeze | ||
TOWER_KIND = 'azure'.freeze | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.