copr-fe: unblock copr-fe playbook
We will have a new variable copr_uptimerobot_api_key_ro soon: https://pagure.io/fedora-infrastructure/issue/10456
This commit is contained in:
parent
1e5cc169b4
commit
744523bee4
2 changed files with 4 additions and 1 deletions
|
@ -192,5 +192,5 @@
|
||||||
group: "nagios"
|
group: "nagios"
|
||||||
mode: 0750
|
mode: 0750
|
||||||
vars:
|
vars:
|
||||||
api_key: "{{ copr_uptimerobot_api_key_ro }}"
|
api_key: "{{ copr_uptimerobot_api_key_ro | default("not-configured") }}"
|
||||||
tags: copr_cdn
|
tags: copr_cdn
|
||||||
|
|
|
@ -68,6 +68,9 @@ class UptimeRobot:
|
||||||
def main():
|
def main():
|
||||||
monitor_name = "Copr's CDN"
|
monitor_name = "Copr's CDN"
|
||||||
uptime_robot = UptimeRobot(API_KEY)
|
uptime_robot = UptimeRobot(API_KEY)
|
||||||
|
if API_KEY == "not-configured":
|
||||||
|
LOG.info(API_KEY)
|
||||||
|
sys.exit(NAG_OK)
|
||||||
|
|
||||||
monitor = uptime_robot.get_monitor(monitor_name)
|
monitor = uptime_robot.get_monitor(monitor_name)
|
||||||
if monitor:
|
if monitor:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue