Skip to content

Latest commit

 

History

History
84 lines (42 loc) · 1.49 KB

REFERENCE.md

File metadata and controls

84 lines (42 loc) · 1.49 KB

Reference

Table of Contents

Resource types

  • etcd_key: Creates a key in a remote etcd database. Connection options for etcd are specified in the etcd.conf file located in your puppet confdir (Use

Functions

Resource types

etcd_key

Creates a key in a remote etcd database. Connection options for etcd are specified in the etcd.conf file located in your puppet confdir (Use puppet config print --confdir on your master to find this.)

Example: etcd_key { '/test/key': ensure => present, value => 'Test value!', }

Properties

The following properties are available in the etcd_key type.

ensure

Valid values: present, directory, absent

Whether the key should exist in etcd or not. You can use ensure => directory to ensure an empty diectory.

Default value: present

value

The value of the key. Mutually exclusive with directory => true.

Parameters

The following parameters are available in the etcd_key type.

path

namevar

The path of the key in the etcd structure.

Functions

hiera_etcd

Type: Ruby 4.x API

The hiera_etcd function.

hiera_etcd(Variant[String, Numeric] $key, Hash $options, Puppet::LookupContext $context)

The hiera_etcd function.

Returns: Any

key

Data type: Variant[String, Numeric]

options

Data type: Hash

context

Data type: Puppet::LookupContext