mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-24 10:31:56 +08:00
add osbs-cluster including external openshift-ansible repo's cluster
playbook and inventory entries Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
@@ -1,4 +1,20 @@
|
||||
---
|
||||
#######
|
||||
# BEGIN: Ansible roles_path variables
|
||||
#
|
||||
# Background/reference about external repos pulled in:
|
||||
# https://pagure.io/fedora-infrastructure/issue/5476
|
||||
#
|
||||
ansible_base: /srv/web/infra
|
||||
|
||||
# Path to the openshift-ansible checkout as external git repo brought into
|
||||
# Fedora Infra
|
||||
openshift_ansible: /srv/web/infra/openshift-ansible/
|
||||
|
||||
#
|
||||
# END: Ansible roles_path variables
|
||||
#######
|
||||
|
||||
freezes: true
|
||||
# most of our systems are in phx2
|
||||
datacenter: phx2
|
||||
|
||||
@@ -19,3 +19,6 @@ osbs_koji_username: "kojibuilder_stg"
|
||||
koji_url: "koji.stg.fedoraproject.org"
|
||||
|
||||
osbs_client_conf_path: /etc/osbs.conf
|
||||
|
||||
openshift_node_labels="{'region':'infra'}"
|
||||
openshift_schedulable=False
|
||||
@@ -19,3 +19,5 @@ osbs_koji_username: "kojibuilder_stg"
|
||||
koji_url: "koji.stg.fedoraproject.org"
|
||||
|
||||
osbs_client_conf_path: /etc/osbs.conf
|
||||
|
||||
openshift_node_labels="{'region': 'primary', 'zone': 'default'}
|
||||
|
||||
@@ -1195,6 +1195,7 @@ qa14.qa.fedoraproject.org
|
||||
taskotron-stg01.qa.fedoraproject.org
|
||||
taskotron01.qa.fedoraproject.org
|
||||
|
||||
|
||||
[osbs]
|
||||
osbs-master01.phx2.fedoraproject.org
|
||||
|
||||
@@ -1202,14 +1203,47 @@ osbs-master01.phx2.fedoraproject.org
|
||||
osbs-node01.phx2.fedoraproject.org
|
||||
osbs-node02.phx2.fedoraproject.org
|
||||
|
||||
[osbs-stg]
|
||||
osbs-master01.stg.phx2.fedoraproject.org
|
||||
|
||||
#####
|
||||
# This is for the OSBS scale-out deployment work, the following group names are
|
||||
# unfortunately hard-coded into the openshift-ansible playbooks and roles and
|
||||
# must be used:
|
||||
# OSEv3
|
||||
# masters
|
||||
# nodes
|
||||
# etcd
|
||||
# lb
|
||||
#
|
||||
# In an attempt to separate this out the best as we can, the descriptive group
|
||||
# names are used below and we then set those groups as children as necessary
|
||||
[OSEv3:children]
|
||||
masters
|
||||
nodes
|
||||
etcd
|
||||
lb
|
||||
|
||||
[nodes:children]
|
||||
osbs-masters-stg
|
||||
osbs-nodes-stg
|
||||
|
||||
[masters:children]
|
||||
osbs-masters-stg
|
||||
|
||||
[etcd:children]
|
||||
osbs-masters-stg
|
||||
|
||||
[lb:children]
|
||||
osbs-masters-stg
|
||||
|
||||
[osbs-masters-stg]
|
||||
osbs-master01.stg.phx2.fedoraproject.org
|
||||
|
||||
[osbs-nodes-stg]
|
||||
osbs-node01.stg.phx2.fedoraproject.org
|
||||
osbs-node02.stg.phx2.fedoraproject.org
|
||||
|
||||
|
||||
# Docker (docker-distribution) registries
|
||||
[docker-registry]
|
||||
docker-registry01.phx2.fedoraproject.org
|
||||
docker-candidate-registry01.phx2.fedoraproject.org
|
||||
|
||||
34
playbooks/groups/osbs-cluster.yml
Normal file
34
playbooks/groups/osbs-cluster.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
# create an osbs server
|
||||
- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=osbs-nodes-stg:osbs-masters-stg"
|
||||
|
||||
- name: make the box be real
|
||||
hosts: osbs-masters-stg:osbs-nodes-stg
|
||||
user: root
|
||||
gather_facts: True
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- "/srv/private/ansible/vars.yml"
|
||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||
|
||||
roles:
|
||||
- base
|
||||
- rkhunter
|
||||
- nagios/client
|
||||
- hosts
|
||||
- fas_client
|
||||
- collectd/base
|
||||
- rsyncd
|
||||
- sudo
|
||||
- { role: openvpn/client,
|
||||
when: env != "staging" }
|
||||
|
||||
tasks:
|
||||
- include: "{{ tasks }}/yumrepos.yml"
|
||||
- include: "{{ tasks }}/2fa_client.yml"
|
||||
- include: "{{ tasks }}/motd.yml"
|
||||
|
||||
handlers:
|
||||
- include: "{{ handlers }}/restart_services.yml"
|
||||
|
||||
- include: "{{ openshift_ansible }}/playbooks/byo/openshift-cluster/config.yml"
|
||||
Reference in New Issue
Block a user