hiera_storedsafe

pdk
Hiera backend accessing the Storedsafe REST-like API.

Oscar Mattsson

oscarmat

1,085 downloads

1,060 latest version

Version information

  • 1.0.2 (latest)
  • 1.0.1
  • 1.0.0
released Aug 11th 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

Start using this module

Documentation

oscarmat/hiera_storedsafe — version 1.0.2 Aug 11th 2020

hiera-storedsafe

A Hiera backend to retrieve secrets from Password StoredSafe (by StoredSafe).

Dependencies

The StoredSafe gem must be installed on the puppet master.

puppetserver gem install storedsafe

Usage

To install the puppet module, either clone this repository with the destination <puppet directory>/modules/hiera_storedsafe (the lib directory should be directory in the hiera_storedsafe directory) or install from puppet forge.

Add the hiera_storedsafe backend to your hiera.yaml config file.

---
version: 5

defaults:
  datadir: data
  data_hash: yaml_data

hierarchy:
  - name: "StoredSafe lookup key"
    lookup_key: hiera_storedsafe::lookup_key

  - name: "Common data"
    path: "common.yaml"

To configure the storedsafe connection you can either generate a storedsafe rc file using the StoredSafe Tokenhandler (requires python3) or pass a manual configuration through the hiera.yaml file.

If you're using the tokenhandler, make sure the file is in the home directory of the puppet user and is readable by the puppet user.

For the manual configuration (not recommended), you can pass the token, and host directly through the hiera.yaml config file.

---
version: 5

defaults:
  datadir: data
  data_hash: yaml_data

hierarchy:
  - name: "StoredSafe lookup key"
    lookup_key: hiera_storedsafe::lookup_key
    options:
      config:
        host: "my.storedsafe.host"
        token: "my-active-token"

  - name: "Common data"
    path: "common.yaml"