mirror of
https://github.com/ansible/awx.git
synced 2026-04-06 18:49:21 -02:30
adding pbrun radio option and input fields
This commit is contained in:
@@ -290,6 +290,9 @@ export default
|
|||||||
}, {
|
}, {
|
||||||
label: 'Su',
|
label: 'Su',
|
||||||
value: '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.",
|
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',
|
dataPlacement: 'right',
|
||||||
@@ -331,6 +334,24 @@ export default
|
|||||||
hasShowInputButton: true,
|
hasShowInputButton: true,
|
||||||
autocomplete: false
|
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": {
|
"project": {
|
||||||
label: "Project",
|
label: "Project",
|
||||||
type: 'text',
|
type: 'text',
|
||||||
|
|||||||
@@ -124,10 +124,10 @@ angular.module('CredentialsHelper', ['Utilities'])
|
|||||||
scope.ssh_key_unlock_confirm = null;
|
scope.ssh_key_unlock_confirm = null;
|
||||||
scope.sudo_username = null;
|
scope.sudo_username = null;
|
||||||
scope.sudo_password = null;
|
scope.sudo_password = null;
|
||||||
scope.sudo_password_confirm = null;
|
|
||||||
scope.su_username = null;
|
scope.su_username = null;
|
||||||
scope.su_password = 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
|
// 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_username = null;
|
||||||
scope.su_password = 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"){
|
if(data.su_password === "ASK"){
|
||||||
passwords.push("su_password");
|
passwords.push("su_password");
|
||||||
}
|
}
|
||||||
|
if(data.pbrun_password === "ASK"){
|
||||||
|
passwords.push("pbrun_password");
|
||||||
|
}
|
||||||
if(data.vault_password === "ASK"){
|
if(data.vault_password === "ASK"){
|
||||||
passwords.push("vault_password");
|
passwords.push("vault_password");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user