Forge Home

shterm_pam_appmgr

access shterm appmgr secret

3,974 downloads

1,552 latest version

4.6 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.1.8 (latest)
  • 0.1.7
  • 0.1.6
  • 0.1.5
  • 0.1.4
  • 0.1.3 (deleted)
  • 0.1.2 (deleted)
  • 0.1.1 (deleted)
  • 0.1.0 (deleted)
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

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'qizhi-shterm_pam_appmgr', '0.1.8'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add qizhi-shterm_pam_appmgr
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install qizhi-shterm_pam_appmgr --version 0.1.8

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

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']}": }