Skip to content

Commit

Permalink
move defaults to class so that puppet-strings can build better docs
Browse files Browse the repository at this point in the history
* I also updated the defaults for arrays to []
* I also updated the defaults for hash to {}
* Add some types to make init.pp a bit more readable
  • Loading branch information
b4ldr committed Apr 21, 2021
1 parent 367ad0e commit a69958f
Show file tree
Hide file tree
Showing 10 changed files with 226 additions and 441 deletions.
208 changes: 0 additions & 208 deletions data/common.yaml

This file was deleted.

3 changes: 2 additions & 1 deletion data/os/OpenBSD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ unbound::pidfile: '/var/run/unbound.pid'
unbound::logdir: '/var/log/unbound'
unbound::owner: '_unbound'
unbound::group: '_unbound'
unbound::service_name: 'unbound'
unbound::fetch_client: 'ftp -o'
unbound::validate_cmd: '/usr/sbin/unbound-checkconf %'
unbound::package_name: ''
unbound::restart_cmd: "/usr/sbin/rcctl restart %{hiera('unbound::service_name')}"
unbound::restart_cmd: "/usr/sbin/rcctl restart %{lookup('unbound::service_name')}"
2 changes: 0 additions & 2 deletions hiera.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@ hierarchy:
path: "os/%{facts.os.family}/%{facts.os.name}.yaml"
- name: "family"
path: "os/%{facts.os.family}.yaml"
- name: "common"
path: "common.yaml"

Loading

0 comments on commit a69958f

Please sign in to comment.