Puppet Class: postgres_exporter::service
- Defined in:
- manifests/service.pp
Summary
This class handles the postgres_exporter service.Overview
This class handles the postgres_exporter service.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'manifests/service.pp', line 6
class postgres_exporter::service {
file {'/etc/systemd/system/postgres_exporter.service':
ensure => file,
owner => 'root',
group => 'root',
mode => '0644',
content => epp('postgres_exporter/postgres_exporter.systemd.epp', {
'bin_dir' => $::postgres_exporter::install::install_dir
}
)
}
~>exec { 'systemctl-daemon-reload-postgres_exporter':
command => '/bin/systemctl daemon-reload',
refreshonly => true,
}
->service {'postgres_exporter':
ensure => running,
enable => true,
hasstatus => true,
hasrestart => true,
}
}
|