Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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"

About

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

Resources

License

Releases

No releases published

Packages

No packages published

Languages