FIX: nagios was using 66.187.228.248 which is not a usable ip address on Ibiblio networks currently
This commit is contained in:
parent
9ddbd9773d
commit
a34148440d
2 changed files with 28 additions and 5 deletions
28
playbooks/groups/build-kcs.yml
Normal file
28
playbooks/groups/build-kcs.yml
Normal 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
|
|
@ -9,12 +9,7 @@ define host {
|
||||||
use mincheck
|
use mincheck
|
||||||
check_command check-host-alive4
|
check_command check-host-alive4
|
||||||
address 152.19.134.129
|
address 152.19.134.129
|
||||||
{% if vars['nagios_location'] == 'iad2_internal' %}
|
|
||||||
parents iad2-gw
|
parents iad2-gw
|
||||||
{% elif vars['nagios_location'] == 'external' %}
|
|
||||||
address 66.187.228.248
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue