Version information
released Sep 13th 2020
This version is compatible with:
- Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2016.4.x
- Puppet >= 4.10.0 < 7.0.0
- , , , , , , , ,
Start using this module
Add this module to your Puppetfile:
mod 'qizhi-shterm_pam_appmgr', '0.1.8'
Learn more about managing modules with a PuppetfileDocumentation
qizhi/shterm_pam_appmgr — version 0.1.8 Sep 13th 2020
shterm_pam_appmgr
Table of Contents
Description
Provide a function for puppet to obtain the password required by the application, to prevent the password from being configured in the manifest file.
Setup
Setup Requirements OPTIONAL
- shterm-appmgr
- puppet 4.x or above
Reference
Parameter introduction
appid
(str): App configuration appid informationquery
(str): Standard query parameter information, key-value pairs exist, according to; split key-value pairs
Return value introduction
- Return value type, dict type, which is the map type. Key, with name and password. The objectName function is the account name, and the actual account can be returned when the dual account is configured. objectContent: Returns the password information corresponding to the account.
For example:
$get_admin_info = {
'appid' => 'centos',
'query' => 'username=root;resourceName=host;reason=test;'
}
$user_and_pwd = shterm_pam_appmgr::secret($get_admin_info, '/tmp/a')
notify { "***** User=${user_and_pwd['objectName']} and Password=${user_and_pwd['objectContent']}": }