From: Dennis Gilmore ausil@fedoraproject.org
Signed-off-by: Dennis Gilmore ausil@fedoraproject.org --- roles/koji_builder/files/oz.cfg | 22 ++++++++++++++++++++++ roles/koji_builder/tasks/main.yml | 8 ++++++++ 2 files changed, 30 insertions(+), 0 deletions(-) create mode 100644 roles/koji_builder/files/oz.cfg
diff --git a/roles/koji_builder/files/oz.cfg b/roles/koji_builder/files/oz.cfg new file mode 100644 index 0000000..3d045d2 --- /dev/null +++ b/roles/koji_builder/files/oz.cfg @@ -0,0 +1,22 @@ +[paths] +output_dir = /var/lib/libvirt/images +data_dir = /var/lib/oz +screenshot_dir = /var/lib/oz/screenshots +# sshprivkey = /etc/oz/id_rsa-icicle-gen + +[libvirt] +uri = qemu:///system +image_type = raw +# type = kvm +# bridge_name = virbr0 +cpus = 2 +memory = 3096 + +[cache] +original_media = yes +modified_media = no +jeos = no + +[icicle] +safe_generation = no + diff --git a/roles/koji_builder/tasks/main.yml b/roles/koji_builder/tasks/main.yml index 3888c9a..25e80be 100644 --- a/roles/koji_builder/tasks/main.yml +++ b/roles/koji_builder/tasks/main.yml @@ -173,6 +173,14 @@ - configs - koji_builder
+# oz.cfg upstream ram and cpu definitions are not enough +- name: oz.cfg + copy: src=oz.cfg dest=/etc/oz/oz.cfg + notify: + - restart kojid + tags: + - koji_builder + - name: make a mnt/koji link file: state=link src=/mnt/fedora_koji/koji dest=/mnt/koji when: inventory_hostname.startswith(('build')) or inventory_hostname.startswith(('arm04-builder00')) or inventory_hostname.startswith(('arm04-builder01'))
+1, but please add:
when: ansible_architecture != 'ppc64'
to the task putting the config in place. The ppc64 builders are still rhel6, so they don't have imagefactory/oz installed on them.
kevin
_______________________________________________ infrastructure mailing list infrastructure@lists.fedoraproject.org http://lists.fedoraproject.org/postorius/infrastructure@lists.fedoraproject....
On 16 September 2015 at 13:01, Kevin Fenzi kevin@scrye.com wrote:
+1, but please add:
when: ansible_architecture != 'ppc64'
to the task putting the config in place. The ppc64 builders are still rhel6, so they don't have imagefactory/oz installed on them.
+1 with the change listed.
kevin
infrastructure mailing list infrastructure@lists.fedoraproject.org http://lists.fedoraproject.org/postorius/infrastructure@lists.fedoraproject....
infrastructure@lists.fedoraproject.org