mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-07-26 16:41:07 +08:00
got all but endpoints-autocloud.py
This commit is contained in:
@@ -230,11 +230,9 @@ autocloud-backend-libvirt
|
||||
autocloud-backend-vbox
|
||||
|
||||
[autocloud-backend-libvirt]
|
||||
autocloud-backend01.phx2.fedoraproject.org
|
||||
autocloud-backend-libvirt.phx2.fedoraproject.org
|
||||
|
||||
[autocloud-backend-vbox]
|
||||
autocloud-backend02.phx2.fedoraproject.org
|
||||
autocloud-backend-vbox.phx2.fedoraproject.org
|
||||
|
||||
[autocloud-backend-stg:children]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=autocloud-backend01.phx2.fedoraproject.org:autocloud-backend-stg"
|
||||
- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=autocloud-backend-stg"
|
||||
|
||||
- name: dole out the generic configuration
|
||||
hosts: autocloud-backend;autocloud-backend-stg
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
# command: /usr/bin/alembic -c /usr/share/autocloud/alembic.ini upgrade head
|
||||
# args:
|
||||
# chdir: /usr/share/autocloud/
|
||||
# when: inventory_hostname.startswith('autocloud-backend01')
|
||||
# when: inventory_hostname.startswith('autocloud-backend-libvirt')
|
||||
|
||||
- name: And... start the autocloud backend again
|
||||
service: name="autocloud" state=started
|
||||
|
||||
@@ -21,11 +21,11 @@ subnet 10.5.126.0 netmask 255.255.255.0 {
|
||||
option host-name "virthost02";
|
||||
}
|
||||
|
||||
host autocloud-backend02 {
|
||||
host autocloud-backend-vbox {
|
||||
hardware ethernet e4:1f:13:ba:84:d0;
|
||||
fixed-address 10.5.126.122;
|
||||
next-server 10.5.126.41;
|
||||
option host-name "autocloud-backend02";
|
||||
option host-name "autocloud-backend-vbox";
|
||||
filename "pxelinux.0";
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
define host {
|
||||
host_name autocloud-backend01
|
||||
alias autocloud-backend01.phx2.fedoraproject.org
|
||||
host_name autocloud-backend-libvirt
|
||||
alias autocloud-backend-libvirt.phx2.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address autocloud-backend01.phx2.fedoraproject.org
|
||||
address autocloud-backend-libvirt.phx2.fedoraproject.org
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
define host {
|
||||
host_name autocloud-backend02
|
||||
alias autocloud-backend02.phx2.fedoraproject.org
|
||||
host_name autocloud-backend-vbox
|
||||
alias autocloud-backend-vbox.phx2.fedoraproject.org
|
||||
use defaulttemplate
|
||||
address autocloud-backend02.phx2.fedoraproject.org
|
||||
address autocloud-backend-vbox.phx2.fedoraproject.org
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
define service {
|
||||
host_name autocloud-backend01,autocloud-backend02
|
||||
host_name autocloud-backend-libvirt,autocloud-backend-vbox
|
||||
service_description Check for autocloud proc
|
||||
check_command check_by_nrpe!check_autocloud_proc
|
||||
use defaulttemplate
|
||||
}
|
||||
|
||||
define service {
|
||||
host_name autocloud-backend01,autocloud-backend02
|
||||
host_name autocloud-backend-libvirt,autocloud-backend-vbox
|
||||
service_description Check for redis proc
|
||||
check_command check_by_nrpe!check_redis_proc
|
||||
use defaulttemplate
|
||||
|
||||
@@ -101,7 +101,7 @@ define service {
|
||||
use defaulttemplate
|
||||
}
|
||||
define service {
|
||||
host_name autocloud-backend01,autocloud-backend02
|
||||
host_name autocloud-backend-libvirt,autocloud-backend-vbox
|
||||
service_description Check for fedmsg-hub proc
|
||||
check_command check_by_nrpe!check_fedmsg_hub_proc
|
||||
use defaulttemplate
|
||||
@@ -407,7 +407,7 @@ define service {
|
||||
}
|
||||
|
||||
define service {
|
||||
host_name autocloud-backend01,autocloud-backend02
|
||||
host_name autocloud-backend-libvirt,autocloud-backend-vbox
|
||||
service_description Check fedmsg consumers and producers hub
|
||||
check_command check_by_nrpe!check_fedmsg_cp_autocloud_backend
|
||||
use defaulttemplate
|
||||
@@ -521,7 +521,7 @@ define service {
|
||||
}
|
||||
|
||||
define service {
|
||||
host_name autocloud-backend01,autocloud-backend02
|
||||
host_name autocloud-backend-libvirt,autocloud-backend-vbox
|
||||
service_description Check fedmsg-hub consumers exceptions
|
||||
check_command check_by_nrpe!check_fedmsg_cexceptions_autocloud_backend
|
||||
use defaulttemplate
|
||||
@@ -635,7 +635,7 @@ define service {
|
||||
}
|
||||
|
||||
define service {
|
||||
host_name autocloud-backend01,autocloud-backend02
|
||||
host_name autocloud-backend-libvirt,autocloud-backend-vbox
|
||||
service_description Check fedmsg-hub consumers backlog
|
||||
check_command check_by_nrpe!check_fedmsg_cbacklog_autocloud_backend
|
||||
use defaulttemplate
|
||||
|
||||
Reference in New Issue
Block a user