os-control: re-add a playbook and move to rhel9 in staging
We accidentally dropped the os-control playbook, since it was part of the openshift 3.11 cluster playbooks. So, re-add that here, and move staging over to rhel9. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
e613cb8510
commit
28bca8208d
3 changed files with 50 additions and 2 deletions
|
@ -3,8 +3,8 @@ baseiptables: true
|
||||||
datacenter: iad2
|
datacenter: iad2
|
||||||
eth0_ipv4_gw: 10.3.166.254
|
eth0_ipv4_gw: 10.3.166.254
|
||||||
eth0_ipv4_ip: 10.3.166.50
|
eth0_ipv4_ip: 10.3.166.50
|
||||||
ks_repo: http://10.3.163.35/repo/rhel/RHEL7-x86_64/
|
ks_repo: http://10.3.163.35/repo/rhel/RHEL9-x86_64/
|
||||||
ks_url: http://10.3.163.35/repo/rhel/ks/kvm-rhel-7-iad2
|
ks_url: http://10.3.163.35/repo/rhel/ks/kvm-rhel
|
||||||
lvm_size: 100g
|
lvm_size: 100g
|
||||||
mem_size: 4096
|
mem_size: 4096
|
||||||
vmhost: vmhost-x86-11.stg.iad2.fedoraproject.org
|
vmhost: vmhost-x86-11.stg.iad2.fedoraproject.org
|
||||||
|
|
1
main.yml
1
main.yml
|
@ -48,6 +48,7 @@
|
||||||
- import_playbook: /srv/web/infra/ansible/playbooks/groups/mirrormanager.yml
|
- import_playbook: /srv/web/infra/ansible/playbooks/groups/mirrormanager.yml
|
||||||
- import_playbook: /srv/web/infra/ansible/playbooks/groups/nfs-servers.yml
|
- import_playbook: /srv/web/infra/ansible/playbooks/groups/nfs-servers.yml
|
||||||
- import_playbook: /srv/web/infra/ansible/playbooks/groups/noc.yml
|
- import_playbook: /srv/web/infra/ansible/playbooks/groups/noc.yml
|
||||||
|
- import_playbook: /srv/web/infra/ansible/playbooks/groups/os-control.yml
|
||||||
- import_playbook: /srv/web/infra/ansible/playbooks/groups/oci-registry.yml
|
- import_playbook: /srv/web/infra/ansible/playbooks/groups/oci-registry.yml
|
||||||
- import_playbook: /srv/web/infra/ansible/playbooks/groups/odcs.yml
|
- import_playbook: /srv/web/infra/ansible/playbooks/groups/odcs.yml
|
||||||
- import_playbook: /srv/web/infra/ansible/playbooks/groups/openqa-workers.yml
|
- import_playbook: /srv/web/infra/ansible/playbooks/groups/openqa-workers.yml
|
||||||
|
|
47
playbooks/groups/os-control.yml
Normal file
47
playbooks/groups/os-control.yml
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
# create an os server
|
||||||
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=os_control_stg:os_control"
|
||||||
|
|
||||||
|
- name: make the box be real
|
||||||
|
hosts: os_control:os_control_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
|
||||||
|
- ipa/client
|
||||||
|
- rsyncd
|
||||||
|
- sudo
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Create the directories to hold the templates
|
||||||
|
file:
|
||||||
|
path: "/etc/openshift_apps"
|
||||||
|
state: directory
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0770
|
||||||
|
|
||||||
|
- name: copy oc rpm
|
||||||
|
copy:
|
||||||
|
src: /srv/web/infra/bigfiles/openshiftboot/oc-client/oc-client.rpm
|
||||||
|
dest: /root/oc-client.rpm
|
||||||
|
|
||||||
|
- name: make sure oc-client is installed
|
||||||
|
dnf:
|
||||||
|
name: /root/oc-client.rpm
|
||||||
|
state: installed
|
||||||
|
|
||||||
|
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
||||||
|
- import_tasks: "{{ tasks_path }}/motd.yml"
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
Loading…
Add table
Add a link
Reference in a new issue