Skip to content

Commit

Permalink
Wrong location
Browse files Browse the repository at this point in the history
  • Loading branch information
theseal committed Oct 1, 2024
1 parent 2bb99c8 commit 92c23cf
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions manifests/metadata/metadata_repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
} -> package {
['make','gnupg2']: ensure => latest
}

include sunet::nagios::nrpe_check_gpg_keys_bin
sunet::nagios::nrpe_command { 'check_metadata_keys':
command_line => "/usr/lib/nagios/plugins/check_gpg_keys ${cache_dir}/keys",
}

if $update_by_cron {
sunet::scriptherder::cronjob { 'verify_and_update':
cmd => "${cache_dir}/scripts/do-update.sh",
Expand All @@ -36,11 +42,6 @@
warn_criteria => ['exit_status=0', 'max_age=1h'],
}

include sunet::nagios::nrpe_check_gpg_keys_bin

sunet::nagios::nrpe_command { 'check_metadata_keys':
command_line => "/usr/lib/nagios/plugins/check_gpg_keys ${cache_dir}/keys",
}
}
} else {
vcsrepo { '/opt/metadata':
Expand Down

0 comments on commit 92c23cf

Please sign in to comment.