cloud-noc-os01: retire

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2024-08-01 14:44:19 -07:00
parent 861d458131
commit 03c1c2b5bf
3 changed files with 0 additions and 133 deletions

View file

@ -1,61 +0,0 @@
---
datacenter: rdu-cc
dns1: 8.8.8.8
dns2: 8.8.4.4
eth0_ipv4: 8.43.85.49
eth0_ipv4_gw: 8.43.85.254
eth0_ipv4_nm: 23
eth1_ipv4: 172.23.1.3
eth1_ipv4_nm: 24
eth2_ipv4: 172.23.5.3
eth2_ipv4_nm: 24
freezes: false
has_ipv4: yes
ks_repo: http://infrastructure.fedoraproject.org/repo/rhel/RHEL8-x86_64/
ks_url: http://infrastructure.fedoraproject.org/repo/rhel/ks/kvm-rhel-8-ext
lvm_size: 20000
mac0: 52:54:00:46:ed:ba
mac1: 52:54:00:24:8e:bc
mac2: 52:54:00:d6:ab:66
mem_size: 8192
network_connections:
- autoconnect: yes
ip:
address:
- "{{ eth0_ipv4 }}/{{ eth0_ipv4_nm }}"
dhcp4: no
dns:
- "{{ dns1 }}"
- "{{ dns2 }}"
dns_search:
- rdu-cc.fedoraproject.org
- fedoraproject.org
gateway4: "{{ eth0_ipv4_gw }}"
mac: "{{ mac0 }}"
name: eth0
type: ethernet
- autoconnect: yes
ip:
address:
- "{{ eth1_ipv4 }}/{{ eth1_ipv4_nm }}"
dhcp4: no
mac: "{{ mac1 }}"
name: eth1
type: ethernet
- autoconnect: yes
ip:
address:
- "{{ eth2_ipv4 }}/{{ eth2_ipv4_nm }}"
dhcp4: no
mac: "{{ mac2 }}"
name: eth2
type: ethernet
num_cpus: 4
public_hostname: cloud-noc-os01.rdu-cc.fedoraproject.org
tcp_ports: ['67', '68']
udp_ports: ['67', '68', '69']
virt_install_command: virt-install -n {{ inventory_hostname }} --memory={{ mem_size }},maxmemory={{ max_mem_size }} --memballoon virtio --disk bus=virtio,path={{ volgroup }}/{{ inventory_hostname }} --vcpus={{ num_cpus }},maxvcpus={{ max_cpu }} -l {{ ks_repo }} -x 'net.ifnames=0 ksdevice=eth0 ks={{ ks_url }} console=tty0 console=ttyS0 hostname={{ inventory_hostname }} nameserver={{ dns1 }} ip={{ eth0_ipv4 }}::{{ eth0_ipv4_gw }}:{{ eth0_ipv4_nm }}:{{ inventory_hostname }}:eth0:none ip={{ eth1_ipv4 }}:::{{ eth1_ipv4_nm }}:{{ inventory_hostname_short }}-nfs:eth1:none' --network bridge={{ main_bridge }},model=virtio,mac={{ mac0 }} --network=bridge={{ nfs_bridge }},model=virtio,mac={{ mac1 }} --autostart --noautoconsole --watchdog default --rng /dev/random
virt_install_command_two_nic: virt-install -n {{ inventory_hostname }} --memory={{ mem_size }},maxmemory={{ max_mem_size }} --memballoon virtio --disk bus=virtio,path={{ volgroup }}/{{ inventory_hostname }} --vcpus={{ num_cpus }},maxvcpus={{ max_cpu }} -l {{ ks_repo }} -x 'net.ifnames=0 ksdevice=eth0 ks={{ ks_url }} console=tty0 console=ttyS0 hostname={{ inventory_hostname }} nameserver={{ dns }} ip={{ eth0_ip }}::{{ gw }}:{{ nm }}:{{ inventory_hostname }}:eth0:none ip={{ eth1_ip }}:::{{ nm }}:{{ inventory_hostname_short }}-nfs:eth1:none' --network bridge={{ main_bridge }},model=virtio,mac={{ mac0 }} --network=bridge={{ nfs_bridge }},model=virtio,mac={{ mac1 }} --autostart --noautoconsole --watchdog default --rng /dev/random
vmhost: vmhost-x86-cc05.rdu-cc.fedoraproject.org
volgroup: /dev/rhel_vmhost-x86-05
vpn: true

View file

@ -217,7 +217,6 @@ log01.iad2.fedoraproject.org
noc01.iad2.fedoraproject.org
noc02.fedoraproject.org
noc-cc01.rdu-cc.fedoraproject.org
cloud-noc-os01.rdu-cc.fedoraproject.org
[logging]
log01.iad2.fedoraproject.org
@ -254,7 +253,6 @@ noc02.fedoraproject.org
noc01.iad2.fedoraproject.org
[noc_rdu_cc]
cloud-noc-os01.rdu-cc.fedoraproject.org
noc-cc01.rdu-cc.fedoraproject.org
[memcached]

View file

@ -1,70 +0,0 @@
# This is a basic playbook
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml"
vars:
myhosts: "cloud-noc-os01.rdu-cc.fedoraproject.org"
- name: make cloud noc hardware
hosts: cloud-noc-os01.rdu-cc.fedoraproject.org
user: root
gather_facts: True
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
roles:
- base
- rkhunter
- nagios_client
- hosts
- ipa/client
- collectd/base
- sudo
- dhcp_server
- tftp_server
- openvpn/client
pre_tasks:
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
tasks:
- import_tasks: "{{ tasks_path }}/motd.yml"
- name: install some packages which arent in playbooks
package:
state: present
name:
- nmap
- tcpdump
- name: check if ntpd port is already known by selinux
shell: semanage port -l | grep ntp
register: ntp_selinux_port
check_mode: no
changed_when: false
failed_when: false
tags:
- config
- selinux
- name: allow alternate ntpd port
command: semanage port -a -t ntp_port_t -p tcp 124
when: '"124" not in ntp_selinux_port'
failed_when: false
tags:
- config
- selinux
- name: allow alternate ntpd port
command: semanage port -a -t ntp_port_t -p udp 124
when: '"124" not in ntp_selinux_port'
failed_when: false
tags:
- config
- selinux
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"