Forge Home

hiera_storedsafe

Hiera backend accessing the Storedsafe REST-like API.

1,978 downloads

1,833 latest version

Version information

  • 1.0.2 (latest)
  • 1.0.1
  • 1.0.0 (deleted)
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
  • , , , , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'oscarmat-hiera_storedsafe', '1.0.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add oscarmat-hiera_storedsafe
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install oscarmat-hiera_storedsafe --version 1.0.2

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

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"