buildvm: builders: add ppc64/ppc64le specific virt-install defaults

This commit is contained in:
Peter Robinson 2015-10-08 02:20:26 +00:00
parent be215cf7ab
commit a5692b4ac4
4 changed files with 63 additions and 2 deletions

View file

@ -36,6 +36,8 @@ buildvm-ppc64-03.qa.fedoraproject.org
buildvm-ppc64-04.qa.fedoraproject.org
buildvm-ppc64-07.qa.fedoraproject.org
buildvm-ppc64-08.qa.fedoraproject.org
[buildvm-ppc64le]
buildvm-ppc64le-03.qa.fedoraproject.org
buildvm-ppc64le-04.qa.fedoraproject.org
buildvm-ppc64le-07.qa.fedoraproject.org
@ -226,6 +228,7 @@ arm04-builder01.arm.fedoraproject.org
buildhw
buildvm
buildvm-ppc64
buildvm-ppc64le
buildppc
buildarm
buildaarch64

View file

@ -0,0 +1,29 @@
---
# common items for the buildvm-* koji builders
volgroup: /dev/vg_guests
lvm_size: 150000
mem_size: 10240
num_cpus: 4
ks_url: http://10.5.126.23/repo/rhel/ks/buildvm-fedora-21-ppc64
ks_repo: http://10.5.126.23/pub/fedora-secondary/releases/21/Server/ppc64/os/
nm: 255.255.255.0
gw: 10.5.124.254
dns: 10.5.126.21
virt_install_command: virt-install -n {{ inventory_hostname }} -r {{ mem_size }}
--arch=ppc64 --graphics none --serial pty
--disk bus=virtio,path={{ volgroup }}/{{ inventory_hostname }}
--vcpus={{ num_cpus }} -l {{ ks_repo }} -x
"ksdevice=eth0 ks={{ ks_url }} console=tty0 console=hvc0
hostname={{ inventory_hostname }} nameserver={{ dns }}
ip={{ eth0_ip }}::{{ gw }}:{{ nm }}:{{ inventory_hostname }}:eth0:none"
--network=bridge=br0,model=virtio --autostart --noautoconsole; sleep 5
# for systems that do not match the above - specify the same parameter in
# the host_vars/$hostname file
host_group: kojibuilder
fas_client_groups: sysadmin-releng,sysadmin-secondary
sudoers: "{{ private }}/files/sudo/arm-releng-sudoers"
koji_server_url: "http://ppc.koji.fedoraproject.org/kojihub"
koji_weburl: "http://ppc.koji.fedoraproject.org/koji"
koji_topurl: "http://ppcpkgs.fedoraproject.org/"

View file

@ -0,0 +1,29 @@
---
# common items for the buildvm-* koji builders
volgroup: /dev/vg_guests
lvm_size: 150000
mem_size: 10240
num_cpus: 4
ks_url: http://10.5.126.23/repo/rhel/ks/buildvm-fedora-21-ppc64le
ks_repo: http://10.5.126.23/pub/fedora-secondary/releases/21/Server/ppc64le/os/
nm: 255.255.255.0
gw: 10.5.124.254
dns: 10.5.126.21
virt_install_command: virt-install -n {{ inventory_hostname }} -r {{ mem_size }}
--arch=ppc64le --graphics none --serial pty
--disk bus=virtio,path={{ volgroup }}/{{ inventory_hostname }}
--vcpus={{ num_cpus }} -l {{ ks_repo }} -x
"ksdevice=eth0 ks={{ ks_url }} console=tty0 console=hvc0
hostname={{ inventory_hostname }} nameserver={{ dns }}
ip={{ eth0_ip }}::{{ gw }}:{{ nm }}:{{ inventory_hostname }}:eth0:none"
--network=bridge=br0,model=virtio --autostart --noautoconsole; sleep 5
# for systems that do not match the above - specify the same parameter in
# the host_vars/$hostname file
host_group: kojibuilder
fas_client_groups: sysadmin-releng,sysadmin-secondary
sudoers: "{{ private }}/files/sudo/arm-releng-sudoers"
koji_server_url: "http://ppc.koji.fedoraproject.org/kojihub"
koji_weburl: "http://ppc.koji.fedoraproject.org/koji"
koji_topurl: "http://ppcpkgs.fedoraproject.org/"

View file

@ -3,10 +3,10 @@
# 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
- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=buildvm:buildvm-stg:buildvm-ppc64"
- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=buildvm:buildvm-stg:buildvm-ppc64:buildvm-ppc64le"
- name: make koji builder(s)
hosts: buildvm:buildvm-stg:buildvm-ppc64
hosts: buildvm:buildvm-stg:buildvm-ppc64:buildvm-ppc64le
user: root
gather_facts: True