Changeset View
Changeset View
Standalone View
Standalone View
site-modules/profile/manifests/export_archive_counters.pp
# stats_export master class | # stats_export master class | ||||
class profile::export_archive_counters { | class profile::export_archive_counters { | ||||
$export_path = lookup('stats_export::export_path') | $export_path = lookup('stats_export::export_path') | ||||
$export_file = lookup('stats_export::export_file') | $export_file = lookup('stats_export::export_file') | ||||
$packages = ['python3-click', 'python3-requests'] | $packages = ['python3-click', 'python3-requests'] | ||||
package {$packages: | ensure_packages($packages) | ||||
ensure => present, | |||||
} | |||||
$script_name = 'export_archive_counters.py' | $script_name = 'export_archive_counters.py' | ||||
$script_path = "/usr/local/bin/${script_name}" | $script_path = "/usr/local/bin/${script_name}" | ||||
file {$script_path: | file {$script_path: | ||||
ensure => present, | ensure => present, | ||||
owner => 'root', | owner => 'root', | ||||
group => 'root', | group => 'root', | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |