save checkpoint
This commit is contained in:
14
devops/scripts/systemd/scanner-artifact-boms-ensure.service
Normal file
14
devops/scripts/systemd/scanner-artifact-boms-ensure.service
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=StellaOps Scanner artifact_boms partition pre-creation
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
EnvironmentFile=/etc/stellaops/scanner-hotlookup.env
|
||||
ExecStart=/opt/stellaops/devops/scripts/scanner-artifact-boms-ensure-partitions.sh 1
|
||||
User=stellaops
|
||||
Group=stellaops
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
10
devops/scripts/systemd/scanner-artifact-boms-ensure.timer
Normal file
10
devops/scripts/systemd/scanner-artifact-boms-ensure.timer
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Monthly pre-creation of Scanner artifact_boms partitions
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-01 00:10:00
|
||||
Persistent=true
|
||||
Unit=scanner-artifact-boms-ensure.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=StellaOps Scanner artifact_boms retention cleanup
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
EnvironmentFile=/etc/stellaops/scanner-hotlookup.env
|
||||
ExecStart=/opt/stellaops/devops/scripts/scanner-artifact-boms-retention.sh 12 false
|
||||
User=stellaops
|
||||
Group=stellaops
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
10
devops/scripts/systemd/scanner-artifact-boms-retention.timer
Normal file
10
devops/scripts/systemd/scanner-artifact-boms-retention.timer
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Daily retention cleanup for Scanner artifact_boms partitions
|
||||
|
||||
[Timer]
|
||||
OnCalendar=daily
|
||||
Persistent=true
|
||||
Unit=scanner-artifact-boms-retention.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user