Version information
released May 12th 2021
This version is compatible with:
- Puppet Enterprise 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 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
- Puppet >= 5.0.0 < 8.0.0
Start using this module
Add this module to your Puppetfile:
mod 'mindhive-domain', '1.0.0'
Learn more about managing modules with a PuppetfileDocumentation
mindhive/domain — version 1.0.0 May 12th 2021
domain
Accessing information from our domain name convention.
Description
Parses trusted[certname]
fact for site information.
Example
In your main manifest site.pp
:
$customer = domain::customer()
$site = domain::site()
You can then use the current customer in your heira.yaml
:
hierarchy:
- name: "Eyaml backend"
lookup_key: eyaml_lookup_key
paths:
- "%{customer}/%{site}/%{trusted.hostname}.yaml"
- "%{customer}/%{site}.yaml"
- "%{customer}/common.yaml"
- "%{facts.architecture}.yaml"
- "common.yaml"
Reference
Table of Contents
Functions
Functions
domain::customer
Type: Puppet Language
The domain::customer function.
domain::customer()
The domain::customer function.
Returns: Optional[String]
domain::site
Type: Puppet Language
The domain::site function.
domain::site()
The domain::site function.
Returns: Optional[String]