Skip to content

mindhivenz/puppet-domain

Repository files navigation

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"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published