Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9343712
export_archive_counters.pp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
export_archive_counters.pp
View Options
# stats_export master class
class
profile
::
export_archive_counters
{
$export_path
=
lookup
(
'stats_export::export_path'
)
$export_file
=
lookup
(
'stats_export::export_file'
)
$packages
=
[
'python3-click'
]
package
{
$packages:
ensure
=>
present
,
}
file
{
'/usr/local/bin/export-archive_counters.py'
:
ensure
=>
present
,
owner
=>
'root'
,
group
=>
'root'
,
mode
=>
'0755'
,
source
=>
'puppet:///modules/profile/stats_exporter/export-archive_counters.py'
,
require
=>
Package
[
$packages],
}
file
{
'/usr/local/share/swh-data/history-counters.munin.json'
:
ensure
=>
present
,
owner
=>
'root'
,
group
=>
'root'
,
mode
=>
'0644'
,
source
=>
'puppet:///modules/profile/stats_exporter/history-counters.munin.json'
,
}
cron
{
'stats_export'
:
ensure
=>
present
,
user
=>
'www-data'
,
command
=>
"/usr/local/bin/export-archive_counters.py > ${export_file}.tmp && /bin/mv ${export_file}.tmp ${export_file}"
,
hour
=>
fqdn_rand
(
24
,
'stats_export_hour'
),
minute
=>
fqdn_rand
(
60
,
'stats_export_minute'
),
month
=>
'*'
,
monthday
=>
'*'
,
weekday
=>
'*'
,
require
=>
[
File
[
'/usr/local/bin/export-archive_counters.py'
],
File
[
'/usr/local/share/swh-data/history-counters.munin.json'
],
],
}
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Fri, Jul 4, 1:46 PM (4 d, 6 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3327548
Attached To
rSPSITE puppet-swh-site
Event Timeline
Log In to Comment