FIX: nagios was using 66.187.228.248 which is not a usable ip address on Ibiblio networks currently

This commit is contained in:
Stephen Smoogen 2022-07-29 09:40:57 -04:00
parent 9ddbd9773d
commit a34148440d
2 changed files with 28 additions and 5 deletions

View file

@ -0,0 +1,28 @@
# This playbook is meant to call out the roles for any configuration
# issues to get a Kojid cloud scheduled builder in place.
# Creation of the system is done by a different process so is not
# covered by this playbook.
- name: enable an ephemeral builder
hosts: build_x86_kcs:build_x86_kcs_stg
user: root
gather_facts: False
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
pre_tasks:
- include_vars: dir=/srv/web/infra/ansible/vars/all/ ignore_files=README
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- name: make a keytab dir
file: dest="/etc/kojid-cloud-scheduler/" state=directory
roles:
- role: keytab/service
kt_location: /etc/kojid-cloud-scheduler/kojid-cloud-scheduler.keytab
hostname: "{{ inventory_hostname }}"
service: compile

View file

@ -9,12 +9,7 @@ define host {
use mincheck
check_command check-host-alive4
address 152.19.134.129
{% if vars['nagios_location'] == 'iad2_internal' %}
parents iad2-gw
{% elif vars['nagios_location'] == 'external' %}
address 66.187.228.248
{% endif %}
}