Initial attempt at docker-registry02.phx2 and docker-registry03.phx2
Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
parent
49714589fe
commit
627708c0ba
6 changed files with 73 additions and 0 deletions
18
inventory/host_vars/docker-registry02.phx2.fedoraproject.org
Normal file
18
inventory/host_vars/docker-registry02.phx2.fedoraproject.org
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
---
|
||||||
|
nm: 255.255.255.0
|
||||||
|
gw: 10.5.126.254
|
||||||
|
dns: 10.5.126.21
|
||||||
|
ks_url: http://10.5.126.23/repo/rhel/ks/kvm-rhel-7-docker-reg
|
||||||
|
ks_repo: http://10.5.126.23/repo/rhel/RHEL7-x86_64/
|
||||||
|
volgroup: /dev/vg_guests
|
||||||
|
eth0_ip: 10.5.125.77
|
||||||
|
vmhost: bvirthost02.phx2.fedoraproject.org
|
||||||
|
datacenter: phx2
|
||||||
|
|
||||||
|
nrpe_procs_warn: 900
|
||||||
|
nrpe_procs_crit: 1000
|
||||||
|
|
||||||
|
lvm_size: 120g
|
||||||
|
mem_size: 8192
|
||||||
|
max_mem_size: 16384
|
||||||
|
num_cpus: 4
|
18
inventory/host_vars/docker-registry03.phx2.fedoraproject.org
Normal file
18
inventory/host_vars/docker-registry03.phx2.fedoraproject.org
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
---
|
||||||
|
nm: 255.255.255.0
|
||||||
|
gw: 10.5.126.254
|
||||||
|
dns: 10.5.126.21
|
||||||
|
ks_url: http://10.5.126.23/repo/rhel/ks/kvm-rhel-7-docker-reg
|
||||||
|
ks_repo: http://10.5.126.23/repo/rhel/RHEL7-x86_64/
|
||||||
|
volgroup: /dev/vg_guests
|
||||||
|
eth0_ip: 10.5.125.78
|
||||||
|
vmhost: bvirthost03.phx2.fedoraproject.org
|
||||||
|
datacenter: phx2
|
||||||
|
|
||||||
|
nrpe_procs_warn: 900
|
||||||
|
nrpe_procs_crit: 1000
|
||||||
|
|
||||||
|
lvm_size: 120g
|
||||||
|
mem_size: 8192
|
||||||
|
max_mem_size: 16384
|
||||||
|
num_cpus: 4
|
|
@ -1391,6 +1391,8 @@ ci-cc-rdu01.fedoraproject.org
|
||||||
# Docker (docker-distribution) registries
|
# Docker (docker-distribution) registries
|
||||||
[docker-registry]
|
[docker-registry]
|
||||||
docker-registry01.phx2.fedoraproject.org
|
docker-registry01.phx2.fedoraproject.org
|
||||||
|
docker-registry02.phx2.fedoraproject.org
|
||||||
|
docker-registry03.phx2.fedoraproject.org
|
||||||
docker-candidate-registry01.phx2.fedoraproject.org
|
docker-candidate-registry01.phx2.fedoraproject.org
|
||||||
|
|
||||||
[docker-registry-stg]
|
[docker-registry-stg]
|
||||||
|
|
|
@ -63,6 +63,37 @@
|
||||||
group: root
|
group: root
|
||||||
mountdir: "/srv/docker"
|
mountdir: "/srv/docker"
|
||||||
|
|
||||||
|
- name: set up gluster on prod
|
||||||
|
hosts:
|
||||||
|
- docker-registry02.phx2.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:
|
||||||
|
- role: gluster/server
|
||||||
|
name: gluster
|
||||||
|
username: "{{ registry_gluster_username_prod }}"
|
||||||
|
password: "{{ registry_gluster_password_prod }}"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
datadir: /srv/glusterfs/registry
|
||||||
|
|
||||||
|
- role: gluster/client
|
||||||
|
name: gluster
|
||||||
|
servers:
|
||||||
|
- docker-registry02.phx2.fedoraproject.org
|
||||||
|
username: "{{ registry_gluster_username_prod }}"
|
||||||
|
password: "{{ registry_gluster_password_prod }}"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mountdir: "/srv/docker"
|
||||||
|
|
||||||
|
|
||||||
- name: setup docker distribution registry
|
- name: setup docker distribution registry
|
||||||
hosts: docker-registry:docker-registry-stg
|
hosts: docker-registry:docker-registry-stg
|
||||||
vars_files:
|
vars_files:
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
# ifconfig-push actualIP PtPIP
|
||||||
|
ifconfig-push 192.168.1.168 192.168.0.168
|
|
@ -0,0 +1,2 @@
|
||||||
|
# ifconfig-push actualIP PtPIP
|
||||||
|
ifconfig-push 192.168.1.169 192.168.0.169
|
Loading…
Add table
Add a link
Reference in a new issue