Skip to content

Commit

Permalink
getting rid of /etc/grafana/ldap.toml hardcode
Browse files Browse the repository at this point in the history
I would like to avoid hardcode paths, voxpupuli#257
  • Loading branch information
olevole committed Sep 15, 2021
1 parent 652c739 commit fe229c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions data/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ grafana::archive_source: ~
grafana::cfg_location: '/etc/grafana/grafana.ini'
grafana::cfg: {}
grafana::ldap_cfg: ~
grafana::ldap_cfg_location: '/etc/grafana/ldap.toml'
grafana::container_cfg: false
grafana::container_params: {}
grafana::docker_image: 'grafana/grafana'
Expand Down
2 changes: 1 addition & 1 deletion manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@

$ldap_cfg_toml = inline_template($template_body.join(''))

file { '/etc/grafana/ldap.toml':
file { $grafana::ldap_cfg_location:
ensure => file,
content => $ldap_cfg_toml,
owner => 'grafana',
Expand Down
1 change: 1 addition & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@
String $cfg_location,
Hash $cfg,
Optional[Variant[Hash,Array]] $ldap_cfg,
Stdlib::Absolutepath $ldap_cfg_location,
Boolean $container_cfg,
Hash $container_params,
String $docker_image,
Expand Down

0 comments on commit fe229c2

Please sign in to comment.