Skip to content

puppetlabs/puppetlabs-env_plugin

Environment Variable Plugin

This module includes an environment variable plugin for Bolt. This allows you to load values from environment variables in an inventory file or when configuring plugins in a configuration file.

Usage

env_plugin::resolve_reference

The resolve_reference task loads values from environment variables for use in an inventory file or when configuring plugins in a configuration file.

Parameters

  • var: The environment variable to load.

Examples

Use the env_plugin::resolve_reference task to load a private key into an inventory file:

---
targets:
  - target1.example.com
  - target2.example.com
config:
  ssh:
    private-key:
      key-data:
        _plugin: env_plugin
        var: PRIVATE_KEY

Use the env_plugin::resolve_reference task to load a password and configure another plugin:

plugins:
  vault:
    auth:
      method: userpass
      user: bolt
      password:
        _plugin: env_plugin
        var: VAULT_PASSWORD

About

An environment variable plugin for Bolt

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages