From nobody Mon Feb 9 13:57:48 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1507296425502354.93086348225813; Fri, 6 Oct 2017 06:27:05 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 58FB87E390; Fri, 6 Oct 2017 13:27:04 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 24582627DC; Fri, 6 Oct 2017 13:27:04 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id E1762410B3; Fri, 6 Oct 2017 13:27:03 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v96Cn2Uw008283 for ; Fri, 6 Oct 2017 08:49:02 -0400 Received: by smtp.corp.redhat.com (Postfix) id D6CE064444; Fri, 6 Oct 2017 12:49:02 +0000 (UTC) Received: from inaba.usersys.redhat.com (unknown [10.43.2.219]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5DDF164443 for ; Fri, 6 Oct 2017 12:49:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 58FB87E390 Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=libvir-list-bounces@redhat.com From: Andrea Bolognani To: libvir-list@redhat.com Date: Fri, 6 Oct 2017 14:48:39 +0200 Message-Id: <20171006124852.27089-4-abologna@redhat.com> In-Reply-To: <20171006124852.27089-1-abologna@redhat.com> References: <20171006124852.27089-1-abologna@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Subject: [libvirt] [libvirt-jenkins-ci PATCH v2 03/16] ansible: Add libvirt project X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Fri, 06 Oct 2017 13:27:04 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Andrea Bolognani --- ansible/host_vars/libvirt-centos-6/main.yml | 1 + 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-10/main.yml | 1 + ansible/host_vars/libvirt-freebsd-11/main.yml | 1 + ansible/host_vars/libvirt-ubuntu-12/main.yml | 1 + ansible/host_vars/libvirt-ubuntu-14/main.yml | 1 + ansible/host_vars/libvirt-ubuntu-16/main.yml | 1 + ansible/site.yml | 1 + ansible/tasks/compat.yml | 31 +++ ansible/vars/mappings.yml | 296 ++++++++++++++++++= ++++ ansible/vars/projects/libvirt.yml | 78 ++++++ 16 files changed, 418 insertions(+) create mode 100644 ansible/tasks/compat.yml create mode 100644 ansible/vars/projects/libvirt.yml diff --git a/ansible/host_vars/libvirt-centos-6/main.yml b/ansible/host_var= s/libvirt-centos-6/main.yml index 1602406..4d53bb3 100644 --- a/ansible/host_vars/libvirt-centos-6/main.yml +++ b/ansible/host_vars/libvirt-centos-6/main.yml @@ -1,3 +1,4 @@ --- projects: - base + - libvirt diff --git a/ansible/host_vars/libvirt-centos-7/main.yml b/ansible/host_var= s/libvirt-centos-7/main.yml index a40cb4c..7508f19 100644 --- a/ansible/host_vars/libvirt-centos-7/main.yml +++ b/ansible/host_vars/libvirt-centos-7/main.yml @@ -2,3 +2,4 @@ projects: - base - libosinfo + - libvirt diff --git a/ansible/host_vars/libvirt-debian-8/main.yml b/ansible/host_var= s/libvirt-debian-8/main.yml index a40cb4c..7508f19 100644 --- a/ansible/host_vars/libvirt-debian-8/main.yml +++ b/ansible/host_vars/libvirt-debian-8/main.yml @@ -2,3 +2,4 @@ projects: - base - libosinfo + - libvirt diff --git a/ansible/host_vars/libvirt-debian-9/main.yml b/ansible/host_var= s/libvirt-debian-9/main.yml index a40cb4c..7508f19 100644 --- a/ansible/host_vars/libvirt-debian-9/main.yml +++ b/ansible/host_vars/libvirt-debian-9/main.yml @@ -2,3 +2,4 @@ projects: - base - libosinfo + - libvirt diff --git a/ansible/host_vars/libvirt-fedora-25/main.yml b/ansible/host_va= rs/libvirt-fedora-25/main.yml index a40cb4c..7508f19 100644 --- a/ansible/host_vars/libvirt-fedora-25/main.yml +++ b/ansible/host_vars/libvirt-fedora-25/main.yml @@ -2,3 +2,4 @@ projects: - base - libosinfo + - libvirt diff --git a/ansible/host_vars/libvirt-fedora-26/main.yml b/ansible/host_va= rs/libvirt-fedora-26/main.yml index a40cb4c..7508f19 100644 --- a/ansible/host_vars/libvirt-fedora-26/main.yml +++ b/ansible/host_vars/libvirt-fedora-26/main.yml @@ -2,3 +2,4 @@ projects: - base - libosinfo + - libvirt diff --git a/ansible/host_vars/libvirt-fedora-rawhide/main.yml b/ansible/ho= st_vars/libvirt-fedora-rawhide/main.yml index a40cb4c..7508f19 100644 --- a/ansible/host_vars/libvirt-fedora-rawhide/main.yml +++ b/ansible/host_vars/libvirt-fedora-rawhide/main.yml @@ -2,3 +2,4 @@ projects: - base - libosinfo + - libvirt diff --git a/ansible/host_vars/libvirt-freebsd-10/main.yml b/ansible/host_v= ars/libvirt-freebsd-10/main.yml index 81e362d..a8766a0 100644 --- a/ansible/host_vars/libvirt-freebsd-10/main.yml +++ b/ansible/host_vars/libvirt-freebsd-10/main.yml @@ -9,3 +9,4 @@ sudo: /usr/local/bin/sudo projects: - base - libosinfo + - libvirt diff --git a/ansible/host_vars/libvirt-freebsd-11/main.yml b/ansible/host_v= ars/libvirt-freebsd-11/main.yml index 81e362d..a8766a0 100644 --- a/ansible/host_vars/libvirt-freebsd-11/main.yml +++ b/ansible/host_vars/libvirt-freebsd-11/main.yml @@ -9,3 +9,4 @@ sudo: /usr/local/bin/sudo projects: - base - libosinfo + - libvirt diff --git a/ansible/host_vars/libvirt-ubuntu-12/main.yml b/ansible/host_va= rs/libvirt-ubuntu-12/main.yml index 1602406..4d53bb3 100644 --- a/ansible/host_vars/libvirt-ubuntu-12/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-12/main.yml @@ -1,3 +1,4 @@ --- projects: - base + - libvirt diff --git a/ansible/host_vars/libvirt-ubuntu-14/main.yml b/ansible/host_va= rs/libvirt-ubuntu-14/main.yml index a40cb4c..7508f19 100644 --- a/ansible/host_vars/libvirt-ubuntu-14/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-14/main.yml @@ -2,3 +2,4 @@ projects: - base - libosinfo + - libvirt diff --git a/ansible/host_vars/libvirt-ubuntu-16/main.yml b/ansible/host_va= rs/libvirt-ubuntu-16/main.yml index a40cb4c..7508f19 100644 --- a/ansible/host_vars/libvirt-ubuntu-16/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-16/main.yml @@ -2,3 +2,4 @@ projects: - base - libosinfo + - libvirt diff --git a/ansible/site.yml b/ansible/site.yml index c6e6152..907a35b 100644 --- a/ansible/site.yml +++ b/ansible/site.yml @@ -8,6 +8,7 @@ =20 # Prepare the base environment - include: tasks/base.yml + - include: tasks/compat.yml =20 # Install build dependencies for each project - include: tasks/packages.yml diff --git a/ansible/tasks/compat.yml b/ansible/tasks/compat.yml new file mode 100644 index 0000000..001b5c6 --- /dev/null +++ b/ansible/tasks/compat.yml @@ -0,0 +1,31 @@ +--- +# libvirt can't detect these automatically at the moment, so a kludge +# is required. Can be dropped it as soon as libvirt has been fixed +- name: Create compatibility symlinks + file: + src: '/usr/local/{{ item }}' + dest: '/usr/{{ item }}' + state: link + force: yes + with_items: + - include/sasl + - include/yajl + - lib/libsasl2.so + - lib/libyajl.so + when: + - os_name =3D=3D 'FreeBSD' + +# Same as above, except we only need to do it on FreeBSD 11 because +# FreeBSD 10 shipped (an old version of) readline in the base system +- name: Create compatibility symlinks + file: + src: '/usr/local/{{ item }}' + dest: '/usr/{{ item }}' + state: link + force: yes + with_items: + - include/readline + - lib/libreadline.so + when: + - os_name =3D=3D 'FreeBSD' + - os_version =3D=3D '11' diff --git a/ansible/vars/mappings.yml b/ansible/vars/mappings.yml index f76816b..0230047 100644 --- a/ansible/vars/mappings.yml +++ b/ansible/vars/mappings.yml @@ -30,6 +30,13 @@ =20 mappings: =20 + apparmor: + deb: libapparmor-dev + + augeas: + default: augeas + deb: augeas-tools + autoconf: default: autoconf =20 @@ -41,6 +48,11 @@ mappings: pkg: gettext-tools rpm: gettext-devel =20 + avahi: + deb: libavahi-client-dev + pkg: avahi + rpm: avahi-devel + ccache: default: ccache CentOS: @@ -53,6 +65,32 @@ mappings: Fedora: cppi FreeBSD: cppi =20 + cyrus-sasl: + deb: libsasl2-dev + pkg: cyrus-sasl + rpm: cyrus-sasl-devel + + device-mapper: + deb: libdevmapper-dev + rpm: device-mapper-devel + + dnsmasq: + default: dnsmasq + deb: dnsmasq-base + + dtrace: + deb: systemtap-sdt-dev + rpm: systemtap-sdt-devel + + ebtables: + default: ebtables + FreeBSD: + + fuse: + deb: libfuse-dev + pkg: fusefs-libs + rpm: fuse-devel + gcc: default: gcc FreeBSD: @@ -69,9 +107,21 @@ mappings: deb: libc6-dev rpm: glibc-devel =20 + glusterfs: + deb: glusterfs-client + pkg: glusterfs + rpm: glusterfs-api-devel + gnome-common: default: gnome-common =20 + gnutls: + deb: libgnutls28-dev + pkg: gnutls + rpm: gnutls-devel + Ubuntu12: libgnutls-dev + Ubuntu14: libgnutls-dev + gobject-introspection: deb: libgirepository1.0-dev pkg: gobject-introspection @@ -82,14 +132,102 @@ mappings: default: gtk-doc deb: gtk-doc-tools =20 + hal: + FreeBSD: hal + Ubuntu12: libhal-dev + intltool: default: intltool =20 + iscsiadm: + deb: open-iscsi + rpm: iscsi-initiator-utils + + libacl: + deb: libacl1-dev + rpm: libacl-devel + + libattr: + deb: libattr1-dev + rpm: libattr-devel + + libaudit: + deb: libaudit-dev + rpm: audit-libs-devel + + libblkid: + deb: libblkid-dev + rpm: libblkid-devel + + libcap-ng: + deb: libcap-ng-dev + rpm: libcap-ng-devel + + libcurl: + deb: libcurl4-gnutls-dev + pkg: curl + rpm: libcurl-devel + + libdbus: + deb: libdbus-1-dev + pkg: dbus + rpm: dbus-devel + + libnl: + CentOS6: libnl-devel + + libnl3: + deb: libnl-3-dev + rpm: libnl3-devel + + libnlroute3: + deb: libnl-route-3-dev + rpm: libnl3-devel + + libnuma: + deb: libnuma-dev + rpm: numactl-devel + + libparted: + deb: libparted-dev + rpm: parted-devel + + libpcap: + deb: libpcap-dev + pkg: libpcap + rpm: libpcap-devel + + libpciaccess: + deb: libpciaccess-dev + pkg: libpciaccess + rpm: libpciaccess-devel + + librbd: + deb: librbd-dev + Fedora: librbd-devel + CentOS7: librbd1-devel + + libselinux: + deb: libselinux1-dev + rpm: libselinux-devel + libsoup: deb: libsoup2.4-dev pkg: libsoup rpm: libsoup-devel =20 + libssh: + pkg: libssh + rpm: libssh-devel + Debian: libssh-gcrypt-dev + Ubuntu: libssh-dev + CentOS6: + + libssh2: + deb: libssh2-1-dev + pkg: libssh2 + rpm: libssh2-devel + libtool: default: libtool Debian: libtool-bin @@ -98,6 +236,10 @@ mappings: libtoolize: default: libtool =20 + libudev: + deb: libudev-dev + rpm: libudev-devel + libxml2: deb: libxml2-dev pkg: libxml2 @@ -108,10 +250,105 @@ mappings: pkg: libxslt rpm: libxslt-devel =20 + lvm2: + default: lvm2 + FreeBSD: + make: default: make FreeBSD: gmake =20 + mingw32-curl: + FedoraRawhide: mingw32-curl + + mingw32-dbus: + FedoraRawhide: mingw32-dbus + + mingw32-dlfcn: + FedoraRawhide: mingw32-dlfcn + + mingw32-gcc: + FedoraRawhide: mingw32-gcc + + mingw32-gettext: + FedoraRawhide: mingw32-gettext + + mingw32-gnutls: + FedoraRawhide: mingw32-gnutls + + mingw32-libssh2: + FedoraRawhide: mingw32-libssh2 + + mingw32-libxml2: + FedoraRawhide: mingw32-libxml2 + + mingw32-openssl: + FedoraRawhide: mingw32-openssl + + mingw32-pkg-config: + FedoraRawhide: mingw32-pkg-config + + mingw32-portablexdr: + FedoraRawhide: mingw32-portablexdr + + mingw32-readline: + FedoraRawhide: mingw32-readline + + mingw64-curl: + FedoraRawhide: mingw64-curl + + mingw64-dbus: + FedoraRawhide: mingw64-dbus + + mingw64-dlfcn: + FedoraRawhide: mingw64-dlfcn + + mingw64-gcc: + FedoraRawhide: mingw64-gcc + + mingw64-gettext: + FedoraRawhide: mingw64-gettext + + mingw64-gnutls: + FedoraRawhide: mingw64-gnutls + + mingw64-libssh2: + FedoraRawhide: mingw64-libssh2 + + mingw64-libxml2: + FedoraRawhide: mingw64-libxml2 + + mingw64-openssl: + FedoraRawhide: mingw64-openssl + + mingw64-pkg-config: + FedoraRawhide: mingw64-pkg-config + + mingw64-portablexdr: + FedoraRawhide: mingw64-portablexdr + + mingw64-readline: + FedoraRawhide: mingw64-readline + + netcf: + deb: libnetcf-dev + rpm: netcf-devel + + numad: + default: numad + FreeBSD: + Debian8: + Ubuntu12: + Ubuntu14: + + openwsman: + rpm: libwsman-devel + Ubuntu: libopenwsman-dev + + parted: + default: parted + FreeBSD: + patch: default: patch =20 @@ -128,9 +365,44 @@ mappings: rpm: pkgconfig Ubuntu12: pkg-config =20 + polkit: + deb: policykit-1 + pkg: polkit + rpm: polkit-devel + + qemu-img: + default: qemu-utils + rpm: qemu-img + + radvd: + default: radvd + + readline: + deb: libreadline-dev + pkg: readline + rpm: readline-devel + rpmbuild: rpm: rpm-build =20 + sanlock: + deb: libsanlock-dev + rpm: sanlock-devel + Ubuntu12: + + scrub: + default: scrub + FreeBSD: diskscrub + + sheepdog: + default: sheepdog + CentOS: + FreeBSD: + + showmount: + deb: nfs-common + rpm: nfs-utils + usb-ids: default: hwdata FreeBSD: usbids @@ -140,6 +412,30 @@ mappings: deb: valac CentOS6: =20 + wireshark: + deb: wireshark-dev + Fedora: wireshark-devel + Debian8: + Ubuntu14: + + xen: + deb: libxen-dev + Fedora: xen-devel + xmllint: default: libxml2 deb: libxml2-utils + + xsltproc: + default: libxslt + deb: xsltproc + + yajl: + deb: libyajl-dev + pkg: yajl + rpm: yajl-devel + + zfs: + default: zfs-fuse + CentOS: + FreeBSD: diff --git a/ansible/vars/projects/libvirt.yml b/ansible/vars/projects/libv= irt.yml new file mode 100644 index 0000000..1c50499 --- /dev/null +++ b/ansible/vars/projects/libvirt.yml @@ -0,0 +1,78 @@ +--- +packages: + - apparmor + - augeas + - avahi + - cyrus-sasl + - device-mapper + - dnsmasq + - dtrace + - ebtables + - fuse + - glusterfs + - gnutls + - hal + - iscsiadm + - libacl + - libattr + - libaudit + - libblkid + - libcap-ng + - libcurl + - libdbus + - libnl + - libnl3 + - libnlroute3 + - libnuma + - libparted + - libpcap + - libpciaccess + - librbd + - libselinux + - libssh + - libssh2 + - libudev + - libxml2 + - lvm2 + - mingw32-curl + - mingw32-dbus + - mingw32-dlfcn + - mingw32-gcc + - mingw32-gettext + - mingw32-gnutls + - mingw32-libssh2 + - mingw32-libxml2 + - mingw32-openssl + - mingw32-pkg-config + - mingw32-portablexdr + - mingw32-readline + - mingw64-curl + - mingw64-dbus + - mingw64-dlfcn + - mingw64-gcc + - mingw64-gettext + - mingw64-gnutls + - mingw64-libssh2 + - mingw64-libxml2 + - mingw64-openssl + - mingw64-pkg-config + - mingw64-portablexdr + - mingw64-readline + - netcf + - numad + - openwsman + - parted + - polkit + - qemu-img + - radvd + - readline + - sanlock + - scrub + - sheepdog + - showmount + - wireshark + - xen + - xmllint + - xsltproc + - yajl + - zfs --=20 2.13.6 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list