shterm_pam_appmgr

pdk
access shterm appmgr secret

xuhong

qizhi

2,775 downloads

698 latest version

4.6 quality score

Version information

  • 0.1.8 (latest)
  • 0.1.7
  • 0.1.6
  • 0.1.5
  • 0.1.4
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0
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
  • CentOS
    ,
    OracleLinux
    ,
    RedHat
    ,
    Scientific
    ,
    Debian
    ,
    Ubuntu
    ,
    windows
    ,
    Solaris
    ,
    Fedora

Start using this module

Documentation

qizhi/shterm_pam_appmgr — version 0.1.8 Sep 13th 2020

shterm_pam_appmgr

Table of Contents

  1. Description
  2. Setup - The basics of getting started with shterm_pam_appmgr
  3. Reference

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 information
  • query (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']}": }