Puppet Class: grafana::ldap_sync
- Defined in:
- modules/grafana/manifests/ldap_sync.pp
Overview
SPDX-License-Identifier: Apache-2.0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'modules/grafana/manifests/ldap_sync.pp', line 2
class grafana::ldap_sync (
Wmflib::Ensure $ensure,
) {
ensure_packages(['python3-ldap', 'python3-requests'])
file { '/usr/local/bin/grafana-ldap-users-sync':
ensure => present,
source => 'puppet:///modules/grafana/ldap_users_sync.py',
mode => '0555',
owner => 'root',
group => 'root',
}
systemd::timer::job{ 'grafana-ldap-users-sync':
ensure => $ensure,
description => 'Sync users and roles from LDAP to Grafana',
command => '/usr/local/bin/grafana-ldap-users-sync --commit --delete-users',
interval => {
'start' => 'OnCalendar',
'interval' => 'daily',
},
user => 'grafana',
require => File['/usr/local/bin/grafana-ldap-users-sync'],
}
}
|