[yaml-lint] fix yamllint errors and warnings on plabooks
Signed-off-by: Ryan Lerch <rlerch@redhat.com>
This commit is contained in:
parent
4ffa8cd38e
commit
2cf38c1f17
204 changed files with 1210 additions and 1046 deletions
|
@ -8,6 +8,7 @@
|
||||||
# time ansible-playbook check-for-updates.yml | grep msg\": | awk -F: '{print $2}' | sort
|
# time ansible-playbook check-for-updates.yml | grep msg\": | awk -F: '{print $2}' | sort
|
||||||
#
|
#
|
||||||
|
|
||||||
|
---
|
||||||
- name: check for updates (EL)
|
- name: check for updates (EL)
|
||||||
hosts: virt_host:&distro_RedHat
|
hosts: virt_host:&distro_RedHat
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
# time ansible-playbook check-for-updates.yml | grep msg\": | awk -F: '{print $2}' | sort
|
# time ansible-playbook check-for-updates.yml | grep msg\": | awk -F: '{print $2}' | sort
|
||||||
#
|
#
|
||||||
|
|
||||||
|
---
|
||||||
- name: check for updates
|
- name: check for updates
|
||||||
hosts: distro_RedHat:distro_CentOS:!ocp*:!worker*
|
hosts: distro_RedHat:distro_CentOS:!ocp*:!worker*
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
|
|
|
@ -12,11 +12,11 @@
|
||||||
- name: create temp dir for collecting info
|
- name: create temp dir for collecting info
|
||||||
shell: mktemp -d
|
shell: mktemp -d
|
||||||
register: temp_dir
|
register: temp_dir
|
||||||
changed_when: False
|
changed_when: false
|
||||||
|
|
||||||
- name: Get list of active loaded services with systemctl
|
- name: Get list of active loaded services with systemctl
|
||||||
shell: '/bin/systemctl -t service --no-legend | egrep "loaded active" | tr -s " " | cut -d " " -f1'
|
shell: '/bin/systemctl -t service --no-legend | egrep "loaded active" | tr -s " " | cut -d " " -f1'
|
||||||
changed_when: False
|
changed_when: false
|
||||||
when: ansible_distribution_major_version|int >= 29 and ansible_distribution == 'Fedora'
|
when: ansible_distribution_major_version|int >= 29 and ansible_distribution == 'Fedora'
|
||||||
register: loaded_active_services_systemctl
|
register: loaded_active_services_systemctl
|
||||||
tags:
|
tags:
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
- name: Get list of active loaded services with systemctl
|
- name: Get list of active loaded services with systemctl
|
||||||
shell: '/bin/systemctl -t service --no-legend | egrep "loaded active" | tr -s " " | cut -d " " -f1'
|
shell: '/bin/systemctl -t service --no-legend | egrep "loaded active" | tr -s " " | cut -d " " -f1'
|
||||||
changed_when: False
|
changed_when: false
|
||||||
when: ansible_distribution_major_version|int > 6 and ansible_distribution == 'RedHat'
|
when: ansible_distribution_major_version|int > 6 and ansible_distribution == 'RedHat'
|
||||||
register: loaded_active_services_systemctl
|
register: loaded_active_services_systemctl
|
||||||
tags:
|
tags:
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
- name: Get list of inactive loaded services with systemctl
|
- name: Get list of inactive loaded services with systemctl
|
||||||
shell: '/bin/systemctl -t service --no-legend | egrep -v "loaded active" | tr -s " " | cut -d " " -f1'
|
shell: '/bin/systemctl -t service --no-legend | egrep -v "loaded active" | tr -s " " | cut -d " " -f1'
|
||||||
changed_when: False
|
changed_when: false
|
||||||
when: ansible_distribution_major_version|int >= 29 and ansible_distribution == 'Fedora'
|
when: ansible_distribution_major_version|int >= 29 and ansible_distribution == 'Fedora'
|
||||||
register: loaded_inactive_services_systemctl
|
register: loaded_inactive_services_systemctl
|
||||||
tags:
|
tags:
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
|
|
||||||
- name: Get list of inactive loaded services with systemctl
|
- name: Get list of inactive loaded services with systemctl
|
||||||
shell: '/bin/systemctl -t service --no-legend | egrep -v "loaded active" | tr -s " " | cut -d " " -f1'
|
shell: '/bin/systemctl -t service --no-legend | egrep -v "loaded active" | tr -s " " | cut -d " " -f1'
|
||||||
changed_when: False
|
changed_when: false
|
||||||
when: ansible_distribution_major_version|int > 6 and ansible_distribution == 'RedHat'
|
when: ansible_distribution_major_version|int > 6 and ansible_distribution == 'RedHat'
|
||||||
register: loaded_inactive_services_systemctl
|
register: loaded_inactive_services_systemctl
|
||||||
tags:
|
tags:
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
|
|
||||||
- name: Get list of enabled services with chkconfig at current runlevel
|
- name: Get list of enabled services with chkconfig at current runlevel
|
||||||
shell: "chkconfig | grep \"`runlevel | cut -d ' ' -f 2`:on\" | awk '{print $1}'"
|
shell: "chkconfig | grep \"`runlevel | cut -d ' ' -f 2`:on\" | awk '{print $1}'"
|
||||||
changed_when: False
|
changed_when: false
|
||||||
when: ansible_distribution_major_version|int <= 6 and ansible_distribution == 'RedHat'
|
when: ansible_distribution_major_version|int <= 6 and ansible_distribution == 'RedHat'
|
||||||
register: enabled_services_chkconfig
|
register: enabled_services_chkconfig
|
||||||
tags:
|
tags:
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
|
|
||||||
- name: Get list of disabled services with chkconfig at current runlevel
|
- name: Get list of disabled services with chkconfig at current runlevel
|
||||||
shell: "chkconfig | grep \"`runlevel | cut -d ' ' -f 2`:off\" | awk '{print $1}'"
|
shell: "chkconfig | grep \"`runlevel | cut -d ' ' -f 2`:off\" | awk '{print $1}'"
|
||||||
changed_when: False
|
changed_when: false
|
||||||
when: ansible_distribution_major_version|int <= 6 and ansible_distribution == 'RedHat'
|
when: ansible_distribution_major_version|int <= 6 and ansible_distribution == 'RedHat'
|
||||||
register: disabled_services_chkconfig
|
register: disabled_services_chkconfig
|
||||||
tags:
|
tags:
|
||||||
|
@ -73,7 +73,7 @@
|
||||||
- name: output enabled service list chkconfig
|
- name: output enabled service list chkconfig
|
||||||
shell: echo {{enabled_services_chkconfig.stdout_lines}} >> {{temp_dir.stdout}}/eservices
|
shell: echo {{enabled_services_chkconfig.stdout_lines}} >> {{temp_dir.stdout}}/eservices
|
||||||
when: enabled_services_chkconfig is defined and enabled_services_chkconfig.rc == 0
|
when: enabled_services_chkconfig is defined and enabled_services_chkconfig.rc == 0
|
||||||
changed_when: False
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- check
|
- check
|
||||||
- services
|
- services
|
||||||
|
@ -81,7 +81,7 @@
|
||||||
- name: output disabled loaded service list chkconfig
|
- name: output disabled loaded service list chkconfig
|
||||||
shell: echo {{disabled_services_chkconfig.stdout_lines}} >> {{temp_dir.stdout}}/dservices
|
shell: echo {{disabled_services_chkconfig.stdout_lines}} >> {{temp_dir.stdout}}/dservices
|
||||||
when: disabled_services_chkconfig is defined and disabled_services_chkconfig.rc == 0
|
when: disabled_services_chkconfig is defined and disabled_services_chkconfig.rc == 0
|
||||||
changed_when: False
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- check
|
- check
|
||||||
- services
|
- services
|
||||||
|
@ -90,7 +90,7 @@
|
||||||
- name: output loaded active service list systemctl
|
- name: output loaded active service list systemctl
|
||||||
shell: echo {{loaded_active_services_systemctl.stdout_lines}} >> {{temp_dir.stdout}}/laservices
|
shell: echo {{loaded_active_services_systemctl.stdout_lines}} >> {{temp_dir.stdout}}/laservices
|
||||||
when: loaded_active_services_systemctl is defined and loaded_active_services_systemctl.rc == 0
|
when: loaded_active_services_systemctl is defined and loaded_active_services_systemctl.rc == 0
|
||||||
changed_when: False
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- check
|
- check
|
||||||
- services
|
- services
|
||||||
|
@ -98,7 +98,7 @@
|
||||||
- name: output loaded inactive service list systemctl
|
- name: output loaded inactive service list systemctl
|
||||||
shell: echo {{loaded_inactive_services_systemctl.stdout_lines}} >> {{temp_dir.stdout}}/liservices
|
shell: echo {{loaded_inactive_services_systemctl.stdout_lines}} >> {{temp_dir.stdout}}/liservices
|
||||||
when: loaded_inactive_services_systemctl is defined and loaded_inactive_services_systemctl.rc == 0
|
when: loaded_inactive_services_systemctl is defined and loaded_inactive_services_systemctl.rc == 0
|
||||||
changed_when: False
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- check
|
- check
|
||||||
- services
|
- services
|
||||||
|
@ -108,14 +108,14 @@
|
||||||
script: needs-updates --host {{ inventory_hostname }}
|
script: needs-updates --host {{ inventory_hostname }}
|
||||||
register: list_update
|
register: list_update
|
||||||
delegate_to: 127.0.0.1
|
delegate_to: 127.0.0.1
|
||||||
changed_when: False
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- check
|
- check
|
||||||
- updates
|
- updates
|
||||||
|
|
||||||
- name: Show pending updates
|
- name: Show pending updates
|
||||||
shell: echo {{list_update.stdout_lines}} >> {{temp_dir.stdout}}/pending_updates
|
shell: echo {{list_update.stdout_lines}} >> {{temp_dir.stdout}}/pending_updates
|
||||||
changed_when: False
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- check
|
- check
|
||||||
- updates
|
- updates
|
||||||
|
@ -123,14 +123,14 @@
|
||||||
- name: Get processes that need restarting
|
- name: Get processes that need restarting
|
||||||
shell: needs-restarting
|
shell: needs-restarting
|
||||||
register: needs_restarting
|
register: needs_restarting
|
||||||
changed_when: False
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- check
|
- check
|
||||||
- restart
|
- restart
|
||||||
|
|
||||||
- name: Show processes that need restarting
|
- name: Show processes that need restarting
|
||||||
shell: echo {{needs_restarting.stdout_lines}} >> {{temp_dir.stdout}}/needing_restart
|
shell: echo {{needs_restarting.stdout_lines}} >> {{temp_dir.stdout}}/needing_restart
|
||||||
changed_when: False
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- check
|
- check
|
||||||
- restart
|
- restart
|
||||||
|
@ -138,7 +138,7 @@
|
||||||
- name: Get locally changed files from the rpm package
|
- name: Get locally changed files from the rpm package
|
||||||
shell: rpm_tmp_var=`mktemp` && ! rpm -Va 2>/dev/null > $rpm_tmp_var && [[ -s $rpm_tmp_var ]] && echo $rpm_tmp_var warn=no
|
shell: rpm_tmp_var=`mktemp` && ! rpm -Va 2>/dev/null > $rpm_tmp_var && [[ -s $rpm_tmp_var ]] && echo $rpm_tmp_var warn=no
|
||||||
register: localchanges
|
register: localchanges
|
||||||
changed_when: False
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- check
|
- check
|
||||||
- fileverify
|
- fileverify
|
||||||
|
@ -146,7 +146,7 @@
|
||||||
- name: Get locally changed files (excluding config files)
|
- name: Get locally changed files (excluding config files)
|
||||||
command: "egrep -v ' c /' {{ localchanges.stdout }}"
|
command: "egrep -v ' c /' {{ localchanges.stdout }}"
|
||||||
register: rpm_va_nc
|
register: rpm_va_nc
|
||||||
changed_when: False
|
changed_when: false
|
||||||
when: localchanges is defined and localchanges.stdout != ""
|
when: localchanges is defined and localchanges.stdout != ""
|
||||||
tags:
|
tags:
|
||||||
- check
|
- check
|
||||||
|
@ -155,7 +155,7 @@
|
||||||
- name: Show locally changed files (excluding config files)
|
- name: Show locally changed files (excluding config files)
|
||||||
shell: echo {{rpm_va_nc.stdout_lines}} >> {{temp_dir.stdout}}/local_changed
|
shell: echo {{rpm_va_nc.stdout_lines}} >> {{temp_dir.stdout}}/local_changed
|
||||||
when: rpm_va_nc.stdout != ""
|
when: rpm_va_nc.stdout != ""
|
||||||
changed_when: False
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- check
|
- check
|
||||||
- fileverify
|
- fileverify
|
||||||
|
@ -164,14 +164,14 @@
|
||||||
command: "egrep ' c /' {{ localchanges.stdout }}"
|
command: "egrep ' c /' {{ localchanges.stdout }}"
|
||||||
register: rpm_va_c
|
register: rpm_va_c
|
||||||
when: localchanges is defined and localchanges.stdout != ""
|
when: localchanges is defined and localchanges.stdout != ""
|
||||||
changed_when: False
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- check
|
- check
|
||||||
- fileverify
|
- fileverify
|
||||||
|
|
||||||
- name: 'Whitelist - Show locally changed files (config files)'
|
- name: 'Whitelist - Show locally changed files (config files)'
|
||||||
shell: echo {{rpm_va_c.stdout_lines}} >> {{temp_dir.stdout}}/local_config_changed
|
shell: echo {{rpm_va_c.stdout_lines}} >> {{temp_dir.stdout}}/local_config_changed
|
||||||
changed_when: False
|
changed_when: false
|
||||||
when: rpm_va_c.stdout != ""
|
when: rpm_va_c.stdout != ""
|
||||||
tags:
|
tags:
|
||||||
- check
|
- check
|
||||||
|
@ -180,21 +180,21 @@
|
||||||
- name: Check if using iptables
|
- name: Check if using iptables
|
||||||
shell: /sbin/iptables -S
|
shell: /sbin/iptables -S
|
||||||
register: iptablesn
|
register: iptablesn
|
||||||
changed_when: False
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- check
|
- check
|
||||||
- iptables
|
- iptables
|
||||||
|
|
||||||
- name: Show iptables rules
|
- name: Show iptables rules
|
||||||
shell: echo "{{iptablesn.stdout_lines}}" >> {{ temp_dir.stdout }}/iptables
|
shell: echo "{{iptablesn.stdout_lines}}" >> {{ temp_dir.stdout }}/iptables
|
||||||
changed_when: False
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- check
|
- check
|
||||||
- iptables
|
- iptables
|
||||||
|
|
||||||
- name: Show current SELinux status
|
- name: Show current SELinux status
|
||||||
shell: echo "SELinux is {{ ansible_selinux.status }} for this System" >> {{temp_dir.stdout}}/selinux
|
shell: echo "SELinux is {{ ansible_selinux.status }} for this System" >> {{temp_dir.stdout}}/selinux
|
||||||
changed_when: False
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- check
|
- check
|
||||||
- selinux
|
- selinux
|
||||||
|
@ -202,7 +202,7 @@
|
||||||
- name: Show Boot SELinux mode
|
- name: Show Boot SELinux mode
|
||||||
shell: echo "SELinux boots to {{ ansible_selinux.config_mode }} mode " >> {{temp_dir.stdout}}/selinux
|
shell: echo "SELinux boots to {{ ansible_selinux.config_mode }} mode " >> {{temp_dir.stdout}}/selinux
|
||||||
when: ansible_selinux.status != "disabled"
|
when: ansible_selinux.status != "disabled"
|
||||||
changed_when: False
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- check
|
- check
|
||||||
- selinux
|
- selinux
|
||||||
|
@ -210,7 +210,7 @@
|
||||||
- name: Show Current SELinux mode
|
- name: Show Current SELinux mode
|
||||||
shell: echo "SELinux currently is in {{ ansible_selinux.mode }} mode" >> {{temp_dir.stdout}}/selinux
|
shell: echo "SELinux currently is in {{ ansible_selinux.mode }} mode" >> {{temp_dir.stdout}}/selinux
|
||||||
when: ansible_selinux.status != "disabled"
|
when: ansible_selinux.status != "disabled"
|
||||||
changed_when: False
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- check
|
- check
|
||||||
- selinux
|
- selinux
|
||||||
|
@ -218,7 +218,7 @@
|
||||||
- name: Match current SELinux status with boot status
|
- name: Match current SELinux status with boot status
|
||||||
shell: echo "SElinux Current and Boot modes are in sync" >> {{temp_dir.stdout}}/selinux
|
shell: echo "SElinux Current and Boot modes are in sync" >> {{temp_dir.stdout}}/selinux
|
||||||
when: ansible_selinux.status != "disabled" and ansible_selinux.config_mode == ansible_selinux.mode
|
when: ansible_selinux.status != "disabled" and ansible_selinux.config_mode == ansible_selinux.mode
|
||||||
changed_when: False
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- check
|
- check
|
||||||
- selinux
|
- selinux
|
||||||
|
@ -227,7 +227,7 @@
|
||||||
- name: misMatch current SELinux status with boot status
|
- name: misMatch current SELinux status with boot status
|
||||||
shell: echo "SElinux Current and Boot modes are NOT in sync" >> {{temp_dir.stdout}}/selinux
|
shell: echo "SElinux Current and Boot modes are NOT in sync" >> {{temp_dir.stdout}}/selinux
|
||||||
when: ansible_selinux.status != "disabled" and ansible_selinux.config_mode != ansible_selinux.mode
|
when: ansible_selinux.status != "disabled" and ansible_selinux.config_mode != ansible_selinux.mode
|
||||||
changed_when: False
|
changed_when: false
|
||||||
tags:
|
tags:
|
||||||
- check
|
- check
|
||||||
- selinux
|
- selinux
|
||||||
|
@ -235,51 +235,51 @@
|
||||||
- name: resolve last persisted dir - if one is present
|
- name: resolve last persisted dir - if one is present
|
||||||
local_action: shell ls -d -1 {{datadir_prfx_path}}/{{inventory_hostname}}-* 2>/dev/null | sort -r | head -1
|
local_action: shell ls -d -1 {{datadir_prfx_path}}/{{inventory_hostname}}-* 2>/dev/null | sort -r | head -1
|
||||||
register: last_dir
|
register: last_dir
|
||||||
changed_when: False
|
changed_when: false
|
||||||
ignore_errors: True
|
ignore_errors: true
|
||||||
|
|
||||||
- name: get file list
|
- name: get file list
|
||||||
shell: ls -1 {{temp_dir.stdout}}/*
|
shell: ls -1 {{temp_dir.stdout}}/*
|
||||||
register: file_list
|
register: file_list
|
||||||
changed_when: False
|
changed_when: false
|
||||||
|
|
||||||
- name: get timestamp
|
- name: get timestamp
|
||||||
shell: "date +%Y-%m-%d-%H-%M-%S"
|
shell: "date +%Y-%m-%d-%H-%M-%S"
|
||||||
register: timestamp
|
register: timestamp
|
||||||
changed_when: False
|
changed_when: false
|
||||||
|
|
||||||
- name: create persisting-state directory
|
- name: create persisting-state directory
|
||||||
local_action: file path=/{{datadir_prfx_path}}/{{inventory_hostname}}-{{timestamp.stdout}} state=directory
|
local_action: file path=/{{datadir_prfx_path}}/{{inventory_hostname}}-{{timestamp.stdout}} state=directory
|
||||||
changed_when: False
|
changed_when: false
|
||||||
|
|
||||||
- name: fetch file list
|
- name: fetch file list
|
||||||
fetch: src={{item}} dest=/{{datadir_prfx_path}}/{{inventory_hostname}}-{{timestamp.stdout}}/ flat=true
|
fetch: src={{item}} dest=/{{datadir_prfx_path}}/{{inventory_hostname}}-{{timestamp.stdout}}/ flat=true
|
||||||
with_items: "{{file_list.stdout_lines}}"
|
with_items: "{{file_list.stdout_lines}}"
|
||||||
changed_when: False
|
changed_when: false
|
||||||
|
|
||||||
|
|
||||||
- name: diff the new files with last ones presisted
|
- name: diff the new files with last ones presisted
|
||||||
local_action: shell for file in {{datadir_prfx_path}}/{{inventory_hostname}}-{{timestamp.stdout}}/*; do filename=$(basename $file); diff {{datadir_prfx_path}}/{{inventory_hostname}}-{{timestamp.stdout}}/$filename {{last_dir.stdout.strip(':')}}/$filename; done
|
local_action: shell for file in {{datadir_prfx_path}}/{{inventory_hostname}}-{{timestamp.stdout}}/*; do filename=$(basename $file); diff {{datadir_prfx_path}}/{{inventory_hostname}}-{{timestamp.stdout}}/$filename {{last_dir.stdout.strip(':')}}/$filename; done
|
||||||
ignore_errors: True
|
ignore_errors: true
|
||||||
changed_when: False
|
changed_when: false
|
||||||
register: file_diff
|
register: file_diff
|
||||||
when: last_dir is defined and last_dir.stdout != ""
|
when: last_dir is defined and last_dir.stdout != ""
|
||||||
|
|
||||||
- name: display diff
|
- name: display diff
|
||||||
debug: var=file_diff.stdout_lines
|
debug: var=file_diff.stdout_lines
|
||||||
ignore_errors: True
|
ignore_errors: true
|
||||||
changed_when: False
|
changed_when: false
|
||||||
when: file_diff is defined
|
when: file_diff is defined
|
||||||
|
|
||||||
# clean up: can also be put as handlers
|
# clean up: can also be put as handlers
|
||||||
|
|
||||||
- name: clean remote temp dir
|
- name: clean remote temp dir
|
||||||
file: path={{temp_dir.stdout}} state=absent
|
file: path={{temp_dir.stdout}} state=absent
|
||||||
changed_when: False
|
changed_when: false
|
||||||
|
|
||||||
- name: clean rpm temp file
|
- name: clean rpm temp file
|
||||||
file: path={{localchanges.stdout}} state=absent
|
file: path={{localchanges.stdout}} state=absent
|
||||||
changed_when: False
|
changed_when: false
|
||||||
|
|
||||||
|
|
||||||
# handlers:
|
# handlers:
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#
|
#
|
||||||
# This playbook lets you safely display systemd logs for failed services
|
# This playbook lets you safely display systemd logs for failed services
|
||||||
|
|
||||||
|
---
|
||||||
- hosts: mirrorlist_proxies
|
- hosts: mirrorlist_proxies
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- name: clear memcache
|
- name: clear memcache
|
||||||
hosts: memcached:memcached-stg
|
hosts: memcached:memcached-stg
|
||||||
serial: 1
|
serial: 1
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- name: clear varnish cache
|
- name: clear varnish cache
|
||||||
hosts: proxies
|
hosts: proxies
|
||||||
user: root
|
user: root
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# requires --extra-vars="target='host1:host2:group'"
|
# requires --extra-vars="target='host1:host2:group'"
|
||||||
# thanks threebean on this.
|
# thanks threebean on this.
|
||||||
|
|
||||||
|
---
|
||||||
- name: kills postfix which has been left around alive after update.
|
- name: kills postfix which has been left around alive after update.
|
||||||
hosts: "{{ target }}"
|
hosts: "{{ target }}"
|
||||||
user: root
|
user: root
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
# requires --extra-vars="target=hostspec"
|
# requires --extra-vars="target=hostspec"
|
||||||
|
|
||||||
|
---
|
||||||
- name: destroy and undefine vm
|
- name: destroy and undefine vm
|
||||||
hosts: "{{ target }}"
|
hosts: "{{ target }}"
|
||||||
user: root
|
user: root
|
||||||
|
|
|
@ -3,10 +3,11 @@
|
||||||
# NOTE: make sure there is room/space for this instance on the buildvmhost
|
# NOTE: make sure there is room/space for this instance on the buildvmhost
|
||||||
# NOTE: most of these vars_path come from group_vars/backup_server or from hostvars
|
# NOTE: most of these vars_path come from group_vars/backup_server or from hostvars
|
||||||
|
|
||||||
|
---
|
||||||
- name: make backup server system
|
- name: make backup server system
|
||||||
hosts: backup
|
hosts: backup
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "bastion"
|
myhosts: "bastion"
|
||||||
|
@ -5,7 +6,7 @@
|
||||||
- name: make the boxen be real for real
|
- name: make the boxen be real for real
|
||||||
hosts: bastion
|
hosts: bastion
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -34,4 +35,3 @@
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "batcave"
|
myhosts: "batcave"
|
||||||
|
@ -5,7 +6,7 @@
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: batcave
|
hosts: batcave
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
# They also run some misc releng scripts.
|
# They also run some misc releng scripts.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "bodhi_backend:bodhi_backend_stg"
|
myhosts: "bodhi_backend:bodhi_backend_stg"
|
||||||
|
@ -14,7 +15,7 @@
|
||||||
- name: make bodhi-backend server system
|
- name: make bodhi-backend server system
|
||||||
hosts: bodhi_backend:bodhi_backend_stg
|
hosts: bodhi_backend:bodhi_backend_stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -3,10 +3,11 @@
|
||||||
# Creation of the system is done by a different process so is not
|
# Creation of the system is done by a different process so is not
|
||||||
# covered by this playbook.
|
# covered by this playbook.
|
||||||
|
|
||||||
|
---
|
||||||
- name: enable an ephemeral builder
|
- name: enable an ephemeral builder
|
||||||
hosts: build_x86_kcs:build_x86_kcs_stg
|
hosts: build_x86_kcs:build_x86_kcs_stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: False
|
gather_facts: false
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/happy_birthday.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/happy_birthday.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "buildhw:bkernel"
|
myhosts: "buildhw:bkernel"
|
||||||
|
@ -5,7 +6,7 @@
|
||||||
- name: make koji builder(s) on raw hw
|
- name: make koji builder(s) on raw hw
|
||||||
hosts: buildhw:bkernel
|
hosts: buildhw:bkernel
|
||||||
remote_user: root
|
remote_user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
# create a new osbuild worker
|
# create a new osbuild worker
|
||||||
|
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "buildvm_osbuild_ppc64le:buildvm_osbuild_ppc64le_staging"
|
myhosts: "buildvm_osbuild_ppc64le:buildvm_osbuild_ppc64le_staging"
|
||||||
|
@ -7,7 +8,7 @@
|
||||||
- name: make osbuild-worker
|
- name: make osbuild-worker
|
||||||
hosts: buildvm_osbuild_ppc64le:buildvm_osbuild_ppc64le_staging
|
hosts: buildvm_osbuild_ppc64le:buildvm_osbuild_ppc64le_staging
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
# NOTE: make sure there is room/space for this builder on the buildvmhost
|
# NOTE: make sure there is room/space for this builder on the buildvmhost
|
||||||
# NOTE: most of these vars_path come from group_vars/buildvm or from hostvars
|
# NOTE: most of these vars_path come from group_vars/buildvm or from hostvars
|
||||||
|
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "buildvm:buildvm_stg:buildvm_aarch64:buildvm_ppc64le:buildvm_ppc64le_stg:buildvm_aarch64_stg:buildvm_s390x_kvm"
|
myhosts: "buildvm:buildvm_stg:buildvm_aarch64:buildvm_ppc64le:buildvm_ppc64le_stg:buildvm_aarch64_stg:buildvm_s390x_kvm"
|
||||||
|
@ -10,7 +11,7 @@
|
||||||
- name: make koji builder(s)
|
- name: make koji builder(s)
|
||||||
hosts: buildvm:buildvm_stg:buildvm_aarch64:buildvm_ppc64le:buildvm_ppc64le_stg:buildvm_aarch64_stg:buildvm_s390x:buildvm_s390x_stg
|
hosts: buildvm:buildvm_stg:buildvm_aarch64:buildvm_ppc64le:buildvm_ppc64le_stg:buildvm_aarch64_stg:buildvm_s390x:buildvm_s390x_stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -86,7 +87,7 @@
|
||||||
tags:
|
tags:
|
||||||
- varnish
|
- varnish
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -104,7 +105,7 @@
|
||||||
tags:
|
tags:
|
||||||
- sshfs
|
- sshfs
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "busgateway:busgateway_stg"
|
myhosts: "busgateway:busgateway_stg"
|
||||||
|
@ -5,7 +6,7 @@
|
||||||
- name: dole out the generic configuration
|
- name: dole out the generic configuration
|
||||||
hosts: busgateway:busgateway_stg
|
hosts: busgateway:busgateway_stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -36,11 +37,11 @@
|
||||||
- name: dole out the service-specific config
|
- name: dole out the service-specific config
|
||||||
hosts: busgateway:busgateway_stg
|
hosts: busgateway:busgateway_stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: fedmsg/hub
|
- role: fedmsg/hub
|
||||||
enable_websocket_server: True
|
enable_websocket_server: true
|
||||||
- role: fedmsg/relay
|
- role: fedmsg/relay
|
||||||
- role: fedmsg/gateway
|
- role: fedmsg/gateway
|
||||||
- role: collectd/fedmsg-service
|
- role: collectd/fedmsg-service
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "centos_ipa_client_stg"
|
myhosts: "centos_ipa_client_stg"
|
||||||
|
@ -5,7 +6,7 @@
|
||||||
- name: make the boxes be realen
|
- name: make the boxes be realen
|
||||||
hosts: centos_ipa_client_stg
|
hosts: centos_ipa_client_stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -21,5 +22,3 @@
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "certgetter"
|
myhosts: "certgetter"
|
||||||
|
@ -5,7 +6,7 @@
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: certgetter
|
hosts: certgetter
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
---
|
||||||
- name: check/create instance
|
- name: check/create instance
|
||||||
hosts: copr_back_dev_aws:copr_back_aws
|
hosts: copr_back_dev_aws:copr_back_aws
|
||||||
user: root
|
user: root
|
||||||
gather_facts: False
|
gather_facts: false
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -25,7 +26,7 @@
|
||||||
- name: cloud basic setup
|
- name: cloud basic setup
|
||||||
hosts: copr_back_dev_aws:copr_back_aws
|
hosts: copr_back_dev_aws:copr_back_aws
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
- /srv/private/ansible/vars.yml
|
- /srv/private/ansible/vars.yml
|
||||||
|
@ -45,7 +46,7 @@
|
||||||
- name: provision instance
|
- name: provision instance
|
||||||
hosts: copr_back_dev_aws:copr_back_aws
|
hosts: copr_back_dev_aws:copr_back_aws
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
---
|
||||||
- name: check/create instance
|
- name: check/create instance
|
||||||
hosts: copr_dist_git_dev_aws:copr_dist_git_aws
|
hosts: copr_dist_git_dev_aws:copr_dist_git_aws
|
||||||
user: root
|
user: root
|
||||||
gather_facts: False
|
gather_facts: false
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -20,7 +21,7 @@
|
||||||
- name: cloud basic setup
|
- name: cloud basic setup
|
||||||
hosts: copr_dist_git_dev_aws:copr_dist_git_aws
|
hosts: copr_dist_git_dev_aws:copr_dist_git_aws
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
- "/srv/private/ansible/vars.yml"
|
- "/srv/private/ansible/vars.yml"
|
||||||
|
@ -41,7 +42,7 @@
|
||||||
- name: provision instance
|
- name: provision instance
|
||||||
hosts: copr_dist_git_dev_aws:copr_dist_git_aws
|
hosts: copr_dist_git_dev_aws:copr_dist_git_aws
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
---
|
||||||
- name: check/create instance
|
- name: check/create instance
|
||||||
hosts: copr_front_dev_aws:copr_front_aws
|
hosts: copr_front_dev_aws:copr_front_aws
|
||||||
user: root
|
user: root
|
||||||
gather_facts: False
|
gather_facts: false
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -25,7 +26,7 @@
|
||||||
|
|
||||||
- name: cloud basic setup
|
- name: cloud basic setup
|
||||||
hosts: copr_front_dev_aws:copr_front_aws
|
hosts: copr_front_dev_aws:copr_front_aws
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
- "/srv/private/ansible/vars.yml"
|
- "/srv/private/ansible/vars.yml"
|
||||||
|
@ -41,7 +42,7 @@
|
||||||
|
|
||||||
- name: provision instance
|
- name: provision instance
|
||||||
hosts: copr_front_dev_aws:copr_front_aws
|
hosts: copr_front_dev_aws:copr_front_aws
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
---
|
||||||
- name: Setup copr hypervisor hosts
|
- name: Setup copr hypervisor hosts
|
||||||
hosts: copr_hypervisor
|
hosts: copr_hypervisor
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
---
|
||||||
- name: check/create instance
|
- name: check/create instance
|
||||||
hosts: copr_keygen_dev_aws:copr_keygen_aws
|
hosts: copr_keygen_dev_aws:copr_keygen_aws
|
||||||
gather_facts: False
|
gather_facts: false
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -20,7 +21,7 @@
|
||||||
- name: gather facts
|
- name: gather facts
|
||||||
setup:
|
setup:
|
||||||
check_mode: no
|
check_mode: no
|
||||||
ignore_errors: True
|
ignore_errors: true
|
||||||
register: facts
|
register: facts
|
||||||
- name: install python2 and dnf stuff
|
- name: install python2 and dnf stuff
|
||||||
raw: dnf -y install python-dnf libselinux-python yum
|
raw: dnf -y install python-dnf libselinux-python yum
|
||||||
|
@ -28,7 +29,7 @@
|
||||||
|
|
||||||
- name: cloud basic setup
|
- name: cloud basic setup
|
||||||
hosts: copr_keygen_dev_aws:copr_keygen_aws
|
hosts: copr_keygen_dev_aws:copr_keygen_aws
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
- "/srv/private/ansible/vars.yml"
|
- "/srv/private/ansible/vars.yml"
|
||||||
|
@ -44,7 +45,7 @@
|
||||||
|
|
||||||
- name: provision instance
|
- name: provision instance
|
||||||
hosts: copr_keygen_dev_aws:copr_keygen_aws
|
hosts: copr_keygen_dev_aws:copr_keygen_aws
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -53,7 +53,7 @@
|
||||||
copy:
|
copy:
|
||||||
content: "{{ copr_dev_pulp_default_admin_password }}"
|
content: "{{ copr_dev_pulp_default_admin_password }}"
|
||||||
dest: /tmp/pulp_default_admin_password
|
dest: /tmp/pulp_default_admin_password
|
||||||
mode: 000
|
mode: "000"
|
||||||
|
|
||||||
- name: cloud basic setup
|
- name: cloud basic setup
|
||||||
hosts: copr_pulp_dev_aws:copr_pulp_aws
|
hosts: copr_pulp_dev_aws:copr_pulp_aws
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# create a data-reports vm
|
# create a data-reports vm
|
||||||
#
|
#
|
||||||
|
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "data_reports"
|
myhosts: "data_reports"
|
||||||
|
@ -8,7 +9,7 @@
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: data_reports
|
hosts: data_reports
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -3,10 +3,11 @@
|
||||||
|
|
||||||
# Once the instance exists, configure it.
|
# Once the instance exists, configure it.
|
||||||
|
|
||||||
|
---
|
||||||
- name: check/create instance
|
- name: check/create instance
|
||||||
hosts: db.stg.aws.fedoraproject.org
|
hosts: db.stg.aws.fedoraproject.org
|
||||||
user: root
|
user: root
|
||||||
gather_facts: False
|
gather_facts: false
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -27,7 +28,7 @@
|
||||||
- name: cloud basic setup
|
- name: cloud basic setup
|
||||||
hosts: db.stg.aws.fedoraproject.org
|
hosts: db.stg.aws.fedoraproject.org
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
- /srv/private/ansible/vars.yml
|
- /srv/private/ansible/vars.yml
|
||||||
|
@ -41,7 +42,7 @@
|
||||||
- name: configure server
|
- name: configure server
|
||||||
hosts: db.stg.aws.fedoraproject.org
|
hosts: db.stg.aws.fedoraproject.org
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "debuginfod:debuginfod_stg"
|
myhosts: "debuginfod:debuginfod_stg"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
# create a new dns server
|
# create a new dns server
|
||||||
|
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "dns"
|
myhosts: "dns"
|
||||||
|
@ -7,7 +8,7 @@
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: dns
|
hosts: dns
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "download_ibiblio:download_cc_rdu:download_iad2"
|
myhosts: "download_ibiblio:download_cc_rdu:download_iad2"
|
||||||
|
@ -5,7 +6,7 @@
|
||||||
- name: Download servers
|
- name: Download servers
|
||||||
hosts: download
|
hosts: download
|
||||||
user: root
|
user: root
|
||||||
gather_facts: False
|
gather_facts: false
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -21,7 +22,7 @@
|
||||||
- name: post-initial-steps
|
- name: post-initial-steps
|
||||||
hosts: download
|
hosts: download
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -89,4 +90,3 @@
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: flatpak_cache
|
hosts: flatpak_cache
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
# NOTE: make sure there is room/space for this server on the vmhost
|
# NOTE: make sure there is room/space for this server on the vmhost
|
||||||
# NOTE: most of these vars_path come from group_vars/github2fedmsg* or from hostvars
|
# NOTE: most of these vars_path come from group_vars/github2fedmsg* or from hostvars
|
||||||
|
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "github2fedmsg:github2fedmsg_stg"
|
myhosts: "github2fedmsg:github2fedmsg_stg"
|
||||||
|
@ -10,7 +11,7 @@
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: github2fedmsg:github2fedmsg_stg
|
hosts: github2fedmsg:github2fedmsg_stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -43,7 +44,7 @@
|
||||||
- name: deploy service-specific config
|
- name: deploy service-specific config
|
||||||
hosts: github2fedmsg:github2fedmsg_stg
|
hosts: github2fedmsg:github2fedmsg_stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "ipa:ipa_stg"
|
myhosts: "ipa:ipa_stg"
|
||||||
|
@ -5,7 +6,7 @@
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: ipa:ipa_stg
|
hosts: ipa:ipa_stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -37,7 +38,7 @@
|
||||||
- name: deploy ipa itself
|
- name: deploy ipa itself
|
||||||
hosts: ipa:ipa_stg
|
hosts: ipa:ipa_stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -93,7 +94,7 @@
|
||||||
- name: do base role once more to revert any resolvconf changes
|
- name: do base role once more to revert any resolvconf changes
|
||||||
hosts: ipa:ipa_stg
|
hosts: ipa:ipa_stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "ipsilon:ipsilon_stg"
|
myhosts: "ipsilon:ipsilon_stg"
|
||||||
|
@ -6,7 +7,7 @@
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: ipsilon:ipsilon_stg
|
hosts: ipsilon:ipsilon_stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -46,7 +47,7 @@
|
||||||
- name: deploy ipsilon itself
|
- name: deploy ipsilon itself
|
||||||
hosts: ipsilon:ipsilon_stg
|
hosts: ipsilon:ipsilon_stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -68,7 +69,7 @@
|
||||||
- name: setup IPA
|
- name: setup IPA
|
||||||
hosts: ipa[0]:ipa_stg[0]
|
hosts: ipa[0]:ipa_stg[0]
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
# NOTE: should be used with --limit most of the time
|
# NOTE: should be used with --limit most of the time
|
||||||
# NOTE: most of these vars_path come from group_vars/koji-hub or from hostvars
|
# NOTE: most of these vars_path come from group_vars/koji-hub or from hostvars
|
||||||
|
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "koji_stg:koji"
|
myhosts: "koji_stg:koji"
|
||||||
|
@ -11,7 +12,7 @@
|
||||||
- name: make koji_hub server system
|
- name: make koji_hub server system
|
||||||
hosts: koji_stg:koji
|
hosts: koji_stg:koji
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -133,7 +134,7 @@
|
||||||
tags:
|
tags:
|
||||||
- sshfs
|
- sshfs
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "kojipkgs"
|
myhosts: "kojipkgs"
|
||||||
|
@ -5,7 +6,7 @@
|
||||||
- name: make the boxen be real for real
|
- name: make the boxen be real for real
|
||||||
hosts: kojipkgs
|
hosts: kojipkgs
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "logging"
|
myhosts: "logging"
|
||||||
|
@ -5,7 +6,7 @@
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: logging
|
hosts: logging
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -57,7 +58,7 @@
|
||||||
- name: Cloud Image stats
|
- name: Cloud Image stats
|
||||||
hosts: log01.iad2.fedoraproject.org
|
hosts: log01.iad2.fedoraproject.org
|
||||||
user: root
|
user: root
|
||||||
gather_facts: False
|
gather_facts: false
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -73,7 +74,7 @@
|
||||||
- name: dole out the service-specific config
|
- name: dole out the service-specific config
|
||||||
hosts: log01.iad2.fedoraproject.org
|
hosts: log01.iad2.fedoraproject.org
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
- "/srv/private/ansible/vars.yml"
|
- "/srv/private/ansible/vars.yml"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
---
|
||||||
- name: Setup maintainer test hosts
|
- name: Setup maintainer test hosts
|
||||||
hosts: maintainer_test
|
hosts: maintainer_test
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
tags:
|
tags:
|
||||||
- maintainer-test
|
- maintainer-test
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
# NOTE: should be used with --limit most of the time
|
# NOTE: should be used with --limit most of the time
|
||||||
# NOTE: most of these vars_path come from group_vars/backup_server or from hostvars
|
# NOTE: most of these vars_path come from group_vars/backup_server or from hostvars
|
||||||
|
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "db03.stg.iad2.fedoraproject.org:db03.iad2.fedoraproject.org"
|
myhosts: "db03.stg.iad2.fedoraproject.org:db03.iad2.fedoraproject.org"
|
||||||
|
@ -11,7 +12,7 @@
|
||||||
- name: configure mariadb server system
|
- name: configure mariadb server system
|
||||||
hosts: db03.stg.iad2.fedoraproject.org:db03.iad2.fedoraproject.org
|
hosts: db03.stg.iad2.fedoraproject.org:db03.iad2.fedoraproject.org
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "memcached:memcached_stg"
|
myhosts: "memcached:memcached_stg"
|
||||||
|
@ -5,7 +6,7 @@
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: memcached:memcached_stg
|
hosts: memcached:memcached_stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
# This is a basic playbook
|
# This is a basic playbook
|
||||||
|
|
||||||
|
---
|
||||||
- name: dole out the basic configuration
|
- name: dole out the basic configuration
|
||||||
hosts: nfs_servers
|
hosts: nfs_servers
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -33,7 +34,7 @@
|
||||||
- name: Deal with drive items on storinator01
|
- name: Deal with drive items on storinator01
|
||||||
hosts: storinator01.rdu-cc.fedoraproject.org
|
hosts: storinator01.rdu-cc.fedoraproject.org
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
- "/srv/private/ansible/vars.yml"
|
- "/srv/private/ansible/vars.yml"
|
||||||
|
@ -75,7 +76,7 @@
|
||||||
- name: Deal with NFS
|
- name: Deal with NFS
|
||||||
hosts: storinator01.rdu-cc.fedoraproject.org
|
hosts: storinator01.rdu-cc.fedoraproject.org
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
- "/srv/private/ansible/vars.yml"
|
- "/srv/private/ansible/vars.yml"
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# This is a basic playbook
|
# This is a basic playbook
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "nagios"
|
myhosts: "nagios"
|
||||||
|
@ -6,7 +7,7 @@
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: nagios
|
hosts: nagios
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -51,7 +52,7 @@
|
||||||
- name: deploy service-specific config (just for production)
|
- name: deploy service-specific config (just for production)
|
||||||
hosts: nagios
|
hosts: nagios
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# create an osbs server
|
# create an osbs server
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "oci_registry:oci_registry_stg"
|
myhosts: "oci_registry:oci_registry_stg"
|
||||||
|
@ -6,7 +7,7 @@
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: oci_registry:oci_registry_stg
|
hosts: oci_registry:oci_registry_stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -42,7 +43,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0755
|
mode: "0755"
|
||||||
when: "env == 'staging'"
|
when: "env == 'staging'"
|
||||||
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
||||||
|
|
||||||
|
@ -68,7 +69,7 @@
|
||||||
role: docker-distribution,
|
role: docker-distribution,
|
||||||
conf_path: "/etc/docker-distribution/registry/config.yml",
|
conf_path: "/etc/docker-distribution/registry/config.yml",
|
||||||
tls: {
|
tls: {
|
||||||
enabled: False,
|
enabled: false,
|
||||||
},
|
},
|
||||||
log: {
|
log: {
|
||||||
fields: {
|
fields: {
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
---
|
||||||
- name: setup base openQA host
|
- name: setup base openQA host
|
||||||
hosts: openqa_onebox_test
|
hosts: openqa_onebox_test
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -31,7 +32,7 @@
|
||||||
- name: configure openQA
|
- name: configure openQA
|
||||||
hosts: openqa_onebox_test
|
hosts: openqa_onebox_test
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
---
|
||||||
- name: configure openQA workers
|
- name: configure openQA workers
|
||||||
hosts: openqa_workers:openqa_lab_workers
|
hosts: openqa_workers:openqa_lab_workers
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "openqa:openqa_lab"
|
myhosts: "openqa:openqa_lab"
|
||||||
|
@ -5,7 +6,7 @@
|
||||||
- name: setup base openQA host
|
- name: setup base openQA host
|
||||||
hosts: openqa:openqa_lab
|
hosts: openqa:openqa_lab
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -35,7 +36,7 @@
|
||||||
- name: configure fedora-messaging queues on openQA servers
|
- name: configure fedora-messaging queues on openQA servers
|
||||||
hosts: openqa:openqa_lab
|
hosts: openqa:openqa_lab
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -194,7 +195,7 @@
|
||||||
- name: configure openQA
|
- name: configure openQA
|
||||||
hosts: openqa:openqa_lab
|
hosts: openqa:openqa_lab
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
# This is a basic playbook
|
# This is a basic playbook
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "os_control:os_control_stg"
|
myhosts: "os_control:os_control_stg"
|
||||||
|
@ -6,7 +7,7 @@
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: os_control:os_control_stg
|
hosts: os_control:os_control_stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -30,7 +31,7 @@
|
||||||
state: directory
|
state: directory
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0770
|
mode: "0770"
|
||||||
|
|
||||||
- name: copy oc rpm
|
- name: copy oc rpm
|
||||||
copy:
|
copy:
|
||||||
|
@ -46,7 +47,7 @@
|
||||||
copy:
|
copy:
|
||||||
src: "{{ files }}/scripts/jobs-summary"
|
src: "{{ files }}/scripts/jobs-summary"
|
||||||
dest: /usr/local/bin/jobs-summary
|
dest: /usr/local/bin/jobs-summary
|
||||||
mode: 0755
|
mode: "0755"
|
||||||
|
|
||||||
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
||||||
- import_tasks: "{{ tasks_path }}/motd.yml"
|
- import_tasks: "{{ tasks_path }}/motd.yml"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
# create a new proxy server
|
# create a new proxy server
|
||||||
|
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "os_proxies"
|
myhosts: "os_proxies"
|
||||||
|
@ -7,7 +8,7 @@
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: os_proxies
|
hosts: os_proxies
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -40,4 +41,3 @@
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "pagure:pagure_stg"
|
myhosts: "pagure:pagure_stg"
|
||||||
|
@ -5,7 +6,7 @@
|
||||||
- name: make the boxen be real for real
|
- name: make the boxen be real for real
|
||||||
hosts: pagure:pagure_stg
|
hosts: pagure:pagure_stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -36,7 +37,7 @@
|
||||||
- name: deploy pagure itself
|
- name: deploy pagure itself
|
||||||
hosts: pagure:pagure_stg
|
hosts: pagure:pagure_stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
# NOTE: should be used with --limit most of the time
|
# NOTE: should be used with --limit most of the time
|
||||||
# NOTE: most of these vars_path come from group_vars/backup_server or from hostvars
|
# NOTE: most of these vars_path come from group_vars/backup_server or from hostvars
|
||||||
|
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "db-fas01.stg.iad2.fedoraproject.org:db01.stg.iad2.fedoraproject.org:db-koji01.stg.iad2.fedoraproject.org:db-fas01.iad2.fedoraproject.org:db01.iad2.fedoraproject.org:db-koji01.iad2.fedoraproject.org:db-openqa01.iad2.fedoraproject.org:db-datanommer01.stg.iad2.fedoraproject.org:db-datanommer02.iad2.fedoraproject.org"
|
myhosts: "db-fas01.stg.iad2.fedoraproject.org:db01.stg.iad2.fedoraproject.org:db-koji01.stg.iad2.fedoraproject.org:db-fas01.iad2.fedoraproject.org:db01.iad2.fedoraproject.org:db-koji01.iad2.fedoraproject.org:db-openqa01.iad2.fedoraproject.org:db-datanommer01.stg.iad2.fedoraproject.org:db-datanommer02.iad2.fedoraproject.org"
|
||||||
|
@ -11,7 +12,7 @@
|
||||||
- name: configure postgresql server system
|
- name: configure postgresql server system
|
||||||
hosts: db-fas01.stg.iad2.fedoraproject.org:db01.stg.iad2.fedoraproject.org:db-koji01.stg.iad2.fedoraproject.org:db-fas01.iad2.fedoraproject.org:db01.iad2.fedoraproject.org:db-koji01.iad2.fedoraproject.org:db-openqa01.iad2.fedoraproject.org:db-datanommer01.stg.iad2.fedoraproject.org:db-datanommer02.iad2.fedoraproject.org
|
hosts: db-fas01.stg.iad2.fedoraproject.org:db01.stg.iad2.fedoraproject.org:db-koji01.stg.iad2.fedoraproject.org:db-fas01.iad2.fedoraproject.org:db01.iad2.fedoraproject.org:db-koji01.iad2.fedoraproject.org:db-openqa01.iad2.fedoraproject.org:db-datanommer01.stg.iad2.fedoraproject.org:db-datanommer02.iad2.fedoraproject.org
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
# create a new proxy server
|
# create a new proxy server
|
||||||
|
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "proxies:proxies_stg:!proxy05.fedoraproject.org:!cloud_aws"
|
myhosts: "proxies:proxies_stg:!proxy05.fedoraproject.org:!cloud_aws"
|
||||||
|
@ -7,7 +8,7 @@
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: proxies_stg:proxies
|
hosts: proxies_stg:proxies
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -51,7 +52,7 @@
|
||||||
dest: /etc/modules-load.d/nf_conntrack.conf
|
dest: /etc/modules-load.d/nf_conntrack.conf
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: "0644"
|
||||||
|
|
||||||
- name: set ip_conntrack_max to a high value as the proxies deal with lots of connections
|
- name: set ip_conntrack_max to a high value as the proxies deal with lots of connections
|
||||||
sysctl: name=net.nf_conntrack_max value=26214400 state=present sysctl_set=yes reload=yes
|
sysctl: name=net.nf_conntrack_max value=26214400 state=present sysctl_set=yes reload=yes
|
||||||
|
@ -80,7 +81,7 @@
|
||||||
- name: Set up the proxy basics
|
- name: Set up the proxy basics
|
||||||
hosts: proxies_stg:proxies
|
hosts: proxies_stg:proxies
|
||||||
user: root
|
user: root
|
||||||
gather_facts: False
|
gather_facts: false
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -121,7 +122,7 @@
|
||||||
hosts: proxies_stg:proxies
|
hosts: proxies_stg:proxies
|
||||||
strategy: free
|
strategy: free
|
||||||
user: root
|
user: root
|
||||||
gather_facts: False
|
gather_facts: false
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "rabbitmq:rabbitmq_stg"
|
myhosts: "rabbitmq:rabbitmq_stg"
|
||||||
|
@ -5,7 +6,7 @@
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: rabbitmq:rabbitmq_stg
|
hosts: rabbitmq:rabbitmq_stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
# NOTE: make sure there is room/space for this instance on the buildvmhost
|
# NOTE: make sure there is room/space for this instance on the buildvmhost
|
||||||
# NOTE: most of these vars_path come from group_vars/releng or from hostvars
|
# NOTE: most of these vars_path come from group_vars/releng or from hostvars
|
||||||
|
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "releng_compose:releng_compose_stg:releng_compose_eln"
|
myhosts: "releng_compose:releng_compose_stg:releng_compose_eln"
|
||||||
|
@ -203,7 +204,7 @@
|
||||||
dest: /etc/krb5.releng.keytab
|
dest: /etc/krb5.releng.keytab
|
||||||
owner: root
|
owner: root
|
||||||
group: "releng-team"
|
group: "releng-team"
|
||||||
mode: 0640
|
mode: "0640"
|
||||||
tags:
|
tags:
|
||||||
- containerrebuild
|
- containerrebuild
|
||||||
|
|
||||||
|
@ -213,7 +214,7 @@
|
||||||
dest: /etc/pki/releng
|
dest: /etc/pki/releng
|
||||||
owner: root
|
owner: root
|
||||||
group: "releng-team"
|
group: "releng-team"
|
||||||
mode: 0600
|
mode: "0600"
|
||||||
tags:
|
tags:
|
||||||
- containerrebuild
|
- containerrebuild
|
||||||
|
|
||||||
|
@ -223,7 +224,7 @@
|
||||||
dest: "/usr/local/bin/relengpush"
|
dest: "/usr/local/bin/relengpush"
|
||||||
owner: root
|
owner: root
|
||||||
group: "releng-team"
|
group: "releng-team"
|
||||||
mode: 0750
|
mode: "0750"
|
||||||
tags:
|
tags:
|
||||||
- containerrebuild
|
- containerrebuild
|
||||||
|
|
||||||
|
@ -233,7 +234,7 @@
|
||||||
dest: "/usr/local/bin/relengpush-int"
|
dest: "/usr/local/bin/relengpush-int"
|
||||||
owner: root
|
owner: root
|
||||||
group: "releng-team"
|
group: "releng-team"
|
||||||
mode: 0750
|
mode: "0750"
|
||||||
tags:
|
tags:
|
||||||
- containerrebuild
|
- containerrebuild
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
---
|
||||||
- name: AWS setup
|
- name: AWS setup
|
||||||
hosts: retrace_stg_aws
|
hosts: retrace_stg_aws
|
||||||
user: root
|
user: root
|
||||||
gather_facts: False
|
gather_facts: false
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -17,7 +18,7 @@
|
||||||
- name: setup RabbitMQ
|
- name: setup RabbitMQ
|
||||||
hosts: rabbitmq[0]:rabbitmq_stg[0]
|
hosts: rabbitmq[0]:rabbitmq_stg[0]
|
||||||
user: root
|
user: root
|
||||||
gather_facts: False
|
gather_facts: false
|
||||||
tags: rabbitmq
|
tags: rabbitmq
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
|
@ -51,7 +52,7 @@
|
||||||
- name: Setup retrace hosts
|
- name: Setup retrace hosts
|
||||||
hosts: retrace,retrace_stg
|
hosts: retrace,retrace_stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -79,7 +80,7 @@
|
||||||
|
|
||||||
- name: setup FAF server
|
- name: setup FAF server
|
||||||
hosts: retrace,retrace_stg
|
hosts: retrace,retrace_stg
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -99,7 +100,7 @@
|
||||||
|
|
||||||
- name: setup retrace server
|
- name: setup retrace server
|
||||||
hosts: retrace,retrace_stg
|
hosts: retrace,retrace_stg
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "secondary"
|
myhosts: "secondary"
|
||||||
|
@ -5,7 +6,7 @@
|
||||||
- name: setup secondary arch download server
|
- name: setup secondary arch download server
|
||||||
hosts: secondary
|
hosts: secondary
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
# Access is via management interface only. This playbook does initial setup.
|
# Access is via management interface only. This playbook does initial setup.
|
||||||
# Please check with rel-eng before doing anything here.
|
# Please check with rel-eng before doing anything here.
|
||||||
|
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "sign_bridge"
|
myhosts: "sign_bridge"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
# create smtp auth servers
|
# create smtp auth servers
|
||||||
|
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "smtp_auth"
|
myhosts: "smtp_auth"
|
||||||
|
@ -7,7 +8,7 @@
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: smtp_auth
|
hosts: smtp_auth
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
# create smtp servers
|
# create smtp servers
|
||||||
|
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "smtp_mm"
|
myhosts: "smtp_mm"
|
||||||
|
@ -7,7 +8,7 @@
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: smtp_mm
|
hosts: smtp_mm
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "tang"
|
myhosts: "tang"
|
||||||
|
@ -5,7 +6,7 @@
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: tang
|
hosts: tang
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "torrent"
|
myhosts: "torrent"
|
||||||
|
@ -5,7 +6,7 @@
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: torrent
|
hosts: torrent
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "value:value_stg"
|
myhosts: "value:value_stg"
|
||||||
|
@ -5,7 +6,7 @@
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: value:value_stg
|
hosts: value:value_stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
# NOTE: should be used with --limit most of the time
|
# NOTE: should be used with --limit most of the time
|
||||||
# NOTE: most of these vars_path come from group_vars/backup_server or from hostvars
|
# NOTE: most of these vars_path come from group_vars/backup_server or from hostvars
|
||||||
|
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/happy_birthday.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/happy_birthday.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "virthost:bvirthost:buildvmhost:colo_virt"
|
myhosts: "virthost:bvirthost:buildvmhost:colo_virt"
|
||||||
|
@ -9,7 +10,7 @@
|
||||||
- name: make virthost server system
|
- name: make virthost server system
|
||||||
hosts: virthost:bvirthost:buildvmhost:colo_virt
|
hosts: virthost:bvirthost:buildvmhost:colo_virt
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
# These servers run mediawiki for the main fedora wiki instance.
|
# These servers run mediawiki for the main fedora wiki instance.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "wiki:wiki_stg"
|
myhosts: "wiki:wiki_stg"
|
||||||
|
@ -10,7 +11,7 @@
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: wiki:wiki_stg
|
hosts: wiki:wiki_stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "zabbix_stg:zabbix"
|
myhosts: "zabbix_stg:zabbix"
|
||||||
|
@ -5,7 +6,7 @@
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: zabbix_stg:zabbix
|
hosts: zabbix_stg:zabbix
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
# requires --extra-vars="target=hostspec"
|
# requires --extra-vars="target=hostspec"
|
||||||
|
|
||||||
|
---
|
||||||
- name: reboot hosts
|
- name: reboot hosts
|
||||||
hosts: "{{ target }}"
|
hosts: "{{ target }}"
|
||||||
gather_facts: False
|
gather_facts: false
|
||||||
user: root
|
user: root
|
||||||
serial: 1
|
serial: 1
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
# requires --extra-vars="target=somehostname yumcommand=update"
|
# requires --extra-vars="target=somehostname yumcommand=update"
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
- name: update the system
|
- name: update the system
|
||||||
hosts: "{{ target }}"
|
hosts: "{{ target }}"
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
# This is a basic playbook
|
# This is a basic playbook
|
||||||
|
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "cloud-noc01.fedorainfracloud.org"
|
myhosts: "cloud-noc01.fedorainfracloud.org"
|
||||||
|
@ -7,7 +8,7 @@
|
||||||
- name: make cloud noc hardware
|
- name: make cloud noc hardware
|
||||||
hosts: cloud-noc01.fedorainfracloud.org
|
hosts: cloud-noc01.fedorainfracloud.org
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -58,4 +59,3 @@
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
# This is a basic playbook
|
# This is a basic playbook
|
||||||
|
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "noc-cc01.rdu-cc.fedoraproject.org"
|
myhosts: "noc-cc01.rdu-cc.fedoraproject.org"
|
||||||
|
@ -7,7 +8,7 @@
|
||||||
- name: make cloud noc hardware
|
- name: make cloud noc hardware
|
||||||
hosts: noc-cc01.rdu-cc.fedoraproject.org
|
hosts: noc-cc01.rdu-cc.fedoraproject.org
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
---
|
||||||
- name: handle ssh keys on a hosts birthday (new hw machine)
|
- name: handle ssh keys on a hosts birthday (new hw machine)
|
||||||
hosts: "{{ myhosts }}"
|
hosts: "{{ myhosts }}"
|
||||||
gather_facts: False
|
gather_facts: false
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -13,4 +14,3 @@
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
---
|
||||||
- name: Set up those proxy certificates. Good gravy..
|
- name: Set up those proxy certificates. Good gravy..
|
||||||
hosts: proxies_stg:proxies
|
hosts: proxies_stg:proxies
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -70,4 +71,3 @@
|
||||||
# - role: httpd/certificate
|
# - role: httpd/certificate
|
||||||
# certname: secondary.koji.fedoraproject.org.letsencrypt
|
# certname: secondary.koji.fedoraproject.org.letsencrypt
|
||||||
# SSLCertificateChainFile: secondary.koji.fedoraproject.org.letsencrypt.intermediate.crt
|
# SSLCertificateChainFile: secondary.koji.fedoraproject.org.letsencrypt.intermediate.crt
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
---
|
||||||
- name: Set up all that fedora-web goodness. What a wonder!
|
- name: Set up all that fedora-web goodness. What a wonder!
|
||||||
hosts: proxies_stg:proxies
|
hosts: proxies_stg:proxies
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
---
|
||||||
- name: Fedorahosted. No more on our servers, but still in our hearts...
|
- name: Fedorahosted. No more on our servers, but still in our hearts...
|
||||||
hosts: proxies_stg:proxies
|
hosts: proxies_stg:proxies
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -26,4 +27,3 @@
|
||||||
|
|
||||||
- name: install special git.fedorahosted-redirects.conf with git.fedorahosted redirects
|
- name: install special git.fedorahosted-redirects.conf with git.fedorahosted redirects
|
||||||
copy: src={{ files }}/httpd/git.fedorahosted-redirects.conf dest=/etc/httpd/conf.d/git.fedorahosted.org/fedorahosted-redirects.conf
|
copy: src={{ files }}/httpd/git.fedorahosted-redirects.conf dest=/etc/httpd/conf.d/git.fedorahosted.org/fedorahosted-redirects.conf
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
---
|
||||||
- name: Set up all the haproxy stuff.
|
- name: Set up all the haproxy stuff.
|
||||||
hosts: proxies_stg:proxies
|
hosts: proxies_stg:proxies
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
---
|
||||||
- name: Set up all the other proxy stuff -- miscellaneous
|
- name: Set up all the other proxy stuff -- miscellaneous
|
||||||
hosts: proxies_stg:proxies
|
hosts: proxies_stg:proxies
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
---
|
||||||
- name: Set up those proxy redirects. Wow!
|
- name: Set up those proxy redirects. Wow!
|
||||||
hosts: proxies_stg:proxies
|
hosts: proxies_stg:proxies
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
---
|
||||||
- name: Set up those ProxyPassReverse statements. Somebody get me a cup of coffee..
|
- name: Set up those ProxyPassReverse statements. Somebody get me a cup of coffee..
|
||||||
hosts: proxies_stg:proxies
|
hosts: proxies_stg:proxies
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
---
|
||||||
- name: Set up some domain rewrites.
|
- name: Set up some domain rewrites.
|
||||||
hosts: proxies_stg:proxies
|
hosts: proxies_stg:proxies
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
|
---
|
||||||
- name: Set up those proxy websites. My, my..
|
- name: Set up those proxy websites. My, my..
|
||||||
hosts: proxies_stg:proxies
|
hosts: proxies_stg:proxies
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
---
|
||||||
- name: make the virtual instance
|
- name: make the virtual instance
|
||||||
hosts: "{{ myhosts }}"
|
hosts: "{{ myhosts }}"
|
||||||
gather_facts: False
|
gather_facts: false
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
@ -12,4 +13,3 @@
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
---
|
---
|
||||||
- hosts: virtservers
|
- hosts: virtservers
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
# Access is via management interface only. This playbook does initial setup.
|
# Access is via management interface only. This playbook does initial setup.
|
||||||
# Please check with rel-eng before doing anything here.
|
# Please check with rel-eng before doing anything here.
|
||||||
|
|
||||||
|
---
|
||||||
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
|
||||||
vars:
|
vars:
|
||||||
myhosts: "autosign_stg"
|
myhosts: "autosign_stg"
|
||||||
|
@ -11,7 +12,7 @@
|
||||||
- name: make the box be real
|
- name: make the box be real
|
||||||
hosts: autosign:autosign_stg
|
hosts: autosign:autosign_stg
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- name: detect package versions
|
- name: detect package versions
|
||||||
package_facts: manager=auto
|
package_facts: manager=auto
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
- name: upgrade copr backend
|
- name: upgrade copr backend
|
||||||
hosts: copr_back_dev_aws:copr_back_aws
|
hosts: copr_back_dev_aws:copr_back_aws
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
- name: upgrade copr distgit
|
- name: upgrade copr distgit
|
||||||
hosts: copr_dist_git_dev_aws:copr_dist_git_aws
|
hosts: copr_dist_git_dev_aws:copr_dist_git_aws
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
- name: upgrade copr frontend
|
- name: upgrade copr frontend
|
||||||
hosts: copr_front_dev_aws:copr_front_aws
|
hosts: copr_front_dev_aws:copr_front_aws
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
cache_file: /var/lib/copr/.ansible-copr-frontend-version
|
cache_file: /var/lib/copr/.ansible-copr-frontend-version
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
- name: upgrade copr keygen
|
- name: upgrade copr keygen
|
||||||
hosts: copr_keygen_dev_aws:copr_keygen_aws
|
hosts: copr_keygen_dev_aws:copr_keygen_aws
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
- name: upgrade copr pulp
|
- name: upgrade copr pulp
|
||||||
hosts: copr_pulp_dev_aws:copr_pulp_aws
|
hosts: copr_pulp_dev_aws:copr_pulp_aws
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
# Please read http://fedora-infra-docs.readthedocs.io/en/latest/sysadmin-guide/sops/gdpr_delete.html
|
# Please read http://fedora-infra-docs.readthedocs.io/en/latest/sysadmin-guide/sops/gdpr_delete.html
|
||||||
# for information about how to use this playbook and how to integration applications with it.
|
# for information about how to use this playbook and how to integration applications with it.
|
||||||
|
|
||||||
|
---
|
||||||
- name: Delete user data
|
- name: Delete user data
|
||||||
hosts: gdpr_delete
|
hosts: gdpr_delete
|
||||||
strategy: free
|
strategy: free
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
#
|
#
|
||||||
# Please read http://fedora-infra-docs.readthedocs.io/en/latest/sysadmin-guide/sops/gdpr_sar.html
|
# Please read http://fedora-infra-docs.readthedocs.io/en/latest/sysadmin-guide/sops/gdpr_sar.html
|
||||||
# for information about how to use this playbook and how to integration applications with it.
|
# for information about how to use this playbook and how to integration applications with it.
|
||||||
|
---
|
||||||
- name: Create the archive location
|
- name: Create the archive location
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
tasks:
|
tasks:
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
# Retrieve GDPR data from single openshift app.
|
# Retrieve GDPR data from single openshift app.
|
||||||
# Get the correct pod
|
# Get the correct pod
|
||||||
|
---
|
||||||
- name: Retrieve the id of the running container/pod
|
- name: Retrieve the id of the running container/pod
|
||||||
shell: "oc get -n {{ item.value.openshift_namespace }} -o name -l app={{ item.value.openshift_pod }} pods | cut -f 2 -d '/'"
|
shell: "oc get -n {{ item.value.openshift_namespace }} -o name -l app={{ item.value.openshift_pod }} pods | cut -f 2 -d '/'"
|
||||||
register: pod_id
|
register: pod_id
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
# A playbook to get all the rpms installed on a set of systems.
|
# A playbook to get all the rpms installed on a set of systems.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
---
|
||||||
- name: Get installed packages
|
- name: Get installed packages
|
||||||
hosts: builders:releng-compose:data-analysis01.iad2.fedoraproject.org
|
hosts: builders:releng-compose:data-analysis01.iad2.fedoraproject.org
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
|
@ -18,4 +19,3 @@
|
||||||
|
|
||||||
- debug: var=rpm_output.stdout_lines
|
- debug: var=rpm_output.stdout_lines
|
||||||
# when: rpm_output is defined and rpm_output.results|length > 0
|
# when: rpm_output is defined and rpm_output.results|length > 0
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
# all the virthosts. If you run this once, it will undo those transactions. If
|
# all the virthosts. If you run this once, it will undo those transactions. If
|
||||||
# you run it again, it will undo that previous *undo*.
|
# you run it again, it will undo that previous *undo*.
|
||||||
|
|
||||||
|
---
|
||||||
- name: Find and undo the latest yum transaction involving a $PACKAGE
|
- name: Find and undo the latest yum transaction involving a $PACKAGE
|
||||||
hosts: "{{ target }}"
|
hosts: "{{ target }}"
|
||||||
user: root
|
user: root
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
# This playbook imports the cookies given on IRC to the Matrix Zodbot
|
# This playbook imports the cookies given on IRC to the Matrix Zodbot
|
||||||
|
|
||||||
|
---
|
||||||
- name: Import the cookies
|
- name: Import the cookies
|
||||||
hosts: value02.iad2.fedoraproject.org:value02.stg.iad2.fedoraproject.org
|
hosts: value02.iad2.fedoraproject.org:value02.stg.iad2.fedoraproject.org
|
||||||
user: root
|
user: root
|
||||||
|
@ -18,7 +19,7 @@
|
||||||
dest: /root/.pgpass
|
dest: /root/.pgpass
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0400
|
mode: "0400"
|
||||||
|
|
||||||
- name: install the required package
|
- name: install the required package
|
||||||
dnf:
|
dnf:
|
||||||
|
@ -29,7 +30,7 @@
|
||||||
copy:
|
copy:
|
||||||
src: "{{ files }}/zodbot/karma-to-cookies-db.py"
|
src: "{{ files }}/zodbot/karma-to-cookies-db.py"
|
||||||
dest: /usr/local/bin/karma-to-cookies-db
|
dest: /usr/local/bin/karma-to-cookies-db
|
||||||
mode: 0755
|
mode: "0755"
|
||||||
|
|
||||||
- name: run the import script
|
- name: run the import script
|
||||||
command:
|
command:
|
||||||
|
|
|
@ -2,10 +2,11 @@
|
||||||
# NOTE: this assumes the kernel-qa boxes are already up and are accessible
|
# NOTE: this assumes the kernel-qa boxes are already up and are accessible
|
||||||
# NOTE: most of these vars_path come from group_vars/kernel-qa or from hostvars
|
# NOTE: most of these vars_path come from group_vars/kernel-qa or from hostvars
|
||||||
|
|
||||||
|
---
|
||||||
- name: make kernel-qa
|
- name: make kernel-qa
|
||||||
hosts: kernel_qa
|
hosts: kernel_qa
|
||||||
user: root
|
user: root
|
||||||
gather_facts: True
|
gather_facts: true
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
# "Fedora", "EPEL" or "RHEL"
|
# "Fedora", "EPEL" or "RHEL"
|
||||||
# version => The version that must be expired and updated.
|
# version => The version that must be expired and updated.
|
||||||
|
|
||||||
|
---
|
||||||
- name: Run the emergency-expire-repo script
|
- name: Run the emergency-expire-repo script
|
||||||
hosts: os_control[0]:os_control_stg[0]
|
hosts: os_control[0]:os_control_stg[0]
|
||||||
user: root
|
user: root
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
# --extra-vars="version='42'"
|
# --extra-vars="version='42'"
|
||||||
# version => The version that must be expired and updated.
|
# version => The version that must be expired and updated.
|
||||||
|
|
||||||
|
---
|
||||||
- name: Run the move-devel-to-release script
|
- name: Run the move-devel-to-release script
|
||||||
hosts: os_control[0]:os_control_stg[0]
|
hosts: os_control[0]:os_control_stg[0]
|
||||||
user: root
|
user: root
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
# "Fedora", "EPEL" or "RHEL"
|
# "Fedora", "EPEL" or "RHEL"
|
||||||
# version => The version that must be archived.
|
# version => The version that must be archived.
|
||||||
|
|
||||||
|
---
|
||||||
- name: Run the move-to-archive script
|
- name: Run the move-to-archive script
|
||||||
hosts: os_control[0]:os_control_stg[0]
|
hosts: os_control[0]:os_control_stg[0]
|
||||||
user: root
|
user: root
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- name: be quiet please...
|
- name: be quiet please...
|
||||||
hosts: notifs_backend:notifs_backend_stg
|
hosts: notifs_backend:notifs_backend_stg
|
||||||
user: root
|
user: root
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
- name: backup IPA data for testing
|
- name: backup IPA data for testing
|
||||||
hosts: ipa_stg
|
hosts: ipa_stg
|
||||||
# vars_files:
|
# vars_files:
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
copy:
|
copy:
|
||||||
src: "{{ files }}/scripts/fix-home-fedora-ownerships.sh"
|
src: "{{ files }}/scripts/fix-home-fedora-ownerships.sh"
|
||||||
dest: /usr/local/sbin/fix-home-fedora-ownerships.sh
|
dest: /usr/local/sbin/fix-home-fedora-ownerships.sh
|
||||||
mode: 0755
|
mode: "0755"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
when: home_fedora_res.stat.isdir
|
when: home_fedora_res.stat.isdir
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue