Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx> --- ansible/host_vars/libvirt-centos-7/main.yml | 1 + ansible/host_vars/libvirt-debian-8/main.yml | 1 + ansible/host_vars/libvirt-debian-9/main.yml | 1 + ansible/host_vars/libvirt-fedora-25/main.yml | 1 + ansible/host_vars/libvirt-fedora-26/main.yml | 1 + ansible/host_vars/libvirt-fedora-rawhide/main.yml | 1 + ansible/host_vars/libvirt-freebsd-11/main.yml | 1 + ansible/host_vars/libvirt-ubuntu-14/main.yml | 1 + ansible/host_vars/libvirt-ubuntu-16/main.yml | 1 + ansible/tasks/build.yml | 19 ++++++++++++++++++- ansible/vars/virt-manager/CentOS-7.yml | 12 ++++++++++++ ansible/vars/virt-manager/Debian-8.yml | 12 ++++++++++++ ansible/vars/virt-manager/Debian-9.yml | 12 ++++++++++++ ansible/vars/virt-manager/Fedora-25.yml | 12 ++++++++++++ ansible/vars/virt-manager/Fedora-26.yml | 12 ++++++++++++ ansible/vars/virt-manager/Fedora-Rawhide.yml | 12 ++++++++++++ ansible/vars/virt-manager/FreeBSD-11.yml | 11 +++++++++++ ansible/vars/virt-manager/Ubuntu-14.yml | 12 ++++++++++++ ansible/vars/virt-manager/Ubuntu-16.yml | 12 ++++++++++++ 19 files changed, 134 insertions(+), 1 deletion(-) create mode 100644 ansible/vars/virt-manager/CentOS-7.yml create mode 100644 ansible/vars/virt-manager/Debian-8.yml create mode 100644 ansible/vars/virt-manager/Debian-9.yml create mode 100644 ansible/vars/virt-manager/Fedora-25.yml create mode 100644 ansible/vars/virt-manager/Fedora-26.yml create mode 100644 ansible/vars/virt-manager/Fedora-Rawhide.yml create mode 100644 ansible/vars/virt-manager/FreeBSD-11.yml create mode 100644 ansible/vars/virt-manager/Ubuntu-14.yml create mode 100644 ansible/vars/virt-manager/Ubuntu-16.yml diff --git a/ansible/host_vars/libvirt-centos-7/main.yml b/ansible/host_vars/libvirt-centos-7/main.yml index eaaa1cd..970839d 100644 --- a/ansible/host_vars/libvirt-centos-7/main.yml +++ b/ansible/host_vars/libvirt-centos-7/main.yml @@ -12,3 +12,4 @@ projects: - libvirt-sandbox - osinfo-db - osinfo-db-tools + - virt-manager diff --git a/ansible/host_vars/libvirt-debian-8/main.yml b/ansible/host_vars/libvirt-debian-8/main.yml index 4199dfd..5d300e8 100644 --- a/ansible/host_vars/libvirt-debian-8/main.yml +++ b/ansible/host_vars/libvirt-debian-8/main.yml @@ -10,3 +10,4 @@ projects: - libvirt-python - libvirt-tck - osinfo-db-tools + - virt-manager diff --git a/ansible/host_vars/libvirt-debian-9/main.yml b/ansible/host_vars/libvirt-debian-9/main.yml index 82b7cb8..4640d87 100644 --- a/ansible/host_vars/libvirt-debian-9/main.yml +++ b/ansible/host_vars/libvirt-debian-9/main.yml @@ -12,3 +12,4 @@ projects: - libvirt-tck - osinfo-db - osinfo-db-tools + - virt-manager diff --git a/ansible/host_vars/libvirt-fedora-25/main.yml b/ansible/host_vars/libvirt-fedora-25/main.yml index 9a42421..265e7ca 100644 --- a/ansible/host_vars/libvirt-fedora-25/main.yml +++ b/ansible/host_vars/libvirt-fedora-25/main.yml @@ -13,3 +13,4 @@ projects: - libvirt-tck - osinfo-db - osinfo-db-tools + - virt-manager diff --git a/ansible/host_vars/libvirt-fedora-26/main.yml b/ansible/host_vars/libvirt-fedora-26/main.yml index 9a42421..265e7ca 100644 --- a/ansible/host_vars/libvirt-fedora-26/main.yml +++ b/ansible/host_vars/libvirt-fedora-26/main.yml @@ -13,3 +13,4 @@ projects: - libvirt-tck - osinfo-db - osinfo-db-tools + - virt-manager diff --git a/ansible/host_vars/libvirt-fedora-rawhide/main.yml b/ansible/host_vars/libvirt-fedora-rawhide/main.yml index 9a42421..265e7ca 100644 --- a/ansible/host_vars/libvirt-fedora-rawhide/main.yml +++ b/ansible/host_vars/libvirt-fedora-rawhide/main.yml @@ -13,3 +13,4 @@ projects: - libvirt-tck - osinfo-db - osinfo-db-tools + - virt-manager diff --git a/ansible/host_vars/libvirt-freebsd-11/main.yml b/ansible/host_vars/libvirt-freebsd-11/main.yml index 93eaca7..563a254 100644 --- a/ansible/host_vars/libvirt-freebsd-11/main.yml +++ b/ansible/host_vars/libvirt-freebsd-11/main.yml @@ -18,3 +18,4 @@ projects: - libvirt-tck - osinfo-db - osinfo-db-tools + - virt-manager diff --git a/ansible/host_vars/libvirt-ubuntu-14/main.yml b/ansible/host_vars/libvirt-ubuntu-14/main.yml index 7711c5c..f77a167 100644 --- a/ansible/host_vars/libvirt-ubuntu-14/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-14/main.yml @@ -7,3 +7,4 @@ projects: - libvirt-python - libvirt-tck - osinfo-db-tools + - virt-manager diff --git a/ansible/host_vars/libvirt-ubuntu-16/main.yml b/ansible/host_vars/libvirt-ubuntu-16/main.yml index fb05515..04191bc 100644 --- a/ansible/host_vars/libvirt-ubuntu-16/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-16/main.yml @@ -11,3 +11,4 @@ projects: - libvirt-sandbox - libvirt-tck - osinfo-db-tools + - virt-manager diff --git a/ansible/tasks/build.yml b/ansible/tasks/build.yml index 8622713..aa2d60e 100644 --- a/ansible/tasks/build.yml +++ b/ansible/tasks/build.yml @@ -184,12 +184,20 @@ # Python build +- name: '{{ project }}: Run configure' + command: python2 setup.py configure + args: + chdir: '{{ project }}' + when: + - project == 'virt-manager' + - name: '{{ project }}: Build project' command: python2 setup.py build args: chdir: '{{ project }}' when: - - project == 'libvirt-python' + - ( project == 'libvirt-python' or + project == 'virt-manager' ) - name: '{{ project }}: Run test suite' command: python2 setup.py test @@ -197,3 +205,12 @@ chdir: '{{ project }}' when: - project == 'libvirt-python' + +- name: '{{ project }}: Build RPM package' + command: python2 setup.py rpm + args: + chdir: '{{ project }}' + when: + - ( os_name == 'CentOS' or + os_name == 'Fedora' ) + - project == 'virt-manager' diff --git a/ansible/vars/virt-manager/CentOS-7.yml b/ansible/vars/virt-manager/CentOS-7.yml new file mode 100644 index 0000000..c66999b --- /dev/null +++ b/ansible/vars/virt-manager/CentOS-7.yml @@ -0,0 +1,12 @@ +--- +packages: + - intltool + - libxml2-python + - python-gobject + - python-ipaddr + - python-requests + - python2-devel + +extra_packages: + - libosinfo + - libvirt-python diff --git a/ansible/vars/virt-manager/Debian-8.yml b/ansible/vars/virt-manager/Debian-8.yml new file mode 100644 index 0000000..1014887 --- /dev/null +++ b/ansible/vars/virt-manager/Debian-8.yml @@ -0,0 +1,12 @@ +--- +packages: + - intltool + - libglib2.0-bin + - python-gi + - python-ipaddr + - python-libxml2 + - python-requests + +extra_packages: + - gir1.2-libosinfo-1.0 + - python-libvirt diff --git a/ansible/vars/virt-manager/Debian-9.yml b/ansible/vars/virt-manager/Debian-9.yml new file mode 100644 index 0000000..1014887 --- /dev/null +++ b/ansible/vars/virt-manager/Debian-9.yml @@ -0,0 +1,12 @@ +--- +packages: + - intltool + - libglib2.0-bin + - python-gi + - python-ipaddr + - python-libxml2 + - python-requests + +extra_packages: + - gir1.2-libosinfo-1.0 + - python-libvirt diff --git a/ansible/vars/virt-manager/Fedora-25.yml b/ansible/vars/virt-manager/Fedora-25.yml new file mode 100644 index 0000000..7ad9aa2 --- /dev/null +++ b/ansible/vars/virt-manager/Fedora-25.yml @@ -0,0 +1,12 @@ +--- +packages: + - intltool + - python-gobject + - python-ipaddr + - python-libxml2 + - python2-devel + - python2-requests + +extra_packages: + - libosinfo + - libvirt-python diff --git a/ansible/vars/virt-manager/Fedora-26.yml b/ansible/vars/virt-manager/Fedora-26.yml new file mode 100644 index 0000000..7ad9aa2 --- /dev/null +++ b/ansible/vars/virt-manager/Fedora-26.yml @@ -0,0 +1,12 @@ +--- +packages: + - intltool + - python-gobject + - python-ipaddr + - python-libxml2 + - python2-devel + - python2-requests + +extra_packages: + - libosinfo + - libvirt-python diff --git a/ansible/vars/virt-manager/Fedora-Rawhide.yml b/ansible/vars/virt-manager/Fedora-Rawhide.yml new file mode 100644 index 0000000..7ad9aa2 --- /dev/null +++ b/ansible/vars/virt-manager/Fedora-Rawhide.yml @@ -0,0 +1,12 @@ +--- +packages: + - intltool + - python-gobject + - python-ipaddr + - python-libxml2 + - python2-devel + - python2-requests + +extra_packages: + - libosinfo + - libvirt-python diff --git a/ansible/vars/virt-manager/FreeBSD-11.yml b/ansible/vars/virt-manager/FreeBSD-11.yml new file mode 100644 index 0000000..7b0082d --- /dev/null +++ b/ansible/vars/virt-manager/FreeBSD-11.yml @@ -0,0 +1,11 @@ +--- +packages: + - intltool + - py27-gobject3 + - py27-ipaddr + - py27-libxml2 + - py27-requests + +extra_packages: + - libosinfo + - py27-libvirt diff --git a/ansible/vars/virt-manager/Ubuntu-14.yml b/ansible/vars/virt-manager/Ubuntu-14.yml new file mode 100644 index 0000000..1014887 --- /dev/null +++ b/ansible/vars/virt-manager/Ubuntu-14.yml @@ -0,0 +1,12 @@ +--- +packages: + - intltool + - libglib2.0-bin + - python-gi + - python-ipaddr + - python-libxml2 + - python-requests + +extra_packages: + - gir1.2-libosinfo-1.0 + - python-libvirt diff --git a/ansible/vars/virt-manager/Ubuntu-16.yml b/ansible/vars/virt-manager/Ubuntu-16.yml new file mode 100644 index 0000000..1014887 --- /dev/null +++ b/ansible/vars/virt-manager/Ubuntu-16.yml @@ -0,0 +1,12 @@ +--- +packages: + - intltool + - libglib2.0-bin + - python-gi + - python-ipaddr + - python-libxml2 + - python-requests + +extra_packages: + - gir1.2-libosinfo-1.0 + - python-libvirt -- 2.13.6 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list