mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 03:40:42 -03:30
adding pbrun radio option and input fields
This commit is contained in:
parent
cd39b2e2e9
commit
1b9c050dc8
@ -290,6 +290,9 @@ export default
|
||||
}, {
|
||||
label: 'Su',
|
||||
value: 'su'
|
||||
},{
|
||||
label: 'Pbrun',
|
||||
value: 'pbrun'
|
||||
}],
|
||||
awPopOver: "<p><b>Sudo:</b> Optionally specify a username for sudo operations. This is equivalent to specifying the <code>ansible-playbook --sudo-user</code> parameter.<br /><b>Su:</b> Optionally specify a username for su operations. This is equivalent to specifying the <code>ansible-playbook --su-user</code> parameter.",
|
||||
dataPlacement: 'right',
|
||||
@ -331,6 +334,24 @@ export default
|
||||
hasShowInputButton: true,
|
||||
autocomplete: false
|
||||
},
|
||||
"pbrun_username": {
|
||||
label: 'Pbrun Username',
|
||||
type: 'text',
|
||||
ngShow: "kind.value == 'ssh' && login_method == 'pbrun'",
|
||||
addRequired: false,
|
||||
editRequired: false,
|
||||
autocomplete: false
|
||||
},
|
||||
"pbrun_password": {
|
||||
label: 'Pbrun Password',
|
||||
type: 'sensitive',
|
||||
ngShow: "kind.value == 'ssh' && login_method == 'pbrun'",
|
||||
addRequired: false,
|
||||
editRequired: false,
|
||||
ask: true,
|
||||
hasShowInputButton: true,
|
||||
autocomplete: false
|
||||
},
|
||||
"project": {
|
||||
label: "Project",
|
||||
type: 'text',
|
||||
|
||||
@ -124,10 +124,10 @@ angular.module('CredentialsHelper', ['Utilities'])
|
||||
scope.ssh_key_unlock_confirm = null;
|
||||
scope.sudo_username = null;
|
||||
scope.sudo_password = null;
|
||||
scope.sudo_password_confirm = null;
|
||||
scope.su_username = null;
|
||||
scope.su_password = null;
|
||||
scope.su_password_confirm = null;
|
||||
scope.pbrun_username = null;
|
||||
scope.pbrun_password = null;
|
||||
}
|
||||
|
||||
// Collapse or open help widget based on whether scm value is selected
|
||||
@ -182,6 +182,10 @@ angular.module('CredentialsHelper', ['Utilities'])
|
||||
scope.su_username = null;
|
||||
scope.su_password = null;
|
||||
}
|
||||
if (login_method !== 'pbrun') {
|
||||
scope.pbrun_username = null;
|
||||
scope.pbrun_password = null;
|
||||
}
|
||||
};
|
||||
}
|
||||
])
|
||||
|
||||
@ -850,6 +850,9 @@ function($compile, Rest, GetBasePath, TextareaResize,CreateDialog, GenerateForm,
|
||||
if(data.su_password === "ASK"){
|
||||
passwords.push("su_password");
|
||||
}
|
||||
if(data.pbrun_password === "ASK"){
|
||||
passwords.push("pbrun_password");
|
||||
}
|
||||
if(data.vault_password === "ASK"){
|
||||
passwords.push("vault_password");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user