Skip to content

Commit 2797419

Browse files
committed
Simpler hiera config.
1 parent db068fd commit 2797419

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

example.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
pamldap:
2-
base_dn: 'dc=sportingbet,dc=com'
3-
uris: [ 'ldap://10.7.96.13', 'ldap://10.7.96.14' ]
4-
1+
pamldap::base_dn: 'dc=sportingbet,dc=com'
2+
pamldap::uris: [ 'ldap://10.7.96.13', 'ldap://10.7.96.14' ]

manifests/init.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class pamldap (
2-
$base_dn,
3-
$uris,
2+
$base_dn = hiera('pamldap::base_dn'),
3+
$uris = hiera('pamldap::uris'),
44
) {
55
class { 'pamldap::config':
66
base_dn => $base_dn,

0 commit comments

Comments
 (0)