[libvirt] [libvirt-jenkins-ci PATCH 00/18] Ansible all the things!

See patch 18 for information about the purpose and scope of these changes. Andrea Bolognani (18): ansible: Add initial support ansible: Add initial support for building projects ansible: Add libosinfo project ansible: Add libvirt project ansible: Add libvirt-cim project ansible: Add libvirt-glib project ansible: Add libvirt-go project ansible: Add libvirt-go-xml project ansible: Add libvirt-perl project ansible: Add libvirt-python project ansible: Add libvirt-sandbox project ansible: Add libvirt-tck project ansible: Add osinfo-db project ansible: Add osinfo-db-tools project ansible: Add virt-manager project ansible: Add virt-viewer project ansible: Install and configure Jenkins agent ansible: Add documentation ansible/.gitignore | 3 + ansible/Makefile | 12 ++ ansible/README.markdown | 71 +++++++ ansible/ansible.cfg | 9 + ansible/bootstrap.yml | 17 ++ ansible/group_vars/all/main.yml | 18 ++ ansible/host_vars/libvirt-centos-6/main.yml | 10 + ansible/host_vars/libvirt-centos-6/vault.yml | 10 + ansible/host_vars/libvirt-centos-7/main.yml | 19 ++ ansible/host_vars/libvirt-centos-7/vault.yml | 10 + ansible/host_vars/libvirt-debian-8/main.yml | 17 ++ ansible/host_vars/libvirt-debian-8/vault.yml | 10 + ansible/host_vars/libvirt-debian-9/main.yml | 19 ++ ansible/host_vars/libvirt-debian-9/vault.yml | 10 + ansible/host_vars/libvirt-fedora-25/main.yml | 20 ++ ansible/host_vars/libvirt-fedora-25/vault.yml | 10 + ansible/host_vars/libvirt-fedora-26/main.yml | 20 ++ ansible/host_vars/libvirt-fedora-26/vault.yml | 10 + ansible/host_vars/libvirt-fedora-rawhide/main.yml | 20 ++ ansible/host_vars/libvirt-fedora-rawhide/vault.yml | 10 + ansible/host_vars/libvirt-freebsd-11/main.yml | 25 +++ ansible/host_vars/libvirt-freebsd-11/vault.yml | 10 + ansible/host_vars/libvirt-ubuntu-12/main.yml | 7 + ansible/host_vars/libvirt-ubuntu-12/vault.yml | 8 + ansible/host_vars/libvirt-ubuntu-14/main.yml | 14 ++ ansible/host_vars/libvirt-ubuntu-14/vault.yml | 8 + ansible/host_vars/libvirt-ubuntu-16/main.yml | 18 ++ ansible/host_vars/libvirt-ubuntu-16/vault.yml | 8 + ansible/inventory | 8 + ansible/mappings/commands.yml | 77 +++++++ ansible/mappings/libraries.yml | 228 +++++++++++++++++++++ ansible/mappings/misc.yml | 13 ++ ansible/mappings/perl.yml | 112 ++++++++++ ansible/mappings/python.yml | 35 ++++ ansible/site.yml | 38 ++++ ansible/tasks/base.yml | 77 +++++++ ansible/tasks/bootstrap.yml | 22 ++ ansible/tasks/build.yml | 223 ++++++++++++++++++++ ansible/tasks/compat.yml | 16 ++ ansible/tasks/facts.yml | 14 ++ ansible/tasks/jenkins.yml | 59 ++++++ ansible/tasks/packages.yml | 22 ++ ansible/templates/jenkins.service.j2 | 14 ++ ansible/vars/base/CentOS-6.yml | 13 ++ ansible/vars/base/CentOS-7.yml | 13 ++ ansible/vars/base/Debian-8.yml | 14 ++ ansible/vars/base/Debian-9.yml | 14 ++ ansible/vars/base/Fedora-25.yml | 15 ++ ansible/vars/base/Fedora-26.yml | 15 ++ ansible/vars/base/Fedora-Rawhide.yml | 15 ++ ansible/vars/base/FreeBSD-11.yml | 11 + ansible/vars/base/Ubuntu-12.yml | 13 ++ ansible/vars/base/Ubuntu-14.yml | 13 ++ ansible/vars/base/Ubuntu-16.yml | 14 ++ ansible/vars/jenkins/CentOS-6.yml | 3 + ansible/vars/jenkins/CentOS-7.yml | 3 + ansible/vars/jenkins/Debian-8.yml | 3 + ansible/vars/jenkins/Debian-9.yml | 3 + ansible/vars/jenkins/Fedora-25.yml | 3 + ansible/vars/jenkins/Fedora-26.yml | 3 + ansible/vars/jenkins/Fedora-Rawhide.yml | 3 + ansible/vars/jenkins/FreeBSD-11.yml | 3 + ansible/vars/jenkins/Ubuntu-12.yml | 3 + ansible/vars/jenkins/Ubuntu-14.yml | 3 + ansible/vars/jenkins/Ubuntu-16.yml | 3 + ansible/vars/libosinfo/CentOS-7.yml | 19 ++ ansible/vars/libosinfo/Debian-8.yml | 19 ++ ansible/vars/libosinfo/Debian-9.yml | 19 ++ ansible/vars/libosinfo/Fedora-25.yml | 19 ++ ansible/vars/libosinfo/Fedora-26.yml | 19 ++ ansible/vars/libosinfo/Fedora-Rawhide.yml | 19 ++ ansible/vars/libosinfo/FreeBSD-11.yml | 19 ++ ansible/vars/libosinfo/Ubuntu-14.yml | 19 ++ ansible/vars/libosinfo/Ubuntu-16.yml | 19 ++ ansible/vars/libvirt-cim/CentOS-6.yml | 11 + ansible/vars/libvirt-cim/CentOS-7.yml | 11 + ansible/vars/libvirt-cim/Fedora-25.yml | 11 + ansible/vars/libvirt-cim/Fedora-26.yml | 11 + ansible/vars/libvirt-cim/Fedora-Rawhide.yml | 11 + ansible/vars/libvirt-glib/CentOS-7.yml | 16 ++ ansible/vars/libvirt-glib/Debian-8.yml | 16 ++ ansible/vars/libvirt-glib/Debian-9.yml | 16 ++ ansible/vars/libvirt-glib/Fedora-25.yml | 16 ++ ansible/vars/libvirt-glib/Fedora-26.yml | 16 ++ ansible/vars/libvirt-glib/Fedora-Rawhide.yml | 16 ++ ansible/vars/libvirt-glib/FreeBSD-11.yml | 16 ++ ansible/vars/libvirt-glib/Ubuntu-16.yml | 16 ++ ansible/vars/libvirt-go-xml/CentOS-7.yml | 3 + ansible/vars/libvirt-go-xml/Debian-8.yml | 3 + ansible/vars/libvirt-go-xml/Debian-9.yml | 3 + ansible/vars/libvirt-go-xml/Fedora-25.yml | 3 + ansible/vars/libvirt-go-xml/Fedora-26.yml | 3 + ansible/vars/libvirt-go-xml/Fedora-Rawhide.yml | 3 + ansible/vars/libvirt-go-xml/FreeBSD-11.yml | 3 + ansible/vars/libvirt-go-xml/Ubuntu-16.yml | 3 + ansible/vars/libvirt-go/CentOS-7.yml | 7 + ansible/vars/libvirt-go/Debian-8.yml | 7 + ansible/vars/libvirt-go/Debian-9.yml | 7 + ansible/vars/libvirt-go/Fedora-25.yml | 7 + ansible/vars/libvirt-go/Fedora-26.yml | 7 + ansible/vars/libvirt-go/Fedora-Rawhide.yml | 7 + ansible/vars/libvirt-go/FreeBSD-11.yml | 6 + ansible/vars/libvirt-go/Ubuntu-16.yml | 7 + ansible/vars/libvirt-perl/CentOS-6.yml | 7 + ansible/vars/libvirt-perl/CentOS-7.yml | 8 + ansible/vars/libvirt-perl/Debian-8.yml | 7 + ansible/vars/libvirt-perl/Debian-9.yml | 7 + ansible/vars/libvirt-perl/Fedora-25.yml | 8 + ansible/vars/libvirt-perl/Fedora-26.yml | 8 + ansible/vars/libvirt-perl/Fedora-Rawhide.yml | 8 + ansible/vars/libvirt-perl/FreeBSD-11.yml | 8 + ansible/vars/libvirt-perl/Ubuntu-14.yml | 6 + ansible/vars/libvirt-perl/Ubuntu-16.yml | 7 + ansible/vars/libvirt-python/CentOS-6.yml | 8 + ansible/vars/libvirt-python/CentOS-7.yml | 8 + ansible/vars/libvirt-python/Debian-8.yml | 8 + ansible/vars/libvirt-python/Debian-9.yml | 8 + ansible/vars/libvirt-python/Fedora-25.yml | 11 + ansible/vars/libvirt-python/Fedora-26.yml | 11 + ansible/vars/libvirt-python/Fedora-Rawhide.yml | 11 + ansible/vars/libvirt-python/FreeBSD-11.yml | 7 + ansible/vars/libvirt-python/Ubuntu-14.yml | 8 + ansible/vars/libvirt-python/Ubuntu-16.yml | 8 + ansible/vars/libvirt-sandbox/CentOS-7.yml | 25 +++ ansible/vars/libvirt-sandbox/Debian-9.yml | 22 ++ ansible/vars/libvirt-sandbox/Fedora-25.yml | 26 +++ ansible/vars/libvirt-sandbox/Fedora-26.yml | 26 +++ ansible/vars/libvirt-sandbox/Fedora-Rawhide.yml | 26 +++ ansible/vars/libvirt-sandbox/Ubuntu-16.yml | 22 ++ ansible/vars/libvirt-tck/Debian-8.yml | 22 ++ ansible/vars/libvirt-tck/Debian-9.yml | 22 ++ ansible/vars/libvirt-tck/Fedora-25.yml | 22 ++ ansible/vars/libvirt-tck/Fedora-26.yml | 22 ++ ansible/vars/libvirt-tck/Fedora-Rawhide.yml | 22 ++ ansible/vars/libvirt-tck/FreeBSD-11.yml | 20 ++ ansible/vars/libvirt-tck/Ubuntu-14.yml | 21 ++ ansible/vars/libvirt-tck/Ubuntu-16.yml | 22 ++ ansible/vars/libvirt/CentOS-6.yml | 119 +++++++++++ ansible/vars/libvirt/CentOS-7.yml | 121 +++++++++++ ansible/vars/libvirt/Debian-8.yml | 124 +++++++++++ ansible/vars/libvirt/Debian-9.yml | 126 ++++++++++++ ansible/vars/libvirt/Fedora-25.yml | 125 +++++++++++ ansible/vars/libvirt/Fedora-26.yml | 124 +++++++++++ ansible/vars/libvirt/Fedora-Rawhide.yml | 148 +++++++++++++ ansible/vars/libvirt/FreeBSD-11.yml | 98 +++++++++ ansible/vars/libvirt/Ubuntu-12.yml | 122 +++++++++++ ansible/vars/libvirt/Ubuntu-14.yml | 125 +++++++++++ ansible/vars/libvirt/Ubuntu-16.yml | 128 ++++++++++++ ansible/vars/osinfo-db-tools/CentOS-7.yml | 8 + ansible/vars/osinfo-db-tools/Debian-8.yml | 8 + ansible/vars/osinfo-db-tools/Debian-9.yml | 8 + ansible/vars/osinfo-db-tools/Fedora-25.yml | 8 + ansible/vars/osinfo-db-tools/Fedora-26.yml | 8 + ansible/vars/osinfo-db-tools/Fedora-Rawhide.yml | 8 + ansible/vars/osinfo-db-tools/FreeBSD-11.yml | 8 + ansible/vars/osinfo-db-tools/Ubuntu-14.yml | 8 + ansible/vars/osinfo-db-tools/Ubuntu-16.yml | 8 + ansible/vars/osinfo-db/CentOS-7.yml | 7 + ansible/vars/osinfo-db/Debian-9.yml | 7 + ansible/vars/osinfo-db/Fedora-25.yml | 7 + ansible/vars/osinfo-db/Fedora-26.yml | 7 + ansible/vars/osinfo-db/Fedora-Rawhide.yml | 7 + ansible/vars/osinfo-db/FreeBSD-11.yml | 7 + 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 ++ ansible/vars/virt-viewer/CentOS-7.yml | 20 ++ ansible/vars/virt-viewer/Debian-8.yml | 18 ++ ansible/vars/virt-viewer/Debian-9.yml | 20 ++ ansible/vars/virt-viewer/Fedora-25.yml | 20 ++ ansible/vars/virt-viewer/Fedora-26.yml | 20 ++ ansible/vars/virt-viewer/Fedora-Rawhide.yml | 20 ++ ansible/vars/virt-viewer/FreeBSD-11.yml | 18 ++ ansible/vars/virt-viewer/Ubuntu-14.yml | 16 ++ ansible/vars/virt-viewer/Ubuntu-16.yml | 18 ++ 181 files changed, 4230 insertions(+) create mode 100644 ansible/.gitignore create mode 100644 ansible/Makefile create mode 100644 ansible/README.markdown create mode 100644 ansible/ansible.cfg create mode 100644 ansible/bootstrap.yml create mode 100644 ansible/group_vars/all/main.yml create mode 100644 ansible/host_vars/libvirt-centos-6/main.yml create mode 100644 ansible/host_vars/libvirt-centos-6/vault.yml create mode 100644 ansible/host_vars/libvirt-centos-7/main.yml create mode 100644 ansible/host_vars/libvirt-centos-7/vault.yml create mode 100644 ansible/host_vars/libvirt-debian-8/main.yml create mode 100644 ansible/host_vars/libvirt-debian-8/vault.yml create mode 100644 ansible/host_vars/libvirt-debian-9/main.yml create mode 100644 ansible/host_vars/libvirt-debian-9/vault.yml create mode 100644 ansible/host_vars/libvirt-fedora-25/main.yml create mode 100644 ansible/host_vars/libvirt-fedora-25/vault.yml create mode 100644 ansible/host_vars/libvirt-fedora-26/main.yml create mode 100644 ansible/host_vars/libvirt-fedora-26/vault.yml create mode 100644 ansible/host_vars/libvirt-fedora-rawhide/main.yml create mode 100644 ansible/host_vars/libvirt-fedora-rawhide/vault.yml create mode 100644 ansible/host_vars/libvirt-freebsd-11/main.yml create mode 100644 ansible/host_vars/libvirt-freebsd-11/vault.yml create mode 100644 ansible/host_vars/libvirt-ubuntu-12/main.yml create mode 100644 ansible/host_vars/libvirt-ubuntu-12/vault.yml create mode 100644 ansible/host_vars/libvirt-ubuntu-14/main.yml create mode 100644 ansible/host_vars/libvirt-ubuntu-14/vault.yml create mode 100644 ansible/host_vars/libvirt-ubuntu-16/main.yml create mode 100644 ansible/host_vars/libvirt-ubuntu-16/vault.yml create mode 100644 ansible/inventory create mode 100644 ansible/mappings/commands.yml create mode 100644 ansible/mappings/libraries.yml create mode 100644 ansible/mappings/misc.yml create mode 100644 ansible/mappings/perl.yml create mode 100644 ansible/mappings/python.yml create mode 100644 ansible/site.yml create mode 100644 ansible/tasks/base.yml create mode 100644 ansible/tasks/bootstrap.yml create mode 100644 ansible/tasks/build.yml create mode 100644 ansible/tasks/compat.yml create mode 100644 ansible/tasks/facts.yml create mode 100644 ansible/tasks/jenkins.yml create mode 100644 ansible/tasks/packages.yml create mode 100644 ansible/templates/jenkins.service.j2 create mode 100644 ansible/vars/base/CentOS-6.yml create mode 100644 ansible/vars/base/CentOS-7.yml create mode 100644 ansible/vars/base/Debian-8.yml create mode 100644 ansible/vars/base/Debian-9.yml create mode 100644 ansible/vars/base/Fedora-25.yml create mode 100644 ansible/vars/base/Fedora-26.yml create mode 100644 ansible/vars/base/Fedora-Rawhide.yml create mode 100644 ansible/vars/base/FreeBSD-11.yml create mode 100644 ansible/vars/base/Ubuntu-12.yml create mode 100644 ansible/vars/base/Ubuntu-14.yml create mode 100644 ansible/vars/base/Ubuntu-16.yml create mode 100644 ansible/vars/jenkins/CentOS-6.yml create mode 100644 ansible/vars/jenkins/CentOS-7.yml create mode 100644 ansible/vars/jenkins/Debian-8.yml create mode 100644 ansible/vars/jenkins/Debian-9.yml create mode 100644 ansible/vars/jenkins/Fedora-25.yml create mode 100644 ansible/vars/jenkins/Fedora-26.yml create mode 100644 ansible/vars/jenkins/Fedora-Rawhide.yml create mode 100644 ansible/vars/jenkins/FreeBSD-11.yml create mode 100644 ansible/vars/jenkins/Ubuntu-12.yml create mode 100644 ansible/vars/jenkins/Ubuntu-14.yml create mode 100644 ansible/vars/jenkins/Ubuntu-16.yml create mode 100644 ansible/vars/libosinfo/CentOS-7.yml create mode 100644 ansible/vars/libosinfo/Debian-8.yml create mode 100644 ansible/vars/libosinfo/Debian-9.yml create mode 100644 ansible/vars/libosinfo/Fedora-25.yml create mode 100644 ansible/vars/libosinfo/Fedora-26.yml create mode 100644 ansible/vars/libosinfo/Fedora-Rawhide.yml create mode 100644 ansible/vars/libosinfo/FreeBSD-11.yml create mode 100644 ansible/vars/libosinfo/Ubuntu-14.yml create mode 100644 ansible/vars/libosinfo/Ubuntu-16.yml create mode 100644 ansible/vars/libvirt-cim/CentOS-6.yml create mode 100644 ansible/vars/libvirt-cim/CentOS-7.yml create mode 100644 ansible/vars/libvirt-cim/Fedora-25.yml create mode 100644 ansible/vars/libvirt-cim/Fedora-26.yml create mode 100644 ansible/vars/libvirt-cim/Fedora-Rawhide.yml create mode 100644 ansible/vars/libvirt-glib/CentOS-7.yml create mode 100644 ansible/vars/libvirt-glib/Debian-8.yml create mode 100644 ansible/vars/libvirt-glib/Debian-9.yml create mode 100644 ansible/vars/libvirt-glib/Fedora-25.yml create mode 100644 ansible/vars/libvirt-glib/Fedora-26.yml create mode 100644 ansible/vars/libvirt-glib/Fedora-Rawhide.yml create mode 100644 ansible/vars/libvirt-glib/FreeBSD-11.yml create mode 100644 ansible/vars/libvirt-glib/Ubuntu-16.yml create mode 100644 ansible/vars/libvirt-go-xml/CentOS-7.yml create mode 100644 ansible/vars/libvirt-go-xml/Debian-8.yml create mode 100644 ansible/vars/libvirt-go-xml/Debian-9.yml create mode 100644 ansible/vars/libvirt-go-xml/Fedora-25.yml create mode 100644 ansible/vars/libvirt-go-xml/Fedora-26.yml create mode 100644 ansible/vars/libvirt-go-xml/Fedora-Rawhide.yml create mode 100644 ansible/vars/libvirt-go-xml/FreeBSD-11.yml create mode 100644 ansible/vars/libvirt-go-xml/Ubuntu-16.yml create mode 100644 ansible/vars/libvirt-go/CentOS-7.yml create mode 100644 ansible/vars/libvirt-go/Debian-8.yml create mode 100644 ansible/vars/libvirt-go/Debian-9.yml create mode 100644 ansible/vars/libvirt-go/Fedora-25.yml create mode 100644 ansible/vars/libvirt-go/Fedora-26.yml create mode 100644 ansible/vars/libvirt-go/Fedora-Rawhide.yml create mode 100644 ansible/vars/libvirt-go/FreeBSD-11.yml create mode 100644 ansible/vars/libvirt-go/Ubuntu-16.yml create mode 100644 ansible/vars/libvirt-perl/CentOS-6.yml create mode 100644 ansible/vars/libvirt-perl/CentOS-7.yml create mode 100644 ansible/vars/libvirt-perl/Debian-8.yml create mode 100644 ansible/vars/libvirt-perl/Debian-9.yml create mode 100644 ansible/vars/libvirt-perl/Fedora-25.yml create mode 100644 ansible/vars/libvirt-perl/Fedora-26.yml create mode 100644 ansible/vars/libvirt-perl/Fedora-Rawhide.yml create mode 100644 ansible/vars/libvirt-perl/FreeBSD-11.yml create mode 100644 ansible/vars/libvirt-perl/Ubuntu-14.yml create mode 100644 ansible/vars/libvirt-perl/Ubuntu-16.yml create mode 100644 ansible/vars/libvirt-python/CentOS-6.yml create mode 100644 ansible/vars/libvirt-python/CentOS-7.yml create mode 100644 ansible/vars/libvirt-python/Debian-8.yml create mode 100644 ansible/vars/libvirt-python/Debian-9.yml create mode 100644 ansible/vars/libvirt-python/Fedora-25.yml create mode 100644 ansible/vars/libvirt-python/Fedora-26.yml create mode 100644 ansible/vars/libvirt-python/Fedora-Rawhide.yml create mode 100644 ansible/vars/libvirt-python/FreeBSD-11.yml create mode 100644 ansible/vars/libvirt-python/Ubuntu-14.yml create mode 100644 ansible/vars/libvirt-python/Ubuntu-16.yml create mode 100644 ansible/vars/libvirt-sandbox/CentOS-7.yml create mode 100644 ansible/vars/libvirt-sandbox/Debian-9.yml create mode 100644 ansible/vars/libvirt-sandbox/Fedora-25.yml create mode 100644 ansible/vars/libvirt-sandbox/Fedora-26.yml create mode 100644 ansible/vars/libvirt-sandbox/Fedora-Rawhide.yml create mode 100644 ansible/vars/libvirt-sandbox/Ubuntu-16.yml create mode 100644 ansible/vars/libvirt-tck/Debian-8.yml create mode 100644 ansible/vars/libvirt-tck/Debian-9.yml create mode 100644 ansible/vars/libvirt-tck/Fedora-25.yml create mode 100644 ansible/vars/libvirt-tck/Fedora-26.yml create mode 100644 ansible/vars/libvirt-tck/Fedora-Rawhide.yml create mode 100644 ansible/vars/libvirt-tck/FreeBSD-11.yml create mode 100644 ansible/vars/libvirt-tck/Ubuntu-14.yml create mode 100644 ansible/vars/libvirt-tck/Ubuntu-16.yml create mode 100644 ansible/vars/libvirt/CentOS-6.yml create mode 100644 ansible/vars/libvirt/CentOS-7.yml create mode 100644 ansible/vars/libvirt/Debian-8.yml create mode 100644 ansible/vars/libvirt/Debian-9.yml create mode 100644 ansible/vars/libvirt/Fedora-25.yml create mode 100644 ansible/vars/libvirt/Fedora-26.yml create mode 100644 ansible/vars/libvirt/Fedora-Rawhide.yml create mode 100644 ansible/vars/libvirt/FreeBSD-11.yml create mode 100644 ansible/vars/libvirt/Ubuntu-12.yml create mode 100644 ansible/vars/libvirt/Ubuntu-14.yml create mode 100644 ansible/vars/libvirt/Ubuntu-16.yml create mode 100644 ansible/vars/osinfo-db-tools/CentOS-7.yml create mode 100644 ansible/vars/osinfo-db-tools/Debian-8.yml create mode 100644 ansible/vars/osinfo-db-tools/Debian-9.yml create mode 100644 ansible/vars/osinfo-db-tools/Fedora-25.yml create mode 100644 ansible/vars/osinfo-db-tools/Fedora-26.yml create mode 100644 ansible/vars/osinfo-db-tools/Fedora-Rawhide.yml create mode 100644 ansible/vars/osinfo-db-tools/FreeBSD-11.yml create mode 100644 ansible/vars/osinfo-db-tools/Ubuntu-14.yml create mode 100644 ansible/vars/osinfo-db-tools/Ubuntu-16.yml create mode 100644 ansible/vars/osinfo-db/CentOS-7.yml create mode 100644 ansible/vars/osinfo-db/Debian-9.yml create mode 100644 ansible/vars/osinfo-db/Fedora-25.yml create mode 100644 ansible/vars/osinfo-db/Fedora-26.yml create mode 100644 ansible/vars/osinfo-db/Fedora-Rawhide.yml create mode 100644 ansible/vars/osinfo-db/FreeBSD-11.yml 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 create mode 100644 ansible/vars/virt-viewer/CentOS-7.yml create mode 100644 ansible/vars/virt-viewer/Debian-8.yml create mode 100644 ansible/vars/virt-viewer/Debian-9.yml create mode 100644 ansible/vars/virt-viewer/Fedora-25.yml create mode 100644 ansible/vars/virt-viewer/Fedora-26.yml create mode 100644 ansible/vars/virt-viewer/Fedora-Rawhide.yml create mode 100644 ansible/vars/virt-viewer/FreeBSD-11.yml create mode 100644 ansible/vars/virt-viewer/Ubuntu-14.yml create mode 100644 ansible/vars/virt-viewer/Ubuntu-16.yml -- 2.13.6

This commit adds just enough to bootstrap Jenkins workers and install packages required to build any project, such as gcc and make. Ubuntu 12-16 are supported, even though they're not actually used in libvirt CI, because there's a lot of overlap between this and Travis CI, which only supports Ubuntu instead. Signed-off-by: Andrea Bolognani <abologna@redhat.com> --- ansible/.gitignore | 3 + ansible/Makefile | 12 ++++ ansible/ansible.cfg | 8 +++ ansible/bootstrap.yml | 17 +++++ ansible/group_vars/all/main.yml | 8 +++ ansible/host_vars/libvirt-centos-6/main.yml | 3 + ansible/host_vars/libvirt-centos-7/main.yml | 3 + ansible/host_vars/libvirt-debian-8/main.yml | 3 + ansible/host_vars/libvirt-debian-9/main.yml | 3 + ansible/host_vars/libvirt-fedora-25/main.yml | 3 + ansible/host_vars/libvirt-fedora-26/main.yml | 3 + ansible/host_vars/libvirt-fedora-rawhide/main.yml | 3 + ansible/host_vars/libvirt-freebsd-11/main.yml | 10 +++ ansible/host_vars/libvirt-ubuntu-12/main.yml | 3 + ansible/host_vars/libvirt-ubuntu-14/main.yml | 3 + ansible/host_vars/libvirt-ubuntu-16/main.yml | 3 + ansible/inventory | 8 +++ ansible/site.yml | 17 +++++ ansible/tasks/base.yml | 77 +++++++++++++++++++++++ ansible/tasks/bootstrap.yml | 22 +++++++ ansible/tasks/facts.yml | 14 +++++ ansible/tasks/packages.yml | 11 ++++ ansible/vars/base/CentOS-6.yml | 13 ++++ ansible/vars/base/CentOS-7.yml | 13 ++++ ansible/vars/base/Debian-8.yml | 14 +++++ ansible/vars/base/Debian-9.yml | 14 +++++ ansible/vars/base/Fedora-25.yml | 15 +++++ ansible/vars/base/Fedora-26.yml | 15 +++++ ansible/vars/base/Fedora-Rawhide.yml | 15 +++++ ansible/vars/base/FreeBSD-11.yml | 11 ++++ ansible/vars/base/Ubuntu-12.yml | 13 ++++ ansible/vars/base/Ubuntu-14.yml | 13 ++++ ansible/vars/base/Ubuntu-16.yml | 14 +++++ 33 files changed, 387 insertions(+) create mode 100644 ansible/.gitignore create mode 100644 ansible/Makefile create mode 100644 ansible/ansible.cfg create mode 100644 ansible/bootstrap.yml create mode 100644 ansible/group_vars/all/main.yml create mode 100644 ansible/host_vars/libvirt-centos-6/main.yml create mode 100644 ansible/host_vars/libvirt-centos-7/main.yml create mode 100644 ansible/host_vars/libvirt-debian-8/main.yml create mode 100644 ansible/host_vars/libvirt-debian-9/main.yml create mode 100644 ansible/host_vars/libvirt-fedora-25/main.yml create mode 100644 ansible/host_vars/libvirt-fedora-26/main.yml create mode 100644 ansible/host_vars/libvirt-fedora-rawhide/main.yml create mode 100644 ansible/host_vars/libvirt-freebsd-11/main.yml create mode 100644 ansible/host_vars/libvirt-ubuntu-12/main.yml create mode 100644 ansible/host_vars/libvirt-ubuntu-14/main.yml create mode 100644 ansible/host_vars/libvirt-ubuntu-16/main.yml create mode 100644 ansible/inventory create mode 100644 ansible/site.yml create mode 100644 ansible/tasks/base.yml create mode 100644 ansible/tasks/bootstrap.yml create mode 100644 ansible/tasks/facts.yml create mode 100644 ansible/tasks/packages.yml create mode 100644 ansible/vars/base/CentOS-6.yml create mode 100644 ansible/vars/base/CentOS-7.yml create mode 100644 ansible/vars/base/Debian-8.yml create mode 100644 ansible/vars/base/Debian-9.yml create mode 100644 ansible/vars/base/Fedora-25.yml create mode 100644 ansible/vars/base/Fedora-26.yml create mode 100644 ansible/vars/base/Fedora-Rawhide.yml create mode 100644 ansible/vars/base/FreeBSD-11.yml create mode 100644 ansible/vars/base/Ubuntu-12.yml create mode 100644 ansible/vars/base/Ubuntu-14.yml create mode 100644 ansible/vars/base/Ubuntu-16.yml diff --git a/ansible/.gitignore b/ansible/.gitignore new file mode 100644 index 0000000..4a271f2 --- /dev/null +++ b/ansible/.gitignore @@ -0,0 +1,3 @@ +*.retry +*.swp +log diff --git a/ansible/Makefile b/ansible/Makefile new file mode 100644 index 0000000..39ebe52 --- /dev/null +++ b/ansible/Makefile @@ -0,0 +1,12 @@ +all: + +site: + @ansible-playbook site.yml + +bootstrap: + @ansible-playbook --ask-pass bootstrap.yml + +clean: + @rm -f *.retry log + +.PHONY: all site bootstrap clean diff --git a/ansible/ansible.cfg b/ansible/ansible.cfg new file mode 100644 index 0000000..ca02677 --- /dev/null +++ b/ansible/ansible.cfg @@ -0,0 +1,8 @@ +[defaults] +display_skipped_hosts = False +forks = 16 +inventory = ./inventory +log_path = ./log +nocows = 1 +pipelining = True +squash_actions = package diff --git a/ansible/bootstrap.yml b/ansible/bootstrap.yml new file mode 100644 index 0000000..67c359d --- /dev/null +++ b/ansible/bootstrap.yml @@ -0,0 +1,17 @@ +--- +- hosts: all + gather_facts: no + + tasks: + + # Bootstrap Ansible itself + - include: tasks/bootstrap.yml + + +- hosts: all + + tasks: + + # Prepare the base environment + - include: tasks/facts.yml + - include: tasks/base.yml diff --git a/ansible/group_vars/all/main.yml b/ansible/group_vars/all/main.yml new file mode 100644 index 0000000..e8d3cb6 --- /dev/null +++ b/ansible/group_vars/all/main.yml @@ -0,0 +1,8 @@ +--- +ansible_user: root + +# Paths to various command. Can be overridden on a per-host basis +bash: /bin/bash +java: /usr/bin/java +make: /usr/bin/make +sudo: /usr/bin/sudo diff --git a/ansible/host_vars/libvirt-centos-6/main.yml b/ansible/host_vars/libvirt-centos-6/main.yml new file mode 100644 index 0000000..1602406 --- /dev/null +++ b/ansible/host_vars/libvirt-centos-6/main.yml @@ -0,0 +1,3 @@ +--- +projects: + - base diff --git a/ansible/host_vars/libvirt-centos-7/main.yml b/ansible/host_vars/libvirt-centos-7/main.yml new file mode 100644 index 0000000..1602406 --- /dev/null +++ b/ansible/host_vars/libvirt-centos-7/main.yml @@ -0,0 +1,3 @@ +--- +projects: + - base diff --git a/ansible/host_vars/libvirt-debian-8/main.yml b/ansible/host_vars/libvirt-debian-8/main.yml new file mode 100644 index 0000000..1602406 --- /dev/null +++ b/ansible/host_vars/libvirt-debian-8/main.yml @@ -0,0 +1,3 @@ +--- +projects: + - base diff --git a/ansible/host_vars/libvirt-debian-9/main.yml b/ansible/host_vars/libvirt-debian-9/main.yml new file mode 100644 index 0000000..1602406 --- /dev/null +++ b/ansible/host_vars/libvirt-debian-9/main.yml @@ -0,0 +1,3 @@ +--- +projects: + - base diff --git a/ansible/host_vars/libvirt-fedora-25/main.yml b/ansible/host_vars/libvirt-fedora-25/main.yml new file mode 100644 index 0000000..1602406 --- /dev/null +++ b/ansible/host_vars/libvirt-fedora-25/main.yml @@ -0,0 +1,3 @@ +--- +projects: + - base diff --git a/ansible/host_vars/libvirt-fedora-26/main.yml b/ansible/host_vars/libvirt-fedora-26/main.yml new file mode 100644 index 0000000..1602406 --- /dev/null +++ b/ansible/host_vars/libvirt-fedora-26/main.yml @@ -0,0 +1,3 @@ +--- +projects: + - base diff --git a/ansible/host_vars/libvirt-fedora-rawhide/main.yml b/ansible/host_vars/libvirt-fedora-rawhide/main.yml new file mode 100644 index 0000000..1602406 --- /dev/null +++ b/ansible/host_vars/libvirt-fedora-rawhide/main.yml @@ -0,0 +1,3 @@ +--- +projects: + - base diff --git a/ansible/host_vars/libvirt-freebsd-11/main.yml b/ansible/host_vars/libvirt-freebsd-11/main.yml new file mode 100644 index 0000000..d405d58 --- /dev/null +++ b/ansible/host_vars/libvirt-freebsd-11/main.yml @@ -0,0 +1,10 @@ +--- +ansible_python_interpreter: /usr/local/bin/python2 + +bash: /usr/local/bin/bash +java: /usr/local/bin/java +make: /usr/local/bin/gmake +sudo: /usr/local/bin/sudo + +projects: + - base diff --git a/ansible/host_vars/libvirt-ubuntu-12/main.yml b/ansible/host_vars/libvirt-ubuntu-12/main.yml new file mode 100644 index 0000000..1602406 --- /dev/null +++ b/ansible/host_vars/libvirt-ubuntu-12/main.yml @@ -0,0 +1,3 @@ +--- +projects: + - base diff --git a/ansible/host_vars/libvirt-ubuntu-14/main.yml b/ansible/host_vars/libvirt-ubuntu-14/main.yml new file mode 100644 index 0000000..1602406 --- /dev/null +++ b/ansible/host_vars/libvirt-ubuntu-14/main.yml @@ -0,0 +1,3 @@ +--- +projects: + - base diff --git a/ansible/host_vars/libvirt-ubuntu-16/main.yml b/ansible/host_vars/libvirt-ubuntu-16/main.yml new file mode 100644 index 0000000..1602406 --- /dev/null +++ b/ansible/host_vars/libvirt-ubuntu-16/main.yml @@ -0,0 +1,3 @@ +--- +projects: + - base diff --git a/ansible/inventory b/ansible/inventory new file mode 100644 index 0000000..3becfa0 --- /dev/null +++ b/ansible/inventory @@ -0,0 +1,8 @@ +libvirt-centos-7 +libvirt-centos-6 +libvirt-debian-9 +libvirt-debian-8 +libvirt-fedora-rawhide +libvirt-fedora-26 +libvirt-fedora-25 +libvirt-freebsd-11 diff --git a/ansible/site.yml b/ansible/site.yml new file mode 100644 index 0000000..27af6de --- /dev/null +++ b/ansible/site.yml @@ -0,0 +1,17 @@ +--- +- hosts: all + + tasks: + + # Prepare the base environment + - include: tasks/facts.yml + - include: tasks/base.yml + + # Install build dependencies for each project + - include: tasks/packages.yml + with_items: + '{{ projects }}' + loop_control: + loop_var: project + when: + - projects is defined diff --git a/ansible/tasks/base.yml b/ansible/tasks/base.yml new file mode 100644 index 0000000..989c5a6 --- /dev/null +++ b/ansible/tasks/base.yml @@ -0,0 +1,77 @@ +--- +- name: Bootstrap the package module + command: dnf install -y python2-dnf + args: + creates: /usr/lib*/python2*/*-packages/dnf + when: + - os_name == 'Fedora' + +- name: Bootstrap the package module + command: apt-get install -y python-apt + args: + creates: /usr/lib/python2*/*-packages/apt + when: + - ( os_name == 'Debian' or + os_name == 'Ubuntu' ) + +- name: Update installed packages + package: + name: '*' + state: latest + when: + - ( os_name == 'CentOS' or + os_name == 'Fedora' ) + +- name: Update installed packages + apt: + upgrade: dist + update_cache: yes + when: + - ( os_name == 'Debian' or + os_name == 'Ubuntu' ) + +- name: Update installed packages + shell: pkg update && pkg upgrade -y + when: + - os_name == 'FreeBSD' + +- name: Install base packages + package: + name: '{{ item }}' + state: present + with_items: + - bash + - git + - screen + - sudo + - vim + +- name: Remove unwanted packages + package: + name: '{{ item }}' + state: absent + with_items: + - nano + +- name: Permit file editing on SELinux-enabled systems + package: + name: libselinux-python + state: present + when: + - ( os_name == 'CentOS' or + os_name == 'Fedora' ) + +- name: Configure hostname + hostname: + name: '{{ inventory_hostname }}' + +- name: Configure root shell + user: + name: root + shell: '{{ bash }}' + +- name: Configure ssh access for the root user + authorized_key: + user: root + key: '{{ lookup("file", lookup("env", "HOME") + "/.ssh/id_rsa.pub") }}' + state: present diff --git a/ansible/tasks/bootstrap.yml b/ansible/tasks/bootstrap.yml new file mode 100644 index 0000000..24848c8 --- /dev/null +++ b/ansible/tasks/bootstrap.yml @@ -0,0 +1,22 @@ +--- +- name: Bootstrap the pkgng package manager + raw: env ASSUME_ALWAYS_YES=YES pkg bootstrap + when: + - inventory_hostname|search('freebsd') + +- name: Bootstrap Ansible + raw: yum install -y python2 + when: + - ( inventory_hostname|search('centos') or + inventory_hostname|search('fedora') ) + +- name: Bootstrap Ansible + raw: apt-get install -y python + when: + - ( inventory_hostname|search('debian') or + inventory_hostname|search('ubuntu') ) + +- name: Bootstrap Ansible + raw: pkg install -y python2 + when: + - inventory_hostname|search('freebsd') diff --git a/ansible/tasks/facts.yml b/ansible/tasks/facts.yml new file mode 100644 index 0000000..223aa1e --- /dev/null +++ b/ansible/tasks/facts.yml @@ -0,0 +1,14 @@ +--- +- name: Set additional facts + set_fact: + os_name: '{{ ansible_distribution }}' + os_version: '{{ ansible_distribution_major_version }}' + when: + - ansible_distribution_release != 'Rawhide' + +- name: Set additional facts + set_fact: + os_name: '{{ ansible_distribution }}' + os_version: Rawhide + when: + - ansible_distribution_release == 'Rawhide' diff --git a/ansible/tasks/packages.yml b/ansible/tasks/packages.yml new file mode 100644 index 0000000..630d794 --- /dev/null +++ b/ansible/tasks/packages.yml @@ -0,0 +1,11 @@ +--- +- name: '{{ project }}: Load variables' + include_vars: + file: 'vars/{{ project }}/{{ os_name }}-{{ os_version }}.yml' + +- name: '{{ project }}: Install packages' + package: + name: '{{ item }}' + state: present + with_items: + '{{ packages }}' diff --git a/ansible/vars/base/CentOS-6.yml b/ansible/vars/base/CentOS-6.yml new file mode 100644 index 0000000..b107a8f --- /dev/null +++ b/ansible/vars/base/CentOS-6.yml @@ -0,0 +1,13 @@ +--- +packages: + - autoconf + - automake + - gcc + - gettext + - gettext-devel + - glibc-devel + - libtool + - make + - patch + - pkgconfig + - rpm-build diff --git a/ansible/vars/base/CentOS-7.yml b/ansible/vars/base/CentOS-7.yml new file mode 100644 index 0000000..b107a8f --- /dev/null +++ b/ansible/vars/base/CentOS-7.yml @@ -0,0 +1,13 @@ +--- +packages: + - autoconf + - automake + - gcc + - gettext + - gettext-devel + - glibc-devel + - libtool + - make + - patch + - pkgconfig + - rpm-build diff --git a/ansible/vars/base/Debian-8.yml b/ansible/vars/base/Debian-8.yml new file mode 100644 index 0000000..b36ade7 --- /dev/null +++ b/ansible/vars/base/Debian-8.yml @@ -0,0 +1,14 @@ +--- +packages: + - autoconf + - automake + - autopoint + - ccache + - gcc + - gettext + - libc6-dev + - libtool + - libtool-bin + - make + - patch + - pkgconf diff --git a/ansible/vars/base/Debian-9.yml b/ansible/vars/base/Debian-9.yml new file mode 100644 index 0000000..b36ade7 --- /dev/null +++ b/ansible/vars/base/Debian-9.yml @@ -0,0 +1,14 @@ +--- +packages: + - autoconf + - automake + - autopoint + - ccache + - gcc + - gettext + - libc6-dev + - libtool + - libtool-bin + - make + - patch + - pkgconf diff --git a/ansible/vars/base/Fedora-25.yml b/ansible/vars/base/Fedora-25.yml new file mode 100644 index 0000000..733efa8 --- /dev/null +++ b/ansible/vars/base/Fedora-25.yml @@ -0,0 +1,15 @@ +--- +packages: + - autoconf + - automake + - ccache + - cppi + - gcc + - gettext + - gettext-devel + - glibc-devel + - libtool + - make + - patch + - pkgconfig + - rpm-build diff --git a/ansible/vars/base/Fedora-26.yml b/ansible/vars/base/Fedora-26.yml new file mode 100644 index 0000000..733efa8 --- /dev/null +++ b/ansible/vars/base/Fedora-26.yml @@ -0,0 +1,15 @@ +--- +packages: + - autoconf + - automake + - ccache + - cppi + - gcc + - gettext + - gettext-devel + - glibc-devel + - libtool + - make + - patch + - pkgconfig + - rpm-build diff --git a/ansible/vars/base/Fedora-Rawhide.yml b/ansible/vars/base/Fedora-Rawhide.yml new file mode 100644 index 0000000..733efa8 --- /dev/null +++ b/ansible/vars/base/Fedora-Rawhide.yml @@ -0,0 +1,15 @@ +--- +packages: + - autoconf + - automake + - ccache + - cppi + - gcc + - gettext + - gettext-devel + - glibc-devel + - libtool + - make + - patch + - pkgconfig + - rpm-build diff --git a/ansible/vars/base/FreeBSD-11.yml b/ansible/vars/base/FreeBSD-11.yml new file mode 100644 index 0000000..e8c6315 --- /dev/null +++ b/ansible/vars/base/FreeBSD-11.yml @@ -0,0 +1,11 @@ +--- +packages: + - autoconf + - automake + - ccache + - cppi + - gettext + - gettext-tools + - gmake + - libtool + - pkgconf diff --git a/ansible/vars/base/Ubuntu-12.yml b/ansible/vars/base/Ubuntu-12.yml new file mode 100644 index 0000000..3b87b33 --- /dev/null +++ b/ansible/vars/base/Ubuntu-12.yml @@ -0,0 +1,13 @@ +--- +packages: + - autoconf + - automake + - autopoint + - ccache + - gcc + - gettext + - libc6-dev + - libtool + - make + - patch + - pkg-config diff --git a/ansible/vars/base/Ubuntu-14.yml b/ansible/vars/base/Ubuntu-14.yml new file mode 100644 index 0000000..da5a6ff --- /dev/null +++ b/ansible/vars/base/Ubuntu-14.yml @@ -0,0 +1,13 @@ +--- +packages: + - autoconf + - automake + - autopoint + - ccache + - gcc + - gettext + - libc6-dev + - libtool + - make + - patch + - pkgconf diff --git a/ansible/vars/base/Ubuntu-16.yml b/ansible/vars/base/Ubuntu-16.yml new file mode 100644 index 0000000..b36ade7 --- /dev/null +++ b/ansible/vars/base/Ubuntu-16.yml @@ -0,0 +1,14 @@ +--- +packages: + - autoconf + - automake + - autopoint + - ccache + - gcc + - gettext + - libc6-dev + - libtool + - libtool-bin + - make + - patch + - pkgconf -- 2.13.6

Building projects is entirely controlled by Jenkins in a production environment, but it can be useful to trigger builds via Ansible during development to figure out build dependencies and for sanity checking purposes. Signed-off-by: Andrea Bolognani <abologna@redhat.com> --- ansible/group_vars/all/main.yml | 8 ++++++++ ansible/site.yml | 12 ++++++++++++ ansible/tasks/build.yml | 14 ++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 ansible/tasks/build.yml diff --git a/ansible/group_vars/all/main.yml b/ansible/group_vars/all/main.yml index e8d3cb6..cd97458 100644 --- a/ansible/group_vars/all/main.yml +++ b/ansible/group_vars/all/main.yml @@ -6,3 +6,11 @@ bash: /bin/bash java: /usr/bin/java make: /usr/bin/make sudo: /usr/bin/sudo + +# Wether to build software. While this is useful for figuring out build +# dependencies, it should not be turned on in production because it causes +# extra packages to be installed, which can interfere with the CI jobs +build: false + +# How many parallel jobs to use when building software +smp: 3 diff --git a/ansible/site.yml b/ansible/site.yml index 27af6de..4603a59 100644 --- a/ansible/site.yml +++ b/ansible/site.yml @@ -15,3 +15,15 @@ loop_var: project when: - projects is defined + + - include: tasks/build.yml + with_items: + '{{ projects }}' + loop_control: + loop_var: project + when: + - projects is defined + # base is a pseudo-projects + - project != 'base' + # Building can be turned on and off + - build diff --git a/ansible/tasks/build.yml b/ansible/tasks/build.yml new file mode 100644 index 0000000..edb0064 --- /dev/null +++ b/ansible/tasks/build.yml @@ -0,0 +1,14 @@ +--- +- name: '{{ project }}: Load variables' + include_vars: + file: 'vars/{{ project }}/{{ os_name }}-{{ os_version }}.yml' + +- name: '{{ project }}: Drop local changes' + command: git reset --hard + args: + chdir: '{{ project }}' + +- name: '{{ project }}: Clean up' + command: git clean -xdf + args: + chdir: '{{ project }}' -- 2.13.6

Signed-off-by: Andrea Bolognani <abologna@redhat.com> --- 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 | 40 +++++++++++++++++++++++ ansible/vars/libosinfo/CentOS-7.yml | 19 +++++++++++ ansible/vars/libosinfo/Debian-8.yml | 19 +++++++++++ ansible/vars/libosinfo/Debian-9.yml | 19 +++++++++++ ansible/vars/libosinfo/Fedora-25.yml | 19 +++++++++++ ansible/vars/libosinfo/Fedora-26.yml | 19 +++++++++++ ansible/vars/libosinfo/Fedora-Rawhide.yml | 19 +++++++++++ ansible/vars/libosinfo/FreeBSD-11.yml | 19 +++++++++++ ansible/vars/libosinfo/Ubuntu-14.yml | 19 +++++++++++ ansible/vars/libosinfo/Ubuntu-16.yml | 19 +++++++++++ 19 files changed, 220 insertions(+) create mode 100644 ansible/vars/libosinfo/CentOS-7.yml create mode 100644 ansible/vars/libosinfo/Debian-8.yml create mode 100644 ansible/vars/libosinfo/Debian-9.yml create mode 100644 ansible/vars/libosinfo/Fedora-25.yml create mode 100644 ansible/vars/libosinfo/Fedora-26.yml create mode 100644 ansible/vars/libosinfo/Fedora-Rawhide.yml create mode 100644 ansible/vars/libosinfo/FreeBSD-11.yml create mode 100644 ansible/vars/libosinfo/Ubuntu-14.yml create mode 100644 ansible/vars/libosinfo/Ubuntu-16.yml diff --git a/ansible/host_vars/libvirt-centos-7/main.yml b/ansible/host_vars/libvirt-centos-7/main.yml index 1602406..a40cb4c 100644 --- a/ansible/host_vars/libvirt-centos-7/main.yml +++ b/ansible/host_vars/libvirt-centos-7/main.yml @@ -1,3 +1,4 @@ --- projects: - base + - libosinfo diff --git a/ansible/host_vars/libvirt-debian-8/main.yml b/ansible/host_vars/libvirt-debian-8/main.yml index 1602406..a40cb4c 100644 --- a/ansible/host_vars/libvirt-debian-8/main.yml +++ b/ansible/host_vars/libvirt-debian-8/main.yml @@ -1,3 +1,4 @@ --- projects: - base + - libosinfo diff --git a/ansible/host_vars/libvirt-debian-9/main.yml b/ansible/host_vars/libvirt-debian-9/main.yml index 1602406..a40cb4c 100644 --- a/ansible/host_vars/libvirt-debian-9/main.yml +++ b/ansible/host_vars/libvirt-debian-9/main.yml @@ -1,3 +1,4 @@ --- projects: - base + - libosinfo diff --git a/ansible/host_vars/libvirt-fedora-25/main.yml b/ansible/host_vars/libvirt-fedora-25/main.yml index 1602406..a40cb4c 100644 --- a/ansible/host_vars/libvirt-fedora-25/main.yml +++ b/ansible/host_vars/libvirt-fedora-25/main.yml @@ -1,3 +1,4 @@ --- projects: - base + - libosinfo diff --git a/ansible/host_vars/libvirt-fedora-26/main.yml b/ansible/host_vars/libvirt-fedora-26/main.yml index 1602406..a40cb4c 100644 --- a/ansible/host_vars/libvirt-fedora-26/main.yml +++ b/ansible/host_vars/libvirt-fedora-26/main.yml @@ -1,3 +1,4 @@ --- projects: - base + - libosinfo diff --git a/ansible/host_vars/libvirt-fedora-rawhide/main.yml b/ansible/host_vars/libvirt-fedora-rawhide/main.yml index 1602406..a40cb4c 100644 --- a/ansible/host_vars/libvirt-fedora-rawhide/main.yml +++ b/ansible/host_vars/libvirt-fedora-rawhide/main.yml @@ -1,3 +1,4 @@ --- projects: - base + - libosinfo diff --git a/ansible/host_vars/libvirt-freebsd-11/main.yml b/ansible/host_vars/libvirt-freebsd-11/main.yml index d405d58..81e362d 100644 --- a/ansible/host_vars/libvirt-freebsd-11/main.yml +++ b/ansible/host_vars/libvirt-freebsd-11/main.yml @@ -8,3 +8,4 @@ sudo: /usr/local/bin/sudo projects: - base + - libosinfo diff --git a/ansible/host_vars/libvirt-ubuntu-14/main.yml b/ansible/host_vars/libvirt-ubuntu-14/main.yml index 1602406..a40cb4c 100644 --- a/ansible/host_vars/libvirt-ubuntu-14/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-14/main.yml @@ -1,3 +1,4 @@ --- projects: - base + - libosinfo diff --git a/ansible/host_vars/libvirt-ubuntu-16/main.yml b/ansible/host_vars/libvirt-ubuntu-16/main.yml index 1602406..a40cb4c 100644 --- a/ansible/host_vars/libvirt-ubuntu-16/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-16/main.yml @@ -1,3 +1,4 @@ --- projects: - base + - libosinfo diff --git a/ansible/tasks/build.yml b/ansible/tasks/build.yml index edb0064..2210261 100644 --- a/ansible/tasks/build.yml +++ b/ansible/tasks/build.yml @@ -12,3 +12,43 @@ command: git clean -xdf args: chdir: '{{ project }}' + +# C build + +- name: '{{ project }}: Prepare configure options' + set_fact: + configure_options: [] + +- name: '{{ project }}: Prepare configure options' + set_fact: + configure_options: '{{ configure_options }} + [ "{{ features[item] }}" ]' + with_items: + '{{ features }}' + when: + - features is defined + +- name: '{{ project }}: Prepare configure options' + set_fact: + configure_options: '{{ configure_options | join(" ") }}' + +- name: '{{ project }}: Run autogen.sh' + command: './autogen.sh {{ configure_options }}' + args: + chdir: '{{ project }}' + environment: + when: + - project == 'libosinfo' + +- name: '{{ project }}: Build project' + command: '{{ make }} -j{{ smp }}' + args: + chdir: '{{ project }}' + when: + - project == 'libosinfo' + +- name: '{{ project }}: Run sanity checks' + command: '{{ make }} -j{{ smp }} syntax-check' + args: + chdir: '{{ project }}' + when: + - project == 'libosinfo' diff --git a/ansible/vars/libosinfo/CentOS-7.yml b/ansible/vars/libosinfo/CentOS-7.yml new file mode 100644 index 0000000..c833b54 --- /dev/null +++ b/ansible/vars/libosinfo/CentOS-7.yml @@ -0,0 +1,19 @@ +--- +packages: + - check-devel + - glib2-devel + - gnome-common + - gobject-introspection-devel + - gtk-doc + - hwdata + - intltool + - libsoup-devel + - libxml2 + - libxml2-devel + - libxslt-devel + - vala + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala diff --git a/ansible/vars/libosinfo/Debian-8.yml b/ansible/vars/libosinfo/Debian-8.yml new file mode 100644 index 0000000..f2d7ac1 --- /dev/null +++ b/ansible/vars/libosinfo/Debian-8.yml @@ -0,0 +1,19 @@ +--- +packages: + - check + - gnome-common + - gtk-doc-tools + - hwdata + - intltool + - libgirepository1.0-dev + - libglib2.0-dev + - libsoup2.4-dev + - libxml2-dev + - libxml2-utils + - libxslt1-dev + - valac + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala diff --git a/ansible/vars/libosinfo/Debian-9.yml b/ansible/vars/libosinfo/Debian-9.yml new file mode 100644 index 0000000..f2d7ac1 --- /dev/null +++ b/ansible/vars/libosinfo/Debian-9.yml @@ -0,0 +1,19 @@ +--- +packages: + - check + - gnome-common + - gtk-doc-tools + - hwdata + - intltool + - libgirepository1.0-dev + - libglib2.0-dev + - libsoup2.4-dev + - libxml2-dev + - libxml2-utils + - libxslt1-dev + - valac + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala diff --git a/ansible/vars/libosinfo/Fedora-25.yml b/ansible/vars/libosinfo/Fedora-25.yml new file mode 100644 index 0000000..c833b54 --- /dev/null +++ b/ansible/vars/libosinfo/Fedora-25.yml @@ -0,0 +1,19 @@ +--- +packages: + - check-devel + - glib2-devel + - gnome-common + - gobject-introspection-devel + - gtk-doc + - hwdata + - intltool + - libsoup-devel + - libxml2 + - libxml2-devel + - libxslt-devel + - vala + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala diff --git a/ansible/vars/libosinfo/Fedora-26.yml b/ansible/vars/libosinfo/Fedora-26.yml new file mode 100644 index 0000000..c833b54 --- /dev/null +++ b/ansible/vars/libosinfo/Fedora-26.yml @@ -0,0 +1,19 @@ +--- +packages: + - check-devel + - glib2-devel + - gnome-common + - gobject-introspection-devel + - gtk-doc + - hwdata + - intltool + - libsoup-devel + - libxml2 + - libxml2-devel + - libxslt-devel + - vala + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala diff --git a/ansible/vars/libosinfo/Fedora-Rawhide.yml b/ansible/vars/libosinfo/Fedora-Rawhide.yml new file mode 100644 index 0000000..c833b54 --- /dev/null +++ b/ansible/vars/libosinfo/Fedora-Rawhide.yml @@ -0,0 +1,19 @@ +--- +packages: + - check-devel + - glib2-devel + - gnome-common + - gobject-introspection-devel + - gtk-doc + - hwdata + - intltool + - libsoup-devel + - libxml2 + - libxml2-devel + - libxslt-devel + - vala + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala diff --git a/ansible/vars/libosinfo/FreeBSD-11.yml b/ansible/vars/libosinfo/FreeBSD-11.yml new file mode 100644 index 0000000..27787cf --- /dev/null +++ b/ansible/vars/libosinfo/FreeBSD-11.yml @@ -0,0 +1,19 @@ +--- +packages: + - check + - glib + - gnome-common + - gobject-introspection + - gtk-doc + - intltool + - libsoup + - libxml2 + - libxslt + - pciids + - usbids + - vala + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala diff --git a/ansible/vars/libosinfo/Ubuntu-14.yml b/ansible/vars/libosinfo/Ubuntu-14.yml new file mode 100644 index 0000000..f2d7ac1 --- /dev/null +++ b/ansible/vars/libosinfo/Ubuntu-14.yml @@ -0,0 +1,19 @@ +--- +packages: + - check + - gnome-common + - gtk-doc-tools + - hwdata + - intltool + - libgirepository1.0-dev + - libglib2.0-dev + - libsoup2.4-dev + - libxml2-dev + - libxml2-utils + - libxslt1-dev + - valac + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala diff --git a/ansible/vars/libosinfo/Ubuntu-16.yml b/ansible/vars/libosinfo/Ubuntu-16.yml new file mode 100644 index 0000000..f2d7ac1 --- /dev/null +++ b/ansible/vars/libosinfo/Ubuntu-16.yml @@ -0,0 +1,19 @@ +--- +packages: + - check + - gnome-common + - gtk-doc-tools + - hwdata + - intltool + - libgirepository1.0-dev + - libglib2.0-dev + - libsoup2.4-dev + - libxml2-dev + - libxml2-utils + - libxslt1-dev + - valac + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala -- 2.13.6

On Mon, Oct 02, 2017 at 05:10:41PM +0200, Andrea Bolognani wrote:
Signed-off-by: Andrea Bolognani <abologna@redhat.com> --- 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 | 40 +++++++++++++++++++++++ ansible/vars/libosinfo/CentOS-7.yml | 19 +++++++++++ ansible/vars/libosinfo/Debian-8.yml | 19 +++++++++++ ansible/vars/libosinfo/Debian-9.yml | 19 +++++++++++ ansible/vars/libosinfo/Fedora-25.yml | 19 +++++++++++ ansible/vars/libosinfo/Fedora-26.yml | 19 +++++++++++ ansible/vars/libosinfo/Fedora-Rawhide.yml | 19 +++++++++++ ansible/vars/libosinfo/FreeBSD-11.yml | 19 +++++++++++ ansible/vars/libosinfo/Ubuntu-14.yml | 19 +++++++++++ ansible/vars/libosinfo/Ubuntu-16.yml | 19 +++++++++++ 19 files changed, 220 insertions(+) create mode 100644 ansible/vars/libosinfo/CentOS-7.yml create mode 100644 ansible/vars/libosinfo/Debian-8.yml create mode 100644 ansible/vars/libosinfo/Debian-9.yml create mode 100644 ansible/vars/libosinfo/Fedora-25.yml create mode 100644 ansible/vars/libosinfo/Fedora-26.yml create mode 100644 ansible/vars/libosinfo/Fedora-Rawhide.yml create mode 100644 ansible/vars/libosinfo/FreeBSD-11.yml create mode 100644 ansible/vars/libosinfo/Ubuntu-14.yml create mode 100644 ansible/vars/libosinfo/Ubuntu-16.yml
diff --git a/ansible/tasks/build.yml b/ansible/tasks/build.yml index edb0064..2210261 100644 --- a/ansible/tasks/build.yml +++ b/ansible/tasks/build.yml @@ -12,3 +12,43 @@ command: git clean -xdf args: chdir: '{{ project }}' + +# C build + +- name: '{{ project }}: Prepare configure options' + set_fact: + configure_options: [] + +- name: '{{ project }}: Prepare configure options' + set_fact: + configure_options: '{{ configure_options }} + [ "{{ features[item] }}" ]' + with_items: + '{{ features }}' + when: + - features is defined + +- name: '{{ project }}: Prepare configure options' + set_fact: + configure_options: '{{ configure_options | join(" ") }}' + +- name: '{{ project }}: Run autogen.sh' + command: './autogen.sh {{ configure_options }}' + args: + chdir: '{{ project }}' + environment: + when: + - project == 'libosinfo' + +- name: '{{ project }}: Build project' + command: '{{ make }} -j{{ smp }}' + args: + chdir: '{{ project }}' + when: + - project == 'libosinfo' + +- name: '{{ project }}: Run sanity checks' + command: '{{ make }} -j{{ smp }} syntax-check' + args: + chdir: '{{ project }}' + when: + - project == 'libosinfo'
This looks like its duplicating the rules we already have defined in the jobs/ files for Jenkins. Why do we need this ? Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|

On Mon, 2017-10-02 at 17:04 +0100, Daniel P. Berrange wrote:
+- name: '{{ project }}: Run sanity checks' + command: '{{ make }} -j{{ smp }} syntax-check' + args: + chdir: '{{ project }}' + when: + - project == 'libosinfo'
This looks like its duplicating the rules we already have defined in the jobs/ files for Jenkins. Why do we need this ?
It's explained in the commit message for patch 2: Building projects is entirely controlled by Jenkins in a production environment, but it can be useful to trigger builds via Ansible during development to figure out build dependencies and for sanity checking purposes. I'm not adamant on keeping this around, as it was mainly a tool for me to use during development, but I figure it might come in handy later on when some project picks up new (optional) build dependencies or we need to add a new project, and I'd rather not have to reinvent the wheel when that happens. Note that none of those tasks is executed unless you manually set the 'build' variable to true, so they will not interfere in any way with regular CI usage. -- Andrea Bolognani / Red Hat / Virtualization

On Tue, Oct 03, 2017 at 09:07:15AM +0200, Andrea Bolognani wrote:
On Mon, 2017-10-02 at 17:04 +0100, Daniel P. Berrange wrote:
+- name: '{{ project }}: Run sanity checks' + command: '{{ make }} -j{{ smp }} syntax-check' + args: + chdir: '{{ project }}' + when: + - project == 'libosinfo'
This looks like its duplicating the rules we already have defined in the jobs/ files for Jenkins. Why do we need this ?
It's explained in the commit message for patch 2:
Building projects is entirely controlled by Jenkins in a production environment, but it can be useful to trigger builds via Ansible during development to figure out build dependencies and for sanity checking purposes.
I'm not adamant on keeping this around, as it was mainly a tool for me to use during development, but I figure it might come in handy later on when some project picks up new (optional) build dependencies or we need to add a new project, and I'd rather not have to reinvent the wheel when that happens.
Note that none of those tasks is executed unless you manually set the 'build' variable to true, so they will not interfere in any way with regular CI usage.
The rules we have defined in the jobs & projects files are in nice parsable format. Could we have something that just reads that data and then generates these ansible rules for building outside jenkins Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|

On Tue, 2017-10-03 at 09:59 +0100, Daniel P. Berrange wrote:
I'm not adamant on keeping this around, as it was mainly a tool for me to use during development, but I figure it might come in handy later on when some project picks up new (optional) build dependencies or we need to add a new project, and I'd rather not have to reinvent the wheel when that happens.
Note that none of those tasks is executed unless you manually set the 'build' variable to true, so they will not interfere in any way with regular CI usage.
The rules we have defined in the jobs & projects files are in nice parsable format. Could we have something that just reads that data and then generates these ansible rules for building outside jenkins
Well, I feel like I've spent enough time on this already, at least for the time being, so if that's your condition for keeping the building rules around then I'll happily drop them :) -- Andrea Bolognani / Red Hat / Virtualization

Signed-off-by: Andrea Bolognani <abologna@redhat.com> --- 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-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/build.yml | 27 +++- ansible/tasks/compat.yml | 16 +++ ansible/vars/libvirt/CentOS-6.yml | 119 +++++++++++++++++ ansible/vars/libvirt/CentOS-7.yml | 121 ++++++++++++++++++ ansible/vars/libvirt/Debian-8.yml | 124 ++++++++++++++++++ ansible/vars/libvirt/Debian-9.yml | 126 ++++++++++++++++++ ansible/vars/libvirt/Fedora-25.yml | 125 ++++++++++++++++++ ansible/vars/libvirt/Fedora-26.yml | 124 ++++++++++++++++++ ansible/vars/libvirt/Fedora-Rawhide.yml | 148 ++++++++++++++++++++++ ansible/vars/libvirt/FreeBSD-11.yml | 98 ++++++++++++++ ansible/vars/libvirt/Ubuntu-12.yml | 122 ++++++++++++++++++ ansible/vars/libvirt/Ubuntu-14.yml | 125 ++++++++++++++++++ ansible/vars/libvirt/Ubuntu-16.yml | 128 +++++++++++++++++++ 25 files changed, 1412 insertions(+), 3 deletions(-) create mode 100644 ansible/tasks/compat.yml create mode 100644 ansible/vars/libvirt/CentOS-6.yml create mode 100644 ansible/vars/libvirt/CentOS-7.yml create mode 100644 ansible/vars/libvirt/Debian-8.yml create mode 100644 ansible/vars/libvirt/Debian-9.yml create mode 100644 ansible/vars/libvirt/Fedora-25.yml create mode 100644 ansible/vars/libvirt/Fedora-26.yml create mode 100644 ansible/vars/libvirt/Fedora-Rawhide.yml create mode 100644 ansible/vars/libvirt/FreeBSD-11.yml create mode 100644 ansible/vars/libvirt/Ubuntu-12.yml create mode 100644 ansible/vars/libvirt/Ubuntu-14.yml create mode 100644 ansible/vars/libvirt/Ubuntu-16.yml diff --git a/ansible/host_vars/libvirt-centos-6/main.yml b/ansible/host_vars/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_vars/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_vars/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_vars/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_vars/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_vars/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/host_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-11/main.yml b/ansible/host_vars/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_vars/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_vars/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_vars/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 4603a59..b6caea0 100644 --- a/ansible/site.yml +++ b/ansible/site.yml @@ -6,6 +6,7 @@ # Prepare the base environment - include: tasks/facts.yml - include: tasks/base.yml + - include: tasks/compat.yml # Install build dependencies for each project - include: tasks/packages.yml diff --git a/ansible/tasks/build.yml b/ansible/tasks/build.yml index 2210261..be9ecd3 100644 --- a/ansible/tasks/build.yml +++ b/ansible/tasks/build.yml @@ -37,18 +37,39 @@ chdir: '{{ project }}' environment: when: - - project == 'libosinfo' + - ( project == 'libosinfo' or + project == 'libvirt' ) - name: '{{ project }}: Build project' command: '{{ make }} -j{{ smp }}' args: chdir: '{{ project }}' when: - - project == 'libosinfo' + - ( project == 'libosinfo' or + project == 'libvirt' ) - name: '{{ project }}: Run sanity checks' command: '{{ make }} -j{{ smp }} syntax-check' args: chdir: '{{ project }}' when: - - project == 'libosinfo' + - ( project == 'libosinfo' or + ( project == 'libvirt' and + os_name != 'FreeBSD' ) ) + +- name: '{{ project }}: Run test suite' + command: '{{ make }} -j{{ smp }} check' + args: + chdir: '{{ project }}' + when: + - ( ( project == 'libvirt' and + os_name != 'FreeBSD' ) ) + +- name: '{{ project }}: Build RPM package' + command: '{{ make }} -j{{ smp }} rpm' + args: + chdir: '{{ project }}' + when: + - ( os_name == 'CentOS' or + os_name == 'Fedora' ) + - ( project == 'libvirt' ) diff --git a/ansible/tasks/compat.yml b/ansible/tasks/compat.yml new file mode 100644 index 0000000..1590e9c --- /dev/null +++ b/ansible/tasks/compat.yml @@ -0,0 +1,16 @@ +--- +- name: Create compatibility symlinks + file: + src: '/usr/local/{{ item }}' + dest: '/usr/{{ item }}' + state: link + force: yes + with_items: + - include/readline + - include/sasl + - include/yajl + - lib/libreadline.so + - lib/libsasl2.so + - lib/libyajl.so + when: + - os_name == 'FreeBSD' diff --git a/ansible/vars/libvirt/CentOS-6.yml b/ansible/vars/libvirt/CentOS-6.yml new file mode 100644 index 0000000..eb74b55 --- /dev/null +++ b/ansible/vars/libvirt/CentOS-6.yml @@ -0,0 +1,119 @@ +--- +packages: + - audit-libs-devel + - augeas + - avahi-devel + - cyrus-sasl-devel + - dbus-devel + - device-mapper-devel + - dnsmasq + - ebtables + - glusterfs-api-devel + - gnutls-devel + - iscsi-initiator-utils + - libacl-devel + - libattr-devel + - libblkid-devel + - libcap-ng-devel + - libcurl-devel + - libnl-devel + - libnl3-devel + - libpcap-devel + - libpciaccess-devel + - libselinux-devel + - libssh2-devel + - libudev-devel + - libwsman-devel + - libxml2-devel + - libxslt + - lvm2 + - netcf-devel + - nfs-utils + - numactl-devel + - numad + - openssl-devel + - parted + - parted-devel + - polkit-devel + - qemu-img + - radvd + - readline-devel + - sanlock-devel + - scrub + - systemtap-sdt-devel + - yajl-devel + +features: + with_apparmor: --without-apparmor # not available + with_attr: --with-attr + with_audit: --with-audit + with_avahi: --with-avahi + with_bhyve: --without-bhyve # not available + with_blkid: --with-blkid + with_capng: --with-capng + with_curl: --with-curl + with_dbus: --with-dbus + with_driver_modules: --with-driver-modules + with_dtrace: --with-dtrace + with_esx: --with-esx + with_firewalld: --with-firewalld + with_fuse: --without-fuse # too old + with_glusterfs: --with-glusterfs + with_gnutls: --with-gnutls + with_hal: --without-hal # not available + with_host_validate: --with-host-validate + with_hyperv: --with-hyperv + with_interface: --with-interface + with_libpcap: --with-libpcap + with_libssh: --without-libssh # not available + with_libvirtd: --with-libvirtd + with_libxl: --without-libxl # not available + with_libxml: --with-libxml + with_login_shell: --with-login-shell + with_lxc: --with-lxc + with_macvtap: --with-macvtap + with_netcf: --with-netcf + with_network: --with-network + with_nss_plugin: --with-nss-plugin + with_numactl: --with-numactl + with_numad: --with-numad + with_openssl: --with-openssl + with_openvz: --with-openvz + with_openwsman: --with-openwsman + with_pciaccess: --with-pciaccess + with_phyp: --with-phyp + with_pm_utils: --with-pm-utils + with_polkit: --with-polkit + with_qemu: --with-qemu + with_readline: --with-readline + with_remote: --with-remote + with_sanlock: --with-sanlock + with_sasl: --with-sasl + with_secrets: --with-secrets + with_selinux: --with-selinux + with_ssh2: --with-ssh2 + with_storage_dir: --with-storage-dir + with_storage_disk: --with-storage-disk + with_storage_fs: --with-storage-fs + with_storage_gluster: --with-storage-gluster + with_storage_iscsi: --with-storage-iscsi + with_storage_lvm: --with-storage-lvm + with_storage_mpath: --with-storage-mpath + with_storage_rbd: --without-storage-rbd # not available + with_storage_scsi: --with-storage-scsi + with_storage_sheepdog: --without-storage-sheepdog # not available + with_storage_vstorage: --without-storage-vstorage # not available + with_storage_zfs: --without-storage-zfs # not available + with_test_suite: --with-test-suite + with_test: --with-test + with_udev: --with-udev + with_uml: --with-uml + with_vbox: --with-vbox + with_virtualport: --with-virtualport + with_vmware: --with-vmware + with_vz: --without-vz # not available + with_wireshark_dissector: --without-wireshark-dissector # too old + with_xenapi: --without-xenapi # not available + with_xen_inotify: --without-xen-inotify # not available + with_xen: --without-xen # not available + with_yajl: --with-yajl diff --git a/ansible/vars/libvirt/CentOS-7.yml b/ansible/vars/libvirt/CentOS-7.yml new file mode 100644 index 0000000..e0b89f7 --- /dev/null +++ b/ansible/vars/libvirt/CentOS-7.yml @@ -0,0 +1,121 @@ +--- +packages: + - audit-libs-devel + - augeas + - avahi-devel + - cyrus-sasl-devel + - dbus-devel + - device-mapper-devel + - dnsmasq + - ebtables + - fuse-devel + - glusterfs-api-devel + - gnutls-devel + - iscsi-initiator-utils + - libacl-devel + - libattr-devel + - libblkid-devel + - libcap-ng-devel + - libcurl-devel + - libnl3-devel + - libpcap-devel + - libpciaccess-devel + - librbd1-devel + - libselinux-devel + - libssh-devel + - libssh2-devel + - libudev-devel + - libwsman-devel + - libxml2-devel + - libxslt + - lvm2 + - netcf-devel + - nfs-utils + - numactl-devel + - numad + - openssl-devel + - parted + - parted-devel + - polkit-devel + - qemu-img + - radvd + - readline-devel + - sanlock-devel + - scrub + - systemtap-sdt-devel + - yajl-devel + +features: + with_apparmor: --without-apparmor # not available + with_attr: --with-attr + with_audit: --with-audit + with_avahi: --with-avahi + with_bhyve: --without-bhyve # not available + with_blkid: --with-blkid + with_capng: --with-capng + with_curl: --with-curl + with_dbus: --with-dbus + with_driver_modules: --with-driver-modules + with_dtrace: --with-dtrace + with_esx: --with-esx + with_firewalld: --with-firewalld + with_fuse: --with-fuse + with_glusterfs: --with-glusterfs + with_gnutls: --with-gnutls + with_hal: --without-hal # not available + with_host_validate: --with-host-validate + with_hyperv: --with-hyperv + with_interface: --with-interface + with_libpcap: --with-libpcap + with_libssh: --with-libssh + with_libvirtd: --with-libvirtd + with_libxl: --without-libxl # not available + with_libxml: --with-libxml + with_login_shell: --with-login-shell + with_lxc: --with-lxc + with_macvtap: --with-macvtap + with_netcf: --with-netcf + with_network: --with-network + with_nss_plugin: --with-nss-plugin + with_numactl: --with-numactl + with_numad: --with-numad + with_openssl: --with-openssl + with_openvz: --with-openvz + with_openwsman: --with-openwsman + with_pciaccess: --with-pciaccess + with_phyp: --with-phyp + with_pm_utils: --with-pm-utils + with_polkit: --with-polkit + with_qemu: --with-qemu + with_readline: --with-readline + with_remote: --with-remote + with_sanlock: --with-sanlock + with_sasl: --with-sasl + with_secrets: --with-secrets + with_selinux: --with-selinux + with_ssh2: --with-ssh2 + with_storage_dir: --with-storage-dir + with_storage_disk: --with-storage-disk + with_storage_fs: --with-storage-fs + with_storage_gluster: --with-storage-gluster + with_storage_iscsi: --with-storage-iscsi + with_storage_lvm: --with-storage-lvm + with_storage_mpath: --with-storage-mpath + with_storage_rbd: --with-storage-rbd + with_storage_scsi: --with-storage-scsi + with_storage_sheepdog: --without-storage-sheepdog # not available + with_storage_vstorage: --without-storage-vstorage # not available + with_storage_zfs: --without-storage-zfs # not available + with_test_suite: --with-test-suite + with_test: --with-test + with_udev: --with-udev + with_uml: --with-uml + with_vbox: --with-vbox + with_virtualport: --with-virtualport + with_vmware: --with-vmware + with_vz: --without-vz # not available + with_wireshark_dissector: --without-wireshark-dissector # too old + with_xenapi: --without-xenapi # not available + with_xen_inotify: --without-xen-inotify # not available + with_xen: --without-xen # not available + with_yajl: --with-yajl diff --git a/ansible/vars/libvirt/Debian-8.yml b/ansible/vars/libvirt/Debian-8.yml new file mode 100644 index 0000000..fd3d7a1 --- /dev/null +++ b/ansible/vars/libvirt/Debian-8.yml @@ -0,0 +1,124 @@ +--- +packages: + - augeas-tools + - dnsmasq-base + - ebtables + - glusterfs-client + - libacl1-dev + - libapparmor-dev + - libattr1-dev + - libaudit-dev + - libavahi-client-dev + - libblkid-dev + - libcap-ng-dev + - libcurl4-gnutls-dev + - libdbus-1-dev + - libdevmapper-dev + - libfuse-dev + - libgnutls28-dev + - libnetcf-dev + - libnl-3-dev + - libnl-route-3-dev + - libnuma-dev + - libparted-dev + - libpcap-dev + - libpciaccess-dev + - librbd-dev + - libreadline-dev + - libsanlock-dev + - libsasl2-dev + - libselinux1-dev + - libssh2-1-dev + - libssl-dev + - libudev-dev + - libxen-dev + - libxml2-dev + - libxml2-utils + - libyajl-dev + - lvm2 + - nfs-common + - open-iscsi + - parted + - policykit-1 + - qemu-utils + - radvd + - scrub + - sheepdog + - systemtap-sdt-dev + - xsltproc + - zfs-fuse + +features: + with_apparmor: --with-apparmor + with_attr: --with-attr + with_audit: --with-audit + with_avahi: --with-avahi + with_bhyve: --without-bhyve # not available + with_blkid: --with-blkid + with_capng: --with-capng + with_curl: --with-curl + with_dbus: --with-dbus + with_driver_modules: --with-driver-modules + with_dtrace: --with-dtrace + with_esx: --with-esx + with_firewalld: --with-firewalld + with_fuse: --with-fuse + with_glusterfs: --with-glusterfs + with_gnutls: --with-gnutls + with_hal: --without-hal # not available + with_host_validate: --with-host-validate + with_hyperv: --without-hyperv # openwsman not available + with_interface: --with-interface + with_libpcap: --with-libpcap + with_libssh: --without-libssh # too old + with_libvirtd: --with-libvirtd + with_libxl: --with-libxl + with_libxml: --with-libxml + with_login_shell: --with-login-shell + with_lxc: --with-lxc + with_macvtap: --with-macvtap + with_netcf: --with-netcf + with_network: --with-network + with_nss_plugin: --with-nss-plugin + with_numactl: --with-numactl + with_numad: --without-numad # not available + with_openssl: --with-openssl + with_openvz: --with-openvz + with_openwsman: --without-openwsman # not available + with_pciaccess: --with-pciaccess + with_phyp: --with-phyp + with_pm_utils: --with-pm-utils + with_polkit: --with-polkit + with_qemu: --with-qemu + with_readline: --with-readline + with_remote: --with-remote + with_sanlock: --with-sanlock + with_sasl: --with-sasl + with_secrets: --with-secrets + with_selinux: --with-selinux + with_ssh2: --with-ssh2 + with_storage_dir: --with-storage-dir + with_storage_disk: --with-storage-disk + with_storage_fs: --with-storage-fs + with_storage_gluster: --with-storage-gluster + with_storage_iscsi: --with-storage-iscsi + with_storage_lvm: --with-storage-lvm + with_storage_mpath: --with-storage-mpath + with_storage_rbd: --with-storage-rbd + with_storage_scsi: --with-storage-scsi + with_storage_sheepdog: --with-storage-sheepdog + with_storage_vstorage: --without-storage-vstorage # not available + with_storage_zfs: --with-storage-zfs + with_test_suite: --with-test-suite + with_test: --with-test + with_udev: --with-udev + with_uml: --with-uml + with_vbox: --with-vbox + with_virtualport: --with-virtualport + with_vmware: --with-vmware + with_vz: --without-vz # not available + with_wireshark_dissector: --without-wireshark-dissector # broken + with_xenapi: --without-xenapi # not available + with_xen_inotify: --with-xen-inotify + with_xen: --with-xen + with_yajl: --with-yajl diff --git a/ansible/vars/libvirt/Debian-9.yml b/ansible/vars/libvirt/Debian-9.yml new file mode 100644 index 0000000..4b6fa56 --- /dev/null +++ b/ansible/vars/libvirt/Debian-9.yml @@ -0,0 +1,126 @@ +--- +packages: + - augeas-tools + - dnsmasq-base + - ebtables + - glusterfs-client + - libacl1-dev + - libapparmor-dev + - libattr1-dev + - libaudit-dev + - libavahi-client-dev + - libblkid-dev + - libcap-ng-dev + - libcurl4-gnutls-dev + - libdbus-1-dev + - libdevmapper-dev + - libfuse-dev + - libgnutls28-dev + - libnetcf-dev + - libnl-3-dev + - libnl-route-3-dev + - libnuma-dev + - libparted-dev + - libpcap-dev + - libpciaccess-dev + - librbd-dev + - libreadline-dev + - libsanlock-dev + - libsasl2-dev + - libselinux1-dev + - libssh-gcrypt-dev + - libssh2-1-dev + - libudev-dev + - libxen-dev + - libxml2-dev + - libxml2-utils + - libyajl-dev + - lvm2 + - nfs-common + - numad + - open-iscsi + - parted + - policykit-1 + - qemu-utils + - radvd + - scrub + - sheepdog + - systemtap-sdt-dev + - wireshark-dev + - xsltproc + - zfs-fuse + +features: + with_apparmor: --with-apparmor + with_attr: --with-attr + with_audit: --with-audit + with_avahi: --with-avahi + with_bhyve: --without-bhyve # not available + with_blkid: --with-blkid + with_capng: --with-capng + with_curl: --with-curl + with_dbus: --with-dbus + with_driver_modules: --with-driver-modules + with_dtrace: --with-dtrace + with_esx: --with-esx + with_firewalld: --with-firewalld + with_fuse: --with-fuse + with_glusterfs: --with-glusterfs + with_gnutls: --with-gnutls + with_hal: --without-hal # not available + with_host_validate: --with-host-validate + with_hyperv: --without-hyperv # openwsman not available + with_interface: --with-interface + with_libpcap: --with-libpcap + with_libssh: --with-libssh + with_libvirtd: --with-libvirtd + with_libxl: --with-libxl + with_libxml: --with-libxml + with_login_shell: --with-login-shell + with_lxc: --with-lxc + with_macvtap: --with-macvtap + with_netcf: --with-netcf + with_network: --with-network + with_nss_plugin: --with-nss-plugin + with_numactl: --with-numactl + with_numad: --with-numad + with_openssl: --without-openssl # conflicts with libssl-dev + with_openvz: --with-openvz + with_openwsman: --without-openwsman # not available + with_pciaccess: --with-pciaccess + with_phyp: --with-phyp + with_pm_utils: --with-pm-utils + with_polkit: --with-polkit + with_qemu: --with-qemu + with_readline: --with-readline + with_remote: --with-remote + with_sanlock: --with-sanlock + with_sasl: --with-sasl + with_secrets: --with-secrets + with_selinux: --with-selinux + with_ssh2: --with-ssh2 + with_storage_dir: --with-storage-dir + with_storage_disk: --with-storage-disk + with_storage_fs: --with-storage-fs + with_storage_gluster: --with-storage-gluster + with_storage_iscsi: --with-storage-iscsi + with_storage_lvm: --with-storage-lvm + with_storage_mpath: --with-storage-mpath + with_storage_rbd: --with-storage-rbd + with_storage_scsi: --with-storage-scsi + with_storage_sheepdog: --with-storage-sheepdog + with_storage_vstorage: --without-storage-vstorage # not available + with_storage_zfs: --with-storage-zfs + with_test_suite: --with-test-suite + with_test: --with-test + with_udev: --with-udev + with_uml: --with-uml + with_vbox: --with-vbox + with_virtualport: --with-virtualport + with_vmware: --with-vmware + with_vz: --without-vz # not available + with_wireshark_dissector: --with-wireshark-dissector + with_xenapi: --without-xenapi # not available + with_xen_inotify: --with-xen-inotify + with_xen: --with-xen + with_yajl: --with-yajl diff --git a/ansible/vars/libvirt/Fedora-25.yml b/ansible/vars/libvirt/Fedora-25.yml new file mode 100644 index 0000000..5dedf2d --- /dev/null +++ b/ansible/vars/libvirt/Fedora-25.yml @@ -0,0 +1,125 @@ +--- +packages: + - audit-libs-devel + - augeas + - avahi-devel + - cyrus-sasl-devel + - dbus-devel + - device-mapper-devel + - dnsmasq + - ebtables + - fuse-devel + - glusterfs-api-devel + - gnutls-devel + - iscsi-initiator-utils + - libacl-devel + - libattr-devel + - libblkid-devel + - libcap-ng-devel + - libcurl-devel + - libnl3-devel + - libpcap-devel + - libpciaccess-devel + - librbd-devel + - libselinux-devel + - libssh-devel + - libssh2-devel + - libudev-devel + - libwsman-devel + - libxml2-devel + - libxslt + - lvm2 + - netcf-devel + - nfs-utils + - numactl-devel + - numad + - openssl-devel + - parted + - parted-devel + - polkit-devel + - qemu-img + - radvd + - readline-devel + - sanlock-devel + - scrub + - sheepdog + - systemtap-sdt-devel + - wireshark-devel + - xen-devel + - yajl-devel + - zfs-fuse + +features: + with_apparmor: --without-apparmor # not available + with_attr: --with-attr + with_audit: --with-audit + with_avahi: --with-avahi + with_bhyve: --without-bhyve # not available + with_blkid: --with-blkid + with_capng: --with-capng + with_curl: --with-curl + with_dbus: --with-dbus + with_driver_modules: --with-driver-modules + with_dtrace: --with-dtrace + with_esx: --with-esx + with_firewalld: --with-firewalld + with_fuse: --with-fuse + with_glusterfs: --with-glusterfs + with_gnutls: --with-gnutls + with_hal: --without-hal # not available + with_host_validate: --with-host-validate + with_hyperv: --with-hyperv + with_interface: --with-interface + with_libpcap: --with-libpcap + with_libssh: --with-libssh + with_libvirtd: --with-libvirtd + with_libxl: --with-libxl + with_libxml: --with-libxml + with_login_shell: --with-login-shell + with_lxc: --with-lxc + with_macvtap: --with-macvtap + with_netcf: --with-netcf + with_network: --with-network + with_nss_plugin: --with-nss-plugin + with_numactl: --with-numactl + with_numad: --with-numad + with_openssl: --with-openssl + with_openvz: --with-openvz + with_openwsman: --with-openwsman + with_pciaccess: --with-pciaccess + with_phyp: --with-phyp + with_pm_utils: --with-pm-utils + with_polkit: --with-polkit + with_qemu: --with-qemu + with_readline: --with-readline + with_remote: --with-remote + with_sanlock: --with-sanlock + with_sasl: --with-sasl + with_secrets: --with-secrets + with_selinux: --with-selinux + with_ssh2: --with-ssh2 + with_storage_dir: --with-storage-dir + with_storage_disk: --with-storage-disk + with_storage_fs: --with-storage-fs + with_storage_gluster: --with-storage-gluster + with_storage_iscsi: --with-storage-iscsi + with_storage_lvm: --with-storage-lvm + with_storage_mpath: --with-storage-mpath + with_storage_rbd: --with-storage-rbd + with_storage_scsi: --with-storage-scsi + with_storage_sheepdog: --with-storage-sheepdog + with_storage_vstorage: --without-storage-vstorage # not available + with_storage_zfs: --with-storage-zfs + with_test_suite: --with-test-suite + with_test: --with-test + with_udev: --with-udev + with_uml: --with-uml + with_vbox: --with-vbox + with_virtualport: --with-virtualport + with_vmware: --with-vmware + with_vz: --without-vz # not available + with_wireshark_dissector: --with-wireshark-dissector + with_xenapi: --without-xenapi # not available + with_xen_inotify: --with-xen-inotify + with_xen: --with-xen + with_yajl: --with-yajl diff --git a/ansible/vars/libvirt/Fedora-26.yml b/ansible/vars/libvirt/Fedora-26.yml new file mode 100644 index 0000000..e627811 --- /dev/null +++ b/ansible/vars/libvirt/Fedora-26.yml @@ -0,0 +1,124 @@ +--- +packages: + - audit-libs-devel + - augeas + - avahi-devel + - cyrus-sasl-devel + - dbus-devel + - device-mapper-devel + - dnsmasq + - ebtables + - fuse-devel + - glusterfs-api-devel + - gnutls-devel + - iscsi-initiator-utils + - libacl-devel + - libattr-devel + - libblkid-devel + - libcap-ng-devel + - libcurl-devel + - libnl3-devel + - libpcap-devel + - libpciaccess-devel + - librbd-devel + - libselinux-devel + - libssh-devel + - libssh2-devel + - libudev-devel + - libwsman-devel + - libxml2-devel + - libxslt + - lvm2 + - netcf-devel + - nfs-utils + - numactl-devel + - numad + - parted + - parted-devel + - polkit-devel + - qemu-img + - radvd + - readline-devel + - sanlock-devel + - scrub + - sheepdog + - systemtap-sdt-devel + - wireshark-devel + - xen-devel + - yajl-devel + - zfs-fuse + +features: + with_apparmor: --without-apparmor # not available + with_attr: --with-attr + with_audit: --with-audit + with_avahi: --with-avahi + with_bhyve: --without-bhyve # not available + with_blkid: --with-blkid + with_capng: --with-capng + with_curl: --with-curl + with_dbus: --with-dbus + with_driver_modules: --with-driver-modules + with_dtrace: --with-dtrace + with_esx: --with-esx + with_firewalld: --with-firewalld + with_fuse: --with-fuse + with_glusterfs: --with-glusterfs + with_gnutls: --with-gnutls + with_hal: --without-hal # not available + with_host_validate: --with-host-validate + with_hyperv: --with-hyperv + with_interface: --with-interface + with_libpcap: --with-libpcap + with_libssh: --with-libssh + with_libvirtd: --with-libvirtd + with_libxl: --with-libxl + with_libxml: --with-libxml + with_login_shell: --with-login-shell + with_lxc: --with-lxc + with_macvtap: --with-macvtap + with_netcf: --with-netcf + with_network: --with-network + with_nss_plugin: --with-nss-plugin + with_numactl: --with-numactl + with_numad: --with-numad + with_openssl: --without-openssl # causes linking issues + with_openvz: --with-openvz + with_openwsman: --with-openwsman + with_pciaccess: --with-pciaccess + with_phyp: --with-phyp + with_pm_utils: --with-pm-utils + with_polkit: --with-polkit + with_qemu: --with-qemu + with_readline: --with-readline + with_remote: --with-remote + with_sanlock: --with-sanlock + with_sasl: --with-sasl + with_secrets: --with-secrets + with_selinux: --with-selinux + with_ssh2: --with-ssh2 + with_storage_dir: --with-storage-dir + with_storage_disk: --with-storage-disk + with_storage_fs: --with-storage-fs + with_storage_gluster: --with-storage-gluster + with_storage_iscsi: --with-storage-iscsi + with_storage_lvm: --with-storage-lvm + with_storage_mpath: --with-storage-mpath + with_storage_rbd: --with-storage-rbd + with_storage_scsi: --with-storage-scsi + with_storage_sheepdog: --with-storage-sheepdog + with_storage_vstorage: --without-storage-vstorage # not available + with_storage_zfs: --with-storage-zfs + with_test_suite: --with-test-suite + with_test: --with-test + with_udev: --with-udev + with_uml: --with-uml + with_vbox: --with-vbox + with_virtualport: --with-virtualport + with_vmware: --with-vmware + with_vz: --without-vz # not available + with_wireshark_dissector: --with-wireshark-dissector + with_xenapi: --without-xenapi # not available + with_xen_inotify: --with-xen-inotify + with_xen: --with-xen + with_yajl: --with-yajl diff --git a/ansible/vars/libvirt/Fedora-Rawhide.yml b/ansible/vars/libvirt/Fedora-Rawhide.yml new file mode 100644 index 0000000..cfd5f24 --- /dev/null +++ b/ansible/vars/libvirt/Fedora-Rawhide.yml @@ -0,0 +1,148 @@ +--- +packages: + - audit-libs-devel + - augeas + - avahi-devel + - cyrus-sasl-devel + - dbus-devel + - device-mapper-devel + - dnsmasq + - ebtables + - fuse-devel + - glusterfs-api-devel + - gnutls-devel + - iscsi-initiator-utils + - libacl-devel + - libattr-devel + - libblkid-devel + - libcap-ng-devel + - libcurl-devel + - libnl3-devel + - libpcap-devel + - libpciaccess-devel + - librbd-devel + - libselinux-devel + - libssh-devel + - libssh2-devel + - libudev-devel + - libwsman-devel + - libxml2-devel + - libxslt + - 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-devel + - nfs-utils + - numactl-devel + - numad + - parted + - parted-devel + - polkit-devel + - qemu-img + - radvd + - readline-devel + - sanlock-devel + - scrub + - sheepdog + - systemtap-sdt-devel + - wireshark-devel + - xen-devel + - yajl-devel + - zfs-fuse + +features: + with_apparmor: --without-apparmor # not available + with_attr: --with-attr + with_audit: --with-audit + with_avahi: --with-avahi + with_bhyve: --without-bhyve # not available + with_blkid: --with-blkid + with_capng: --with-capng + with_curl: --with-curl + with_dbus: --with-dbus + with_driver_modules: --with-driver-modules + with_dtrace: --with-dtrace + with_esx: --with-esx + with_firewalld: --with-firewalld + with_fuse: --with-fuse + with_glusterfs: --with-glusterfs + with_gnutls: --with-gnutls + with_hal: --without-hal # not available + with_host_validate: --with-host-validate + with_hyperv: --with-hyperv + with_interface: --with-interface + with_libpcap: --with-libpcap + with_libssh: --with-libssh + with_libvirtd: --with-libvirtd + with_libxl: --with-libxl + with_libxml: --with-libxml + with_login_shell: --with-login-shell + with_lxc: --with-lxc + with_macvtap: --with-macvtap + with_netcf: --with-netcf + with_network: --with-network + with_nss_plugin: --with-nss-plugin + with_numactl: --with-numactl + with_numad: --with-numad + with_openssl: --without-openssl # causes linking issues + with_openvz: --with-openvz + with_openwsman: --with-openwsman + with_pciaccess: --with-pciaccess + with_phyp: --with-phyp + with_pm_utils: --with-pm-utils + with_polkit: --with-polkit + with_qemu: --with-qemu + with_readline: --with-readline + with_remote: --with-remote + with_sanlock: --with-sanlock + with_sasl: --with-sasl + with_secrets: --with-secrets + with_selinux: --with-selinux + with_ssh2: --with-ssh2 + with_storage_dir: --with-storage-dir + with_storage_disk: --with-storage-disk + with_storage_fs: --with-storage-fs + with_storage_gluster: --with-storage-gluster + with_storage_iscsi: --with-storage-iscsi + with_storage_lvm: --with-storage-lvm + with_storage_mpath: --with-storage-mpath + with_storage_rbd: --with-storage-rbd + with_storage_scsi: --with-storage-scsi + with_storage_sheepdog: --with-storage-sheepdog + with_storage_vstorage: --without-storage-vstorage # not available + with_storage_zfs: --with-storage-zfs + with_test_suite: --with-test-suite + with_test: --with-test + with_udev: --with-udev + with_uml: --with-uml + with_vbox: --with-vbox + with_virtualport: --with-virtualport + with_vmware: --with-vmware + with_vz: --without-vz # not available + with_wireshark_dissector: --with-wireshark-dissector + with_xenapi: --without-xenapi # not available + with_xen_inotify: --with-xen-inotify + with_xen: --with-xen + with_yajl: --with-yajl diff --git a/ansible/vars/libvirt/FreeBSD-11.yml b/ansible/vars/libvirt/FreeBSD-11.yml new file mode 100644 index 0000000..3e523b8 --- /dev/null +++ b/ansible/vars/libvirt/FreeBSD-11.yml @@ -0,0 +1,98 @@ +--- +packages: + - augeas + - avahi + - curl + - cyrus-sasl + - dbus + - diskscrub + - dnsmasq + - fusefs-libs + - glusterfs + - gnutls + - hal + - libpcap + - libpciaccess + - libssh + - libssh2 + - libxslt + - polkit + - qemu-utils + - radvd + - readline + - yajl + +features: + with_apparmor: --without-apparmor # not available + with_attr: --without-attr # not available + with_audit: --without-audit # not available + with_avahi: --with-avahi + with_bhyve: --with-bhyve + with_blkid: --without-blkid # too old + with_capng: --without-capng # not available + with_curl: --with-curl + with_dbus: --with-dbus + with_driver_modules: --with-driver-modules + with_dtrace: --with-dtrace + with_esx: --with-esx + with_firewalld: --with-firewalld + with_fuse: --with-fuse + with_glusterfs: --with-glusterfs + with_gnutls: --with-gnutls + with_hal: --with-hal + with_host_validate: --with-host-validate + with_hyperv: --without-hyperv # not available + with_interface: --without-interface # not available + with_libpcap: --with-libpcap + with_libssh: --with-libssh + with_libvirtd: --with-libvirtd + with_libxl: --without-libxl # not available + with_libxml: --with-libxml + with_login_shell: --without-login-shell # not supported + with_lxc: --without-lxc # not available + with_macvtap: --without-macvtap # not available + with_netcf: --without-netcf # not available + with_network: --with-network + with_nss_plugin: --with-nss-plugin + with_numactl: --without-numactl # not available + with_numad: --without-numad # not available + with_openssl: --with-openssl + with_openvz: --without-openvz # not available + with_openwsman: --without-openwsman # not available + with_pciaccess: --with-pciaccess + with_phyp: --with-phyp + with_pm_utils: --with-pm-utils + with_polkit: --with-polkit + with_qemu: --with-qemu + with_readline: --with-readline + with_remote: --with-remote + with_sanlock: --without-sanlock # not available + with_sasl: --with-sasl + with_secrets: --with-secrets + with_selinux: --without-selinux # not available + with_ssh2: --with-ssh2 + with_storage_dir: --with-storage-dir + with_storage_disk: --without-storage-disk # not available + with_storage_fs: --without-storage-fs # not available + with_storage_gluster: --with-storage-gluster + with_storage_iscsi: --without-storage-iscsi # not available + with_storage_lvm: --without-storage-lvm # not available + with_storage_mpath: --without-storage-mpath # not supported + with_storage_rbd: --without-storage-rbd # not supported + with_storage_scsi: --with-storage-scsi + with_storage_sheepdog: --without-storage-sheepdog # not available + with_storage_vstorage: --without-storage-vstorage # not available + with_storage_zfs: --with-storage-zfs + with_test_suite: --with-test-suite + with_test: --with-test + with_udev: --without-udev # not available + with_uml: --without-uml # not available + with_vbox: --with-vbox + with_virtualport: --without-virtualport # not available + with_vmware: --with-vmware + with_vz: --without-vz # not available + with_wireshark_dissector: --without-wireshark-dissector # broken + with_xenapi: --without-xenapi # not supported + with_xen_inotify: --without-xen-inotify # not supported + with_xen: --without-xen # not supported + with_yajl: --with-yajl diff --git a/ansible/vars/libvirt/Ubuntu-12.yml b/ansible/vars/libvirt/Ubuntu-12.yml new file mode 100644 index 0000000..b43b069 --- /dev/null +++ b/ansible/vars/libvirt/Ubuntu-12.yml @@ -0,0 +1,122 @@ +--- +packages: + - augeas-tools + - dnsmasq-base + - ebtables + - libacl1-dev + - libapparmor-dev + - libattr1-dev + - libaudit-dev + - libavahi-client-dev + - libblkid-dev + - libcap-ng-dev + - libcurl4-gnutls-dev + - libdbus-1-dev + - libdevmapper-dev + - libfuse-dev + - libgnutls-dev + - libhal-dev + - libnetcf-dev + - libnl-3-dev + - libnl-route-3-dev + - libnuma-dev + - libopenwsman-dev + - libparted-dev + - libpcap-dev + - libpciaccess-dev + - libreadline-dev + - libsasl2-dev + - libselinux1-dev + - libssl-dev + - libudev-dev + - libxen-dev + - libxml2-dev + - libxml2-utils + - libyajl-dev + - lvm2 + - nfs-common + - open-iscsi + - parted + - policykit-1 + - qemu-utils + - radvd + - scrub + - sheepdog + - systemtap-sdt-dev + - xsltproc + - zfs-fuse + +features: + with_apparmor: --with-apparmor + with_attr: --with-attr + with_audit: --with-audit + with_avahi: --with-avahi + with_bhyve: --without-bhyve # not available + with_blkid: --with-blkid + with_capng: --with-capng + with_curl: --with-curl + with_dbus: --with-dbus + with_driver_modules: --with-driver-modules + with_dtrace: --with-dtrace + with_esx: --with-esx + with_firewalld: --with-firewalld + with_fuse: --with-fuse + with_glusterfs: --without-glusterfs # too old + with_gnutls: --with-gnutls + with_hal: --with-hal + with_host_validate: --with-host-validate + with_hyperv: --with-hyperv + with_interface: --with-interface + with_libpcap: --with-libpcap + with_libssh: --without-libssh # too old + with_libvirtd: --with-libvirtd + with_libxl: --without-libxl # too old + with_libxml: --with-libxml + with_login_shell: --with-login-shell + with_lxc: --with-lxc + with_macvtap: --with-macvtap + with_netcf: --with-netcf + with_network: --with-network + with_nss_plugin: --with-nss-plugin + with_numactl: --with-numactl + with_numad: --without-numad # not available + with_openssl: --with-openssl + with_openvz: --with-openvz + with_openwsman: --with-openwsman + with_pciaccess: --with-pciaccess + with_phyp: --without-phyp # libssh2 too old + with_pm_utils: --with-pm-utils + with_polkit: --with-polkit + with_qemu: --with-qemu + with_readline: --with-readline + with_remote: --with-remote + with_sanlock: --without-sanlock # not available + with_sasl: --with-sasl + with_secrets: --with-secrets + with_selinux: --with-selinux + with_ssh2: --without-ssh2 # too old + with_storage_dir: --with-storage-dir + with_storage_disk: --with-storage-disk + with_storage_fs: --with-storage-fs + with_storage_gluster: --without-storage-gluster # too old + with_storage_iscsi: --with-storage-iscsi + with_storage_lvm: --with-storage-lvm + with_storage_mpath: --with-storage-mpath + with_storage_rbd: --without-storage-rbd # too old + with_storage_scsi: --with-storage-scsi + with_storage_sheepdog: --with-storage-sheepdog + with_storage_vstorage: --without-storage-vstorage # not available + with_storage_zfs: --with-storage-zfs + with_test_suite: --with-test-suite + with_test: --with-test + with_udev: --with-udev + with_uml: --with-uml + with_vbox: --with-vbox + with_virtualport: --with-virtualport + with_vmware: --with-vmware + with_vz: --without-vz # not available + with_wireshark_dissector: --without-wireshark-dissector # too old + with_xenapi: --without-xenapi # not available + with_xen_inotify: --with-xen-inotify + with_xen: --with-xen + with_yajl: --with-yajl diff --git a/ansible/vars/libvirt/Ubuntu-14.yml b/ansible/vars/libvirt/Ubuntu-14.yml new file mode 100644 index 0000000..f65cb11 --- /dev/null +++ b/ansible/vars/libvirt/Ubuntu-14.yml @@ -0,0 +1,125 @@ +--- +packages: + - augeas-tools + - dnsmasq-base + - ebtables + - glusterfs-client + - libacl1-dev + - libapparmor-dev + - libattr1-dev + - libaudit-dev + - libavahi-client-dev + - libblkid-dev + - libcap-ng-dev + - libcurl4-gnutls-dev + - libdbus-1-dev + - libdevmapper-dev + - libfuse-dev + - libgnutls-dev + - libnetcf-dev + - libnl-3-dev + - libnl-route-3-dev + - libnuma-dev + - libopenwsman-dev + - libparted-dev + - libpcap-dev + - libpciaccess-dev + - librbd-dev + - libreadline-dev + - libsanlock-dev + - libsasl2-dev + - libselinux1-dev + - libssh2-1-dev + - libssl-dev + - libudev-dev + - libxen-dev + - libxml2-dev + - libxml2-utils + - libyajl-dev + - lvm2 + - nfs-common + - open-iscsi + - parted + - policykit-1 + - qemu-utils + - radvd + - scrub + - sheepdog + - systemtap-sdt-dev + - xsltproc + - zfs-fuse + +features: + with_apparmor: --with-apparmor + with_attr: --with-attr + with_audit: --with-audit + with_avahi: --with-avahi + with_bhyve: --without-bhyve # not available + with_blkid: --with-blkid + with_capng: --with-capng + with_curl: --with-curl + with_dbus: --with-dbus + with_driver_modules: --with-driver-modules + with_dtrace: --with-dtrace + with_esx: --with-esx + with_firewalld: --with-firewalld + with_fuse: --with-fuse + with_glusterfs: --with-glusterfs + with_gnutls: --with-gnutls + with_hal: --without-hal # not available + with_host_validate: --with-host-validate + with_hyperv: --with-hyperv + with_interface: --with-interface + with_libpcap: --with-libpcap + with_libssh: --without-libssh # too old + with_libvirtd: --with-libvirtd + with_libxl: --with-libxl + with_libxml: --with-libxml + with_login_shell: --with-login-shell + with_lxc: --with-lxc + with_macvtap: --with-macvtap + with_netcf: --with-netcf + with_network: --with-network + with_nss_plugin: --with-nss-plugin + with_numactl: --with-numactl + with_numad: --without-numad # not available + with_openssl: --with-openssl + with_openvz: --with-openvz + with_openwsman: --with-openwsman + with_pciaccess: --with-pciaccess + with_phyp: --with-phyp + with_pm_utils: --with-pm-utils + with_polkit: --with-polkit + with_qemu: --with-qemu + with_readline: --with-readline + with_remote: --with-remote + with_sanlock: --with-sanlock + with_sasl: --with-sasl + with_secrets: --with-secrets + with_selinux: --with-selinux + with_ssh2: --with-ssh2 + with_storage_dir: --with-storage-dir + with_storage_disk: --with-storage-disk + with_storage_fs: --with-storage-fs + with_storage_gluster: --with-storage-gluster + with_storage_iscsi: --with-storage-iscsi + with_storage_lvm: --with-storage-lvm + with_storage_mpath: --with-storage-mpath + with_storage_rbd: --with-storage-rbd + with_storage_scsi: --with-storage-scsi + with_storage_sheepdog: --with-storage-sheepdog + with_storage_vstorage: --without-storage-vstorage # not available + with_storage_zfs: --with-storage-zfs + with_test_suite: --with-test-suite + with_test: --with-test + with_udev: --with-udev + with_uml: --with-uml + with_vbox: --with-vbox + with_virtualport: --with-virtualport + with_vmware: --with-vmware + with_vz: --without-vz # not available + with_wireshark_dissector: --without-wireshark-dissector # too old + with_xenapi: --without-xenapi # not available + with_xen_inotify: --with-xen-inotify + with_xen: --with-xen + with_yajl: --with-yajl diff --git a/ansible/vars/libvirt/Ubuntu-16.yml b/ansible/vars/libvirt/Ubuntu-16.yml new file mode 100644 index 0000000..6c64bed --- /dev/null +++ b/ansible/vars/libvirt/Ubuntu-16.yml @@ -0,0 +1,128 @@ +--- +packages: + - augeas-tools + - ccache + - dnsmasq-base + - ebtables + - glusterfs-client + - libacl1-dev + - libapparmor-dev + - libattr1-dev + - libaudit-dev + - libavahi-client-dev + - libblkid-dev + - libcap-ng-dev + - libcurl4-gnutls-dev + - libdbus-1-dev + - libdevmapper-dev + - libfuse-dev + - libgnutls28-dev + - libnetcf-dev + - libnl-3-dev + - libnl-route-3-dev + - libnuma-dev + - libopenwsman-dev + - libparted-dev + - libpcap-dev + - libpciaccess-dev + - librbd-dev + - libreadline-dev + - libsanlock-dev + - libsasl2-dev + - libselinux1-dev + - libssh2-1-dev + - libssl-dev + - libudev-dev + - libxen-dev + - libxml2-dev + - libxml2-utils + - libyajl-dev + - lvm2 + - nfs-common + - numad + - open-iscsi + - parted + - policykit-1 + - qemu-utils + - radvd + - scrub + - sheepdog + - systemtap-sdt-dev + - wireshark-dev + - xsltproc + - zfs-fuse + +features: + with_apparmor: --with-apparmor + with_attr: --with-attr + with_audit: --with-audit + with_avahi: --with-avahi + with_bhyve: --without-bhyve # not available + with_blkid: --with-blkid + with_capng: --with-capng + with_curl: --with-curl + with_dbus: --with-dbus + with_driver_modules: --with-driver-modules + with_dtrace: --with-dtrace + with_esx: --with-esx + with_firewalld: --with-firewalld + with_fuse: --with-fuse + with_glusterfs: --with-glusterfs + with_gnutls: --with-gnutls + with_hal: --without-hal # not available + with_host_validate: --with-host-validate + with_hyperv: --with-hyperv + with_interface: --with-interface + with_libpcap: --with-libpcap + with_libssh: --without-libssh # too old + with_libvirtd: --with-libvirtd + with_libxl: --with-libxl + with_libxml: --with-libxml + with_login_shell: --with-login-shell + with_lxc: --with-lxc + with_macvtap: --with-macvtap + with_netcf: --with-netcf + with_network: --with-network + with_nss_plugin: --with-nss-plugin + with_numactl: --with-numactl + with_numad: --with-numad + with_openssl: --with-openssl + with_openvz: --with-openvz + with_openwsman: --with-openwsman + with_pciaccess: --with-pciaccess + with_phyp: --with-phyp + with_pm_utils: --with-pm-utils + with_polkit: --with-polkit + with_qemu: --with-qemu + with_readline: --with-readline + with_remote: --with-remote + with_sanlock: --with-sanlock + with_sasl: --with-sasl + with_secrets: --with-secrets + with_selinux: --with-selinux + with_ssh2: --with-ssh2 + with_storage_dir: --with-storage-dir + with_storage_disk: --with-storage-disk + with_storage_fs: --with-storage-fs + with_storage_gluster: --with-storage-gluster + with_storage_iscsi: --with-storage-iscsi + with_storage_lvm: --with-storage-lvm + with_storage_mpath: --with-storage-mpath + with_storage_rbd: --with-storage-rbd + with_storage_scsi: --with-storage-scsi + with_storage_sheepdog: --with-storage-sheepdog + with_storage_vstorage: --without-storage-vstorage # not available + with_storage_zfs: --with-storage-zfs + with_test_suite: --with-test-suite + with_test: --with-test + with_udev: --with-udev + with_uml: --with-uml + with_vbox: --with-vbox + with_virtualport: --with-virtualport + with_vmware: --with-vmware + with_vz: --without-vz # not available + with_wireshark_dissector: --with-wireshark-dissector + with_xenapi: --without-xenapi # not available + with_xen_inotify: --with-xen-inotify + with_xen: --with-xen + with_yajl: --with-yajl -- 2.13.6

Signed-off-by: Andrea Bolognani <abologna@redhat.com> --- ansible/host_vars/libvirt-centos-6/main.yml | 1 + ansible/host_vars/libvirt-centos-7/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/tasks/build.yml | 19 +++++++++++++++---- ansible/tasks/packages.yml | 11 +++++++++++ ansible/vars/libvirt-cim/CentOS-6.yml | 11 +++++++++++ ansible/vars/libvirt-cim/CentOS-7.yml | 11 +++++++++++ ansible/vars/libvirt-cim/Fedora-25.yml | 11 +++++++++++ ansible/vars/libvirt-cim/Fedora-26.yml | 11 +++++++++++ ansible/vars/libvirt-cim/Fedora-Rawhide.yml | 11 +++++++++++ 12 files changed, 86 insertions(+), 4 deletions(-) create mode 100644 ansible/vars/libvirt-cim/CentOS-6.yml create mode 100644 ansible/vars/libvirt-cim/CentOS-7.yml create mode 100644 ansible/vars/libvirt-cim/Fedora-25.yml create mode 100644 ansible/vars/libvirt-cim/Fedora-26.yml create mode 100644 ansible/vars/libvirt-cim/Fedora-Rawhide.yml diff --git a/ansible/host_vars/libvirt-centos-6/main.yml b/ansible/host_vars/libvirt-centos-6/main.yml index 4d53bb3..f6fe574 100644 --- a/ansible/host_vars/libvirt-centos-6/main.yml +++ b/ansible/host_vars/libvirt-centos-6/main.yml @@ -2,3 +2,4 @@ projects: - base - libvirt + - libvirt-cim diff --git a/ansible/host_vars/libvirt-centos-7/main.yml b/ansible/host_vars/libvirt-centos-7/main.yml index 7508f19..ec2e50f 100644 --- a/ansible/host_vars/libvirt-centos-7/main.yml +++ b/ansible/host_vars/libvirt-centos-7/main.yml @@ -3,3 +3,4 @@ projects: - base - libosinfo - libvirt + - libvirt-cim diff --git a/ansible/host_vars/libvirt-fedora-25/main.yml b/ansible/host_vars/libvirt-fedora-25/main.yml index 7508f19..ec2e50f 100644 --- a/ansible/host_vars/libvirt-fedora-25/main.yml +++ b/ansible/host_vars/libvirt-fedora-25/main.yml @@ -3,3 +3,4 @@ projects: - base - libosinfo - libvirt + - libvirt-cim diff --git a/ansible/host_vars/libvirt-fedora-26/main.yml b/ansible/host_vars/libvirt-fedora-26/main.yml index 7508f19..ec2e50f 100644 --- a/ansible/host_vars/libvirt-fedora-26/main.yml +++ b/ansible/host_vars/libvirt-fedora-26/main.yml @@ -3,3 +3,4 @@ projects: - base - libosinfo - libvirt + - libvirt-cim diff --git a/ansible/host_vars/libvirt-fedora-rawhide/main.yml b/ansible/host_vars/libvirt-fedora-rawhide/main.yml index 7508f19..ec2e50f 100644 --- a/ansible/host_vars/libvirt-fedora-rawhide/main.yml +++ b/ansible/host_vars/libvirt-fedora-rawhide/main.yml @@ -3,3 +3,4 @@ projects: - base - libosinfo - libvirt + - libvirt-cim diff --git a/ansible/tasks/build.yml b/ansible/tasks/build.yml index be9ecd3..2a26024 100644 --- a/ansible/tasks/build.yml +++ b/ansible/tasks/build.yml @@ -38,7 +38,15 @@ environment: when: - ( project == 'libosinfo' or - project == 'libvirt' ) + project == 'libvirt' or + project == 'libvirt-cim' ) + +- name: '{{ project }}: Run configure' + command: './configure {{ configure_options }}' + args: + chdir: '{{ project }}' + when: + - project == 'libvirt-cim' - name: '{{ project }}: Build project' command: '{{ make }} -j{{ smp }}' @@ -46,7 +54,8 @@ chdir: '{{ project }}' when: - ( project == 'libosinfo' or - project == 'libvirt' ) + project == 'libvirt' or + project == 'libvirt-cim' ) - name: '{{ project }}: Run sanity checks' command: '{{ make }} -j{{ smp }} syntax-check' @@ -63,7 +72,8 @@ chdir: '{{ project }}' when: - ( ( project == 'libvirt' and - os_name != 'FreeBSD' ) ) + os_name != 'FreeBSD' ) or + project == 'libvirt-cim' ) - name: '{{ project }}: Build RPM package' command: '{{ make }} -j{{ smp }} rpm' @@ -72,4 +82,5 @@ when: - ( os_name == 'CentOS' or os_name == 'Fedora' ) - - ( project == 'libvirt' ) + - ( project == 'libvirt' or + project == 'libvirt-cim' ) diff --git a/ansible/tasks/packages.yml b/ansible/tasks/packages.yml index 630d794..7a66899 100644 --- a/ansible/tasks/packages.yml +++ b/ansible/tasks/packages.yml @@ -9,3 +9,14 @@ state: present with_items: '{{ packages }}' + +- name: '{{ project }}: Install extra packages' + package: + name: '{{ item }}' + state: present + with_items: + '{{ extra_packages }}' + when: + - extra_packages is defined + # Only extra additional packages if we're going to build later on + - build diff --git a/ansible/vars/libvirt-cim/CentOS-6.yml b/ansible/vars/libvirt-cim/CentOS-6.yml new file mode 100644 index 0000000..8ff80c1 --- /dev/null +++ b/ansible/vars/libvirt-cim/CentOS-6.yml @@ -0,0 +1,11 @@ +--- +packages: + - libcmpiutil-devel + - libconfig-devel + - libuuid-devel + - libxml2-devel + - libxslt + - wget + +extra_packages: + - libvirt-devel diff --git a/ansible/vars/libvirt-cim/CentOS-7.yml b/ansible/vars/libvirt-cim/CentOS-7.yml new file mode 100644 index 0000000..8ff80c1 --- /dev/null +++ b/ansible/vars/libvirt-cim/CentOS-7.yml @@ -0,0 +1,11 @@ +--- +packages: + - libcmpiutil-devel + - libconfig-devel + - libuuid-devel + - libxml2-devel + - libxslt + - wget + +extra_packages: + - libvirt-devel diff --git a/ansible/vars/libvirt-cim/Fedora-25.yml b/ansible/vars/libvirt-cim/Fedora-25.yml new file mode 100644 index 0000000..8ff80c1 --- /dev/null +++ b/ansible/vars/libvirt-cim/Fedora-25.yml @@ -0,0 +1,11 @@ +--- +packages: + - libcmpiutil-devel + - libconfig-devel + - libuuid-devel + - libxml2-devel + - libxslt + - wget + +extra_packages: + - libvirt-devel diff --git a/ansible/vars/libvirt-cim/Fedora-26.yml b/ansible/vars/libvirt-cim/Fedora-26.yml new file mode 100644 index 0000000..8ff80c1 --- /dev/null +++ b/ansible/vars/libvirt-cim/Fedora-26.yml @@ -0,0 +1,11 @@ +--- +packages: + - libcmpiutil-devel + - libconfig-devel + - libuuid-devel + - libxml2-devel + - libxslt + - wget + +extra_packages: + - libvirt-devel diff --git a/ansible/vars/libvirt-cim/Fedora-Rawhide.yml b/ansible/vars/libvirt-cim/Fedora-Rawhide.yml new file mode 100644 index 0000000..8ff80c1 --- /dev/null +++ b/ansible/vars/libvirt-cim/Fedora-Rawhide.yml @@ -0,0 +1,11 @@ +--- +packages: + - libcmpiutil-devel + - libconfig-devel + - libuuid-devel + - libxml2-devel + - libxslt + - wget + +extra_packages: + - libvirt-devel -- 2.13.6

On Mon, Oct 02, 2017 at 05:10:43PM +0200, Andrea Bolognani wrote:
Signed-off-by: Andrea Bolognani <abologna@redhat.com> --- ansible/host_vars/libvirt-centos-6/main.yml | 1 + ansible/host_vars/libvirt-centos-7/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/tasks/build.yml | 19 +++++++++++++++---- ansible/tasks/packages.yml | 11 +++++++++++ ansible/vars/libvirt-cim/CentOS-6.yml | 11 +++++++++++ ansible/vars/libvirt-cim/CentOS-7.yml | 11 +++++++++++ ansible/vars/libvirt-cim/Fedora-25.yml | 11 +++++++++++ ansible/vars/libvirt-cim/Fedora-26.yml | 11 +++++++++++ ansible/vars/libvirt-cim/Fedora-Rawhide.yml | 11 +++++++++++ 12 files changed, 86 insertions(+), 4 deletions(-) create mode 100644 ansible/vars/libvirt-cim/CentOS-6.yml create mode 100644 ansible/vars/libvirt-cim/CentOS-7.yml create mode 100644 ansible/vars/libvirt-cim/Fedora-25.yml create mode 100644 ansible/vars/libvirt-cim/Fedora-26.yml create mode 100644 ansible/vars/libvirt-cim/Fedora-Rawhide.yml
diff --git a/ansible/host_vars/libvirt-centos-6/main.yml b/ansible/host_vars/libvirt-centos-6/main.yml index 4d53bb3..f6fe574 100644 --- a/ansible/host_vars/libvirt-centos-6/main.yml +++ b/ansible/host_vars/libvirt-centos-6/main.yml @@ -2,3 +2,4 @@ projects: - base - libvirt + - libvirt-cim diff --git a/ansible/host_vars/libvirt-centos-7/main.yml b/ansible/host_vars/libvirt-centos-7/main.yml index 7508f19..ec2e50f 100644 --- a/ansible/host_vars/libvirt-centos-7/main.yml +++ b/ansible/host_vars/libvirt-centos-7/main.yml @@ -3,3 +3,4 @@ projects: - base - libosinfo - libvirt + - libvirt-cim diff --git a/ansible/host_vars/libvirt-fedora-25/main.yml b/ansible/host_vars/libvirt-fedora-25/main.yml index 7508f19..ec2e50f 100644 --- a/ansible/host_vars/libvirt-fedora-25/main.yml +++ b/ansible/host_vars/libvirt-fedora-25/main.yml @@ -3,3 +3,4 @@ projects: - base - libosinfo - libvirt + - libvirt-cim diff --git a/ansible/host_vars/libvirt-fedora-26/main.yml b/ansible/host_vars/libvirt-fedora-26/main.yml index 7508f19..ec2e50f 100644 --- a/ansible/host_vars/libvirt-fedora-26/main.yml +++ b/ansible/host_vars/libvirt-fedora-26/main.yml @@ -3,3 +3,4 @@ projects: - base - libosinfo - libvirt + - libvirt-cim diff --git a/ansible/host_vars/libvirt-fedora-rawhide/main.yml b/ansible/host_vars/libvirt-fedora-rawhide/main.yml index 7508f19..ec2e50f 100644 --- a/ansible/host_vars/libvirt-fedora-rawhide/main.yml +++ b/ansible/host_vars/libvirt-fedora-rawhide/main.yml @@ -3,3 +3,4 @@ projects: - base - libosinfo - libvirt + - libvirt-cim diff --git a/ansible/tasks/build.yml b/ansible/tasks/build.yml index be9ecd3..2a26024 100644 --- a/ansible/tasks/build.yml +++ b/ansible/tasks/build.yml @@ -38,7 +38,15 @@ environment: when: - ( project == 'libosinfo' or - project == 'libvirt' ) + project == 'libvirt' or + project == 'libvirt-cim' ) + +- name: '{{ project }}: Run configure' + command: './configure {{ configure_options }}' + args: + chdir: '{{ project }}' + when: + - project == 'libvirt-cim'
- name: '{{ project }}: Build project' command: '{{ make }} -j{{ smp }}' @@ -46,7 +54,8 @@ chdir: '{{ project }}' when: - ( project == 'libosinfo' or - project == 'libvirt' ) + project == 'libvirt' or + project == 'libvirt-cim' )
- name: '{{ project }}: Run sanity checks' command: '{{ make }} -j{{ smp }} syntax-check' @@ -63,7 +72,8 @@ chdir: '{{ project }}' when: - ( ( project == 'libvirt' and - os_name != 'FreeBSD' ) ) + os_name != 'FreeBSD' ) or + project == 'libvirt-cim' )
- name: '{{ project }}: Build RPM package' command: '{{ make }} -j{{ smp }} rpm' @@ -72,4 +82,5 @@ when: - ( os_name == 'CentOS' or os_name == 'Fedora' ) - - ( project == 'libvirt' ) + - ( project == 'libvirt' or + project == 'libvirt-cim' ) diff --git a/ansible/tasks/packages.yml b/ansible/tasks/packages.yml index 630d794..7a66899 100644 --- a/ansible/tasks/packages.yml +++ b/ansible/tasks/packages.yml @@ -9,3 +9,14 @@ state: present with_items: '{{ packages }}' + +- name: '{{ project }}: Install extra packages' + package: + name: '{{ item }}' + state: present + with_items: + '{{ extra_packages }}' + when: + - extra_packages is defined + # Only extra additional packages if we're going to build later on + - build diff --git a/ansible/vars/libvirt-cim/CentOS-6.yml b/ansible/vars/libvirt-cim/CentOS-6.yml new file mode 100644 index 0000000..8ff80c1 --- /dev/null +++ b/ansible/vars/libvirt-cim/CentOS-6.yml @@ -0,0 +1,11 @@ +--- +packages: + - libcmpiutil-devel + - libconfig-devel + - libuuid-devel + - libxml2-devel + - libxslt + - wget + +extra_packages: + - libvirt-devel
This isn't right - we should never install libvirt-devel on any of the build hosts. Downstream projects are chained up to build against the version of libvirt we just built. The same applies for other deps we build that are used by other downstream pieces. Is there any way to get inheritance between these 'vars' files, so we don't copy+paste the same content for every Fedora/CentOS version ? Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|

On Mon, 2017-10-02 at 16:57 +0100, Daniel P. Berrange wrote:
+packages: + - libcmpiutil-devel + - libconfig-devel + - libuuid-devel + - libxml2-devel + - libxslt + - wget + +extra_packages: + - libvirt-devel
This isn't right - we should never install libvirt-devel on any of the build hosts. Downstream projects are chained up to build against the version of libvirt we just built. The same applies for other deps we build that are used by other downstream pieces.
That's why it's in 'extra_packages' rather than 'packages' ;) Again, this is only used during development. See group_vars/all/main.yml: # Wether to build software. While this is useful for figuring out # build dependencies, it should not be turned on in production # because it causes extra packages to be installed, which can # interfere with the CI jobs build: false and tasks/packages.yml: - name: '{{ project }}: Install extra packages' package: name: '{{ item }}' state: present with_items: '{{ extra_packages }}' when: - extra_packages is defined # Only extra additional packages if we're going to build - build Yuck, I accidentally that comment. You get the idea though.
Is there any way to get inheritance between these 'vars' files, so we don't copy+paste the same content for every Fedora/CentOS version ?
Mh, I have the feeling it might complicate things rather than make them nicer. I can look into it, though. -- Andrea Bolognani / Red Hat / Virtualization

On Tue, Oct 03, 2017 at 09:18:32AM +0200, Andrea Bolognani wrote:
On Mon, 2017-10-02 at 16:57 +0100, Daniel P. Berrange wrote:
+packages: + - libcmpiutil-devel + - libconfig-devel + - libuuid-devel + - libxml2-devel + - libxslt + - wget + +extra_packages: + - libvirt-devel
This isn't right - we should never install libvirt-devel on any of the build hosts. Downstream projects are chained up to build against the version of libvirt we just built. The same applies for other deps we build that are used by other downstream pieces.
That's why it's in 'extra_packages' rather than 'packages' ;)
Again, this is only used during development.
See group_vars/all/main.yml:
# Wether to build software. While this is useful for figuring out # build dependencies, it should not be turned on in production # because it causes extra packages to be installed, which can # interfere with the CI jobs build: false
and tasks/packages.yml:
- name: '{{ project }}: Install extra packages' package: name: '{{ item }}' state: present with_items: '{{ extra_packages }}' when: - extra_packages is defined # Only extra additional packages if we're going to build - build
Yuck, I accidentally that comment. You get the idea though.
Is there any way to get inheritance between these 'vars' files, so we don't copy+paste the same content for every Fedora/CentOS version ?
Mh, I have the feeling it might complicate things rather than make them nicer. I can look into it, though.
One of the big wins when I moved the configs out of Jenkins native config format, into the Jenkins Job Builder config format is that we could eliminate all the duplication between the configs. So from that POV it feels unpleasant to be re-adding lots of duplication. In the very last patch you add a bunch of files which define aliases for the various dependancies, and map those to the distro specific package name eg +cyrus-sasl: + - cyrus-sasl # FreeBSD + - cyrus-sasl-devel # CentOS, Fedora + - libsasl2-dev # Debian, Ubuntu Given these data maps, it seems like we ought to be able to define the build pre-requisites once in terms of the alias names, and then expand that into the distro specific package lists, thus avoiding a per-distro list of deps for each module Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|

On Tue, 2017-10-03 at 10:02 +0100, Daniel P. Berrange wrote:
In the very last patch you add a bunch of files which define aliases for the various dependancies, and map those to the distro specific package name eg
+cyrus-sasl: + - cyrus-sasl # FreeBSD + - cyrus-sasl-devel # CentOS, Fedora + - libsasl2-dev # Debian, Ubuntu
Given these data maps, it seems like we ought to be able to define the build pre-requisites once in terms of the alias names, and then expand that into the distro specific package lists, thus avoiding a per-distro list of deps for each module
It's a little more complicated than that, though. Some dependencies have different names based not just on the OS but also on the specific version, eg. gnutls: - gnutls # FreeBSD - gnutls-devel # CentOS, Fedora - libgnutls-dev # Ubuntu <= 14 - libgnutls28-dev # Debian, Ubuntu 16 Other dependencies might only be availabe on a subset of the OSs we support, eg. libblkid: - libblkid-dev # Debian, Ubuntu - libblkid-devel # CentOS, Fedora I get the argument against redundancy, but in this case I feel like the current representation is possibly preferable to a more compact, less redundant one because it's *way simpler*, both in terms of the variable files themselves and the Ansible code required to use them. Would having something like gnutls: CentOS: 6: gnutls-devel 7: gnutls-devel Debian: 8: libgnutls28-dev 9: libgnutls28-dev Fedora: 25: gnutls-devel 26: gnutls-devel Rawhide: gnutls-devel FreeBSD: 11: gnutls Ubuntu: 12: libgnutls-dev 14: libgnutls-dev 16: libgnutls28-dev or gnutls: gnutls: - FreeBSD-11 gnutls-devel: - CentOS-6 - CentOS-7 - Fedora-25 - Fedora-26 - Fedora-Rawhide libgnutls-dev: - Ubuntu-12 - Ubuntu-14 libgnutls28-dev: - Debian-8 - Debian-9 - Ubuntu-16 plus Ansible machinery to expand it really be better than what I'm proposing? I guess we could have a more compact representation, but that would be at the cost of even more complex Ansible machinery. The above is still somewhat redundant, and IMHO less usable because not only the redundancy is staring right at you instead of being confined to separate files, you also just introduced one extra layer of indirection. What if one of the build dependencies is too old to be used by libvirt but libosinfo can use it just fine? How would you describe something like that in a machine-readable way without making the whole thing utterly unusable by humans? -- Andrea Bolognani / Red Hat / Virtualization

Signed-off-by: Andrea Bolognani <abologna@redhat.com> --- 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-16/main.yml | 1 + ansible/tasks/build.yml | 12 ++++++++---- ansible/vars/libvirt-glib/CentOS-7.yml | 16 ++++++++++++++++ ansible/vars/libvirt-glib/Debian-8.yml | 16 ++++++++++++++++ ansible/vars/libvirt-glib/Debian-9.yml | 16 ++++++++++++++++ ansible/vars/libvirt-glib/Fedora-25.yml | 16 ++++++++++++++++ ansible/vars/libvirt-glib/Fedora-26.yml | 16 ++++++++++++++++ ansible/vars/libvirt-glib/Fedora-Rawhide.yml | 16 ++++++++++++++++ ansible/vars/libvirt-glib/FreeBSD-11.yml | 16 ++++++++++++++++ ansible/vars/libvirt-glib/Ubuntu-16.yml | 16 ++++++++++++++++ 17 files changed, 144 insertions(+), 4 deletions(-) create mode 100644 ansible/vars/libvirt-glib/CentOS-7.yml create mode 100644 ansible/vars/libvirt-glib/Debian-8.yml create mode 100644 ansible/vars/libvirt-glib/Debian-9.yml create mode 100644 ansible/vars/libvirt-glib/Fedora-25.yml create mode 100644 ansible/vars/libvirt-glib/Fedora-26.yml create mode 100644 ansible/vars/libvirt-glib/Fedora-Rawhide.yml create mode 100644 ansible/vars/libvirt-glib/FreeBSD-11.yml create mode 100644 ansible/vars/libvirt-glib/Ubuntu-16.yml diff --git a/ansible/host_vars/libvirt-centos-7/main.yml b/ansible/host_vars/libvirt-centos-7/main.yml index ec2e50f..87b39f3 100644 --- a/ansible/host_vars/libvirt-centos-7/main.yml +++ b/ansible/host_vars/libvirt-centos-7/main.yml @@ -4,3 +4,4 @@ projects: - libosinfo - libvirt - libvirt-cim + - libvirt-glib diff --git a/ansible/host_vars/libvirt-debian-8/main.yml b/ansible/host_vars/libvirt-debian-8/main.yml index 7508f19..06aed9d 100644 --- a/ansible/host_vars/libvirt-debian-8/main.yml +++ b/ansible/host_vars/libvirt-debian-8/main.yml @@ -3,3 +3,4 @@ projects: - base - libosinfo - libvirt + - libvirt-glib diff --git a/ansible/host_vars/libvirt-debian-9/main.yml b/ansible/host_vars/libvirt-debian-9/main.yml index 7508f19..06aed9d 100644 --- a/ansible/host_vars/libvirt-debian-9/main.yml +++ b/ansible/host_vars/libvirt-debian-9/main.yml @@ -3,3 +3,4 @@ projects: - base - libosinfo - libvirt + - libvirt-glib diff --git a/ansible/host_vars/libvirt-fedora-25/main.yml b/ansible/host_vars/libvirt-fedora-25/main.yml index ec2e50f..87b39f3 100644 --- a/ansible/host_vars/libvirt-fedora-25/main.yml +++ b/ansible/host_vars/libvirt-fedora-25/main.yml @@ -4,3 +4,4 @@ projects: - libosinfo - libvirt - libvirt-cim + - libvirt-glib diff --git a/ansible/host_vars/libvirt-fedora-26/main.yml b/ansible/host_vars/libvirt-fedora-26/main.yml index ec2e50f..87b39f3 100644 --- a/ansible/host_vars/libvirt-fedora-26/main.yml +++ b/ansible/host_vars/libvirt-fedora-26/main.yml @@ -4,3 +4,4 @@ projects: - libosinfo - libvirt - libvirt-cim + - libvirt-glib diff --git a/ansible/host_vars/libvirt-fedora-rawhide/main.yml b/ansible/host_vars/libvirt-fedora-rawhide/main.yml index ec2e50f..87b39f3 100644 --- a/ansible/host_vars/libvirt-fedora-rawhide/main.yml +++ b/ansible/host_vars/libvirt-fedora-rawhide/main.yml @@ -4,3 +4,4 @@ projects: - libosinfo - libvirt - libvirt-cim + - libvirt-glib diff --git a/ansible/host_vars/libvirt-freebsd-11/main.yml b/ansible/host_vars/libvirt-freebsd-11/main.yml index a8766a0..1acdd66 100644 --- a/ansible/host_vars/libvirt-freebsd-11/main.yml +++ b/ansible/host_vars/libvirt-freebsd-11/main.yml @@ -10,3 +10,4 @@ projects: - base - libosinfo - libvirt + - libvirt-glib diff --git a/ansible/host_vars/libvirt-ubuntu-16/main.yml b/ansible/host_vars/libvirt-ubuntu-16/main.yml index 7508f19..06aed9d 100644 --- a/ansible/host_vars/libvirt-ubuntu-16/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-16/main.yml @@ -3,3 +3,4 @@ projects: - base - libosinfo - libvirt + - libvirt-glib diff --git a/ansible/tasks/build.yml b/ansible/tasks/build.yml index 2a26024..17f5bf3 100644 --- a/ansible/tasks/build.yml +++ b/ansible/tasks/build.yml @@ -39,7 +39,8 @@ when: - ( project == 'libosinfo' or project == 'libvirt' or - project == 'libvirt-cim' ) + project == 'libvirt-cim' or + project == 'libvirt-glib' ) - name: '{{ project }}: Run configure' command: './configure {{ configure_options }}' @@ -55,7 +56,8 @@ when: - ( project == 'libosinfo' or project == 'libvirt' or - project == 'libvirt-cim' ) + project == 'libvirt-cim' or + project == 'libvirt-glib' ) - name: '{{ project }}: Run sanity checks' command: '{{ make }} -j{{ smp }} syntax-check' @@ -64,7 +66,8 @@ when: - ( project == 'libosinfo' or ( project == 'libvirt' and - os_name != 'FreeBSD' ) ) + os_name != 'FreeBSD' ) or + project == 'libvirt-glib' ) - name: '{{ project }}: Run test suite' command: '{{ make }} -j{{ smp }} check' @@ -73,7 +76,8 @@ when: - ( ( project == 'libvirt' and os_name != 'FreeBSD' ) or - project == 'libvirt-cim' ) + project == 'libvirt-cim' or + project == 'libvirt-glib' ) - name: '{{ project }}: Build RPM package' command: '{{ make }} -j{{ smp }} rpm' diff --git a/ansible/vars/libvirt-glib/CentOS-7.yml b/ansible/vars/libvirt-glib/CentOS-7.yml new file mode 100644 index 0000000..513284d --- /dev/null +++ b/ansible/vars/libvirt-glib/CentOS-7.yml @@ -0,0 +1,16 @@ +--- +packages: + - glib2-devel + - gobject-introspection-devel + - gtk-doc + - intltool + - libxml2-devel + - vala + +extra_packages: + - libvirt-devel + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala diff --git a/ansible/vars/libvirt-glib/Debian-8.yml b/ansible/vars/libvirt-glib/Debian-8.yml new file mode 100644 index 0000000..7c8660e --- /dev/null +++ b/ansible/vars/libvirt-glib/Debian-8.yml @@ -0,0 +1,16 @@ +--- +packages: + - gtk-doc-tools + - intltool + - libgirepository1.0-dev + - libglib2.0-dev + - libxml2-dev + - valac + +extra_packages: + - libvirt-dev + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala diff --git a/ansible/vars/libvirt-glib/Debian-9.yml b/ansible/vars/libvirt-glib/Debian-9.yml new file mode 100644 index 0000000..7c8660e --- /dev/null +++ b/ansible/vars/libvirt-glib/Debian-9.yml @@ -0,0 +1,16 @@ +--- +packages: + - gtk-doc-tools + - intltool + - libgirepository1.0-dev + - libglib2.0-dev + - libxml2-dev + - valac + +extra_packages: + - libvirt-dev + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala diff --git a/ansible/vars/libvirt-glib/Fedora-25.yml b/ansible/vars/libvirt-glib/Fedora-25.yml new file mode 100644 index 0000000..513284d --- /dev/null +++ b/ansible/vars/libvirt-glib/Fedora-25.yml @@ -0,0 +1,16 @@ +--- +packages: + - glib2-devel + - gobject-introspection-devel + - gtk-doc + - intltool + - libxml2-devel + - vala + +extra_packages: + - libvirt-devel + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala diff --git a/ansible/vars/libvirt-glib/Fedora-26.yml b/ansible/vars/libvirt-glib/Fedora-26.yml new file mode 100644 index 0000000..513284d --- /dev/null +++ b/ansible/vars/libvirt-glib/Fedora-26.yml @@ -0,0 +1,16 @@ +--- +packages: + - glib2-devel + - gobject-introspection-devel + - gtk-doc + - intltool + - libxml2-devel + - vala + +extra_packages: + - libvirt-devel + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala diff --git a/ansible/vars/libvirt-glib/Fedora-Rawhide.yml b/ansible/vars/libvirt-glib/Fedora-Rawhide.yml new file mode 100644 index 0000000..513284d --- /dev/null +++ b/ansible/vars/libvirt-glib/Fedora-Rawhide.yml @@ -0,0 +1,16 @@ +--- +packages: + - glib2-devel + - gobject-introspection-devel + - gtk-doc + - intltool + - libxml2-devel + - vala + +extra_packages: + - libvirt-devel + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala diff --git a/ansible/vars/libvirt-glib/FreeBSD-11.yml b/ansible/vars/libvirt-glib/FreeBSD-11.yml new file mode 100644 index 0000000..c0eff32 --- /dev/null +++ b/ansible/vars/libvirt-glib/FreeBSD-11.yml @@ -0,0 +1,16 @@ +--- +packages: + - glib + - gobject-introspection + - gtk-doc + - intltool + - libxml2 + - vala + +extra_packages: + - libvirt + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala diff --git a/ansible/vars/libvirt-glib/Ubuntu-16.yml b/ansible/vars/libvirt-glib/Ubuntu-16.yml new file mode 100644 index 0000000..7c8660e --- /dev/null +++ b/ansible/vars/libvirt-glib/Ubuntu-16.yml @@ -0,0 +1,16 @@ +--- +packages: + - gtk-doc-tools + - intltool + - libgirepository1.0-dev + - libglib2.0-dev + - libxml2-dev + - valac + +extra_packages: + - libvirt-dev + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + enable_vala: --enable-vala -- 2.13.6

Signed-off-by: Andrea Bolognani <abologna@redhat.com> --- 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-16/main.yml | 1 + ansible/tasks/build.yml | 16 ++++++++++++++++ ansible/vars/libvirt-go/CentOS-7.yml | 7 +++++++ ansible/vars/libvirt-go/Debian-8.yml | 7 +++++++ ansible/vars/libvirt-go/Debian-9.yml | 7 +++++++ ansible/vars/libvirt-go/Fedora-25.yml | 7 +++++++ ansible/vars/libvirt-go/Fedora-26.yml | 7 +++++++ ansible/vars/libvirt-go/Fedora-Rawhide.yml | 7 +++++++ ansible/vars/libvirt-go/FreeBSD-11.yml | 6 ++++++ ansible/vars/libvirt-go/Ubuntu-16.yml | 7 +++++++ 17 files changed, 79 insertions(+) create mode 100644 ansible/vars/libvirt-go/CentOS-7.yml create mode 100644 ansible/vars/libvirt-go/Debian-8.yml create mode 100644 ansible/vars/libvirt-go/Debian-9.yml create mode 100644 ansible/vars/libvirt-go/Fedora-25.yml create mode 100644 ansible/vars/libvirt-go/Fedora-26.yml create mode 100644 ansible/vars/libvirt-go/Fedora-Rawhide.yml create mode 100644 ansible/vars/libvirt-go/FreeBSD-11.yml create mode 100644 ansible/vars/libvirt-go/Ubuntu-16.yml diff --git a/ansible/host_vars/libvirt-centos-7/main.yml b/ansible/host_vars/libvirt-centos-7/main.yml index 87b39f3..728b6d5 100644 --- a/ansible/host_vars/libvirt-centos-7/main.yml +++ b/ansible/host_vars/libvirt-centos-7/main.yml @@ -5,3 +5,4 @@ projects: - libvirt - libvirt-cim - libvirt-glib + - libvirt-go diff --git a/ansible/host_vars/libvirt-debian-8/main.yml b/ansible/host_vars/libvirt-debian-8/main.yml index 06aed9d..6fa3e95 100644 --- a/ansible/host_vars/libvirt-debian-8/main.yml +++ b/ansible/host_vars/libvirt-debian-8/main.yml @@ -4,3 +4,4 @@ projects: - libosinfo - libvirt - libvirt-glib + - libvirt-go diff --git a/ansible/host_vars/libvirt-debian-9/main.yml b/ansible/host_vars/libvirt-debian-9/main.yml index 06aed9d..6fa3e95 100644 --- a/ansible/host_vars/libvirt-debian-9/main.yml +++ b/ansible/host_vars/libvirt-debian-9/main.yml @@ -4,3 +4,4 @@ projects: - libosinfo - libvirt - libvirt-glib + - libvirt-go diff --git a/ansible/host_vars/libvirt-fedora-25/main.yml b/ansible/host_vars/libvirt-fedora-25/main.yml index 87b39f3..728b6d5 100644 --- a/ansible/host_vars/libvirt-fedora-25/main.yml +++ b/ansible/host_vars/libvirt-fedora-25/main.yml @@ -5,3 +5,4 @@ projects: - libvirt - libvirt-cim - libvirt-glib + - libvirt-go diff --git a/ansible/host_vars/libvirt-fedora-26/main.yml b/ansible/host_vars/libvirt-fedora-26/main.yml index 87b39f3..728b6d5 100644 --- a/ansible/host_vars/libvirt-fedora-26/main.yml +++ b/ansible/host_vars/libvirt-fedora-26/main.yml @@ -5,3 +5,4 @@ projects: - libvirt - libvirt-cim - libvirt-glib + - libvirt-go diff --git a/ansible/host_vars/libvirt-fedora-rawhide/main.yml b/ansible/host_vars/libvirt-fedora-rawhide/main.yml index 87b39f3..728b6d5 100644 --- a/ansible/host_vars/libvirt-fedora-rawhide/main.yml +++ b/ansible/host_vars/libvirt-fedora-rawhide/main.yml @@ -5,3 +5,4 @@ projects: - libvirt - libvirt-cim - libvirt-glib + - libvirt-go diff --git a/ansible/host_vars/libvirt-freebsd-11/main.yml b/ansible/host_vars/libvirt-freebsd-11/main.yml index 1acdd66..c2b059e 100644 --- a/ansible/host_vars/libvirt-freebsd-11/main.yml +++ b/ansible/host_vars/libvirt-freebsd-11/main.yml @@ -11,3 +11,4 @@ projects: - libosinfo - libvirt - libvirt-glib + - libvirt-go diff --git a/ansible/host_vars/libvirt-ubuntu-16/main.yml b/ansible/host_vars/libvirt-ubuntu-16/main.yml index 06aed9d..6fa3e95 100644 --- a/ansible/host_vars/libvirt-ubuntu-16/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-16/main.yml @@ -4,3 +4,4 @@ projects: - libosinfo - libvirt - libvirt-glib + - libvirt-go diff --git a/ansible/tasks/build.yml b/ansible/tasks/build.yml index 17f5bf3..4704729 100644 --- a/ansible/tasks/build.yml +++ b/ansible/tasks/build.yml @@ -88,3 +88,19 @@ os_name == 'Fedora' ) - ( project == 'libvirt' or project == 'libvirt-cim' ) + +# Go build + +- name: '{{ project }}: Build project' + command: go build -v + args: + chdir: '{{ project }}' + when: + - project == 'libvirt-go' + +- name: '{{ project }}: Run test suite' + command: go test -tags api + args: + chdir: '{{ project }}' + when: + - project == 'libvirt-go' diff --git a/ansible/vars/libvirt-go/CentOS-7.yml b/ansible/vars/libvirt-go/CentOS-7.yml new file mode 100644 index 0000000..6208bbb --- /dev/null +++ b/ansible/vars/libvirt-go/CentOS-7.yml @@ -0,0 +1,7 @@ +--- +packages: + - golang + +extra_packages: + - libvirt-devel + - libvirt-libs diff --git a/ansible/vars/libvirt-go/Debian-8.yml b/ansible/vars/libvirt-go/Debian-8.yml new file mode 100644 index 0000000..e1de972 --- /dev/null +++ b/ansible/vars/libvirt-go/Debian-8.yml @@ -0,0 +1,7 @@ +--- +packages: + - golang + +extra_packages: + - libvirt-daemon + - libvirt-dev diff --git a/ansible/vars/libvirt-go/Debian-9.yml b/ansible/vars/libvirt-go/Debian-9.yml new file mode 100644 index 0000000..e1de972 --- /dev/null +++ b/ansible/vars/libvirt-go/Debian-9.yml @@ -0,0 +1,7 @@ +--- +packages: + - golang + +extra_packages: + - libvirt-daemon + - libvirt-dev diff --git a/ansible/vars/libvirt-go/Fedora-25.yml b/ansible/vars/libvirt-go/Fedora-25.yml new file mode 100644 index 0000000..6208bbb --- /dev/null +++ b/ansible/vars/libvirt-go/Fedora-25.yml @@ -0,0 +1,7 @@ +--- +packages: + - golang + +extra_packages: + - libvirt-devel + - libvirt-libs diff --git a/ansible/vars/libvirt-go/Fedora-26.yml b/ansible/vars/libvirt-go/Fedora-26.yml new file mode 100644 index 0000000..6208bbb --- /dev/null +++ b/ansible/vars/libvirt-go/Fedora-26.yml @@ -0,0 +1,7 @@ +--- +packages: + - golang + +extra_packages: + - libvirt-devel + - libvirt-libs diff --git a/ansible/vars/libvirt-go/Fedora-Rawhide.yml b/ansible/vars/libvirt-go/Fedora-Rawhide.yml new file mode 100644 index 0000000..6208bbb --- /dev/null +++ b/ansible/vars/libvirt-go/Fedora-Rawhide.yml @@ -0,0 +1,7 @@ +--- +packages: + - golang + +extra_packages: + - libvirt-devel + - libvirt-libs diff --git a/ansible/vars/libvirt-go/FreeBSD-11.yml b/ansible/vars/libvirt-go/FreeBSD-11.yml new file mode 100644 index 0000000..a998356 --- /dev/null +++ b/ansible/vars/libvirt-go/FreeBSD-11.yml @@ -0,0 +1,6 @@ +--- +packages: + - go + +extra_packages: + - libvirt diff --git a/ansible/vars/libvirt-go/Ubuntu-16.yml b/ansible/vars/libvirt-go/Ubuntu-16.yml new file mode 100644 index 0000000..e1de972 --- /dev/null +++ b/ansible/vars/libvirt-go/Ubuntu-16.yml @@ -0,0 +1,7 @@ +--- +packages: + - golang + +extra_packages: + - libvirt-daemon + - libvirt-dev -- 2.13.6

Signed-off-by: Andrea Bolognani <abologna@redhat.com> --- 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-16/main.yml | 1 + ansible/tasks/build.yml | 6 ++++-- ansible/vars/libvirt-go-xml/CentOS-7.yml | 3 +++ ansible/vars/libvirt-go-xml/Debian-8.yml | 3 +++ ansible/vars/libvirt-go-xml/Debian-9.yml | 3 +++ ansible/vars/libvirt-go-xml/Fedora-25.yml | 3 +++ ansible/vars/libvirt-go-xml/Fedora-26.yml | 3 +++ ansible/vars/libvirt-go-xml/Fedora-Rawhide.yml | 3 +++ ansible/vars/libvirt-go-xml/FreeBSD-11.yml | 3 +++ ansible/vars/libvirt-go-xml/Ubuntu-16.yml | 3 +++ 17 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 ansible/vars/libvirt-go-xml/CentOS-7.yml create mode 100644 ansible/vars/libvirt-go-xml/Debian-8.yml create mode 100644 ansible/vars/libvirt-go-xml/Debian-9.yml create mode 100644 ansible/vars/libvirt-go-xml/Fedora-25.yml create mode 100644 ansible/vars/libvirt-go-xml/Fedora-26.yml create mode 100644 ansible/vars/libvirt-go-xml/Fedora-Rawhide.yml create mode 100644 ansible/vars/libvirt-go-xml/FreeBSD-11.yml create mode 100644 ansible/vars/libvirt-go-xml/Ubuntu-16.yml diff --git a/ansible/host_vars/libvirt-centos-7/main.yml b/ansible/host_vars/libvirt-centos-7/main.yml index 728b6d5..fcb44ec 100644 --- a/ansible/host_vars/libvirt-centos-7/main.yml +++ b/ansible/host_vars/libvirt-centos-7/main.yml @@ -6,3 +6,4 @@ projects: - libvirt-cim - libvirt-glib - libvirt-go + - libvirt-go-xml diff --git a/ansible/host_vars/libvirt-debian-8/main.yml b/ansible/host_vars/libvirt-debian-8/main.yml index 6fa3e95..83e787e 100644 --- a/ansible/host_vars/libvirt-debian-8/main.yml +++ b/ansible/host_vars/libvirt-debian-8/main.yml @@ -5,3 +5,4 @@ projects: - libvirt - libvirt-glib - libvirt-go + - libvirt-go-xml diff --git a/ansible/host_vars/libvirt-debian-9/main.yml b/ansible/host_vars/libvirt-debian-9/main.yml index 6fa3e95..83e787e 100644 --- a/ansible/host_vars/libvirt-debian-9/main.yml +++ b/ansible/host_vars/libvirt-debian-9/main.yml @@ -5,3 +5,4 @@ projects: - libvirt - libvirt-glib - libvirt-go + - libvirt-go-xml diff --git a/ansible/host_vars/libvirt-fedora-25/main.yml b/ansible/host_vars/libvirt-fedora-25/main.yml index 728b6d5..fcb44ec 100644 --- a/ansible/host_vars/libvirt-fedora-25/main.yml +++ b/ansible/host_vars/libvirt-fedora-25/main.yml @@ -6,3 +6,4 @@ projects: - libvirt-cim - libvirt-glib - libvirt-go + - libvirt-go-xml diff --git a/ansible/host_vars/libvirt-fedora-26/main.yml b/ansible/host_vars/libvirt-fedora-26/main.yml index 728b6d5..fcb44ec 100644 --- a/ansible/host_vars/libvirt-fedora-26/main.yml +++ b/ansible/host_vars/libvirt-fedora-26/main.yml @@ -6,3 +6,4 @@ projects: - libvirt-cim - libvirt-glib - libvirt-go + - libvirt-go-xml diff --git a/ansible/host_vars/libvirt-fedora-rawhide/main.yml b/ansible/host_vars/libvirt-fedora-rawhide/main.yml index 728b6d5..fcb44ec 100644 --- a/ansible/host_vars/libvirt-fedora-rawhide/main.yml +++ b/ansible/host_vars/libvirt-fedora-rawhide/main.yml @@ -6,3 +6,4 @@ projects: - libvirt-cim - libvirt-glib - libvirt-go + - libvirt-go-xml diff --git a/ansible/host_vars/libvirt-freebsd-11/main.yml b/ansible/host_vars/libvirt-freebsd-11/main.yml index c2b059e..c8baf43 100644 --- a/ansible/host_vars/libvirt-freebsd-11/main.yml +++ b/ansible/host_vars/libvirt-freebsd-11/main.yml @@ -12,3 +12,4 @@ projects: - libvirt - libvirt-glib - libvirt-go + - libvirt-go-xml diff --git a/ansible/host_vars/libvirt-ubuntu-16/main.yml b/ansible/host_vars/libvirt-ubuntu-16/main.yml index 6fa3e95..83e787e 100644 --- a/ansible/host_vars/libvirt-ubuntu-16/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-16/main.yml @@ -5,3 +5,4 @@ projects: - libvirt - libvirt-glib - libvirt-go + - libvirt-go-xml diff --git a/ansible/tasks/build.yml b/ansible/tasks/build.yml index 4704729..c10c546 100644 --- a/ansible/tasks/build.yml +++ b/ansible/tasks/build.yml @@ -96,11 +96,13 @@ args: chdir: '{{ project }}' when: - - project == 'libvirt-go' + - ( project == 'libvirt-go' or + project == 'libvirt-go-xml' ) - name: '{{ project }}: Run test suite' command: go test -tags api args: chdir: '{{ project }}' when: - - project == 'libvirt-go' + - ( project == 'libvirt-go' or + project == 'libvirt-go-xml' ) diff --git a/ansible/vars/libvirt-go-xml/CentOS-7.yml b/ansible/vars/libvirt-go-xml/CentOS-7.yml new file mode 100644 index 0000000..cfac00e --- /dev/null +++ b/ansible/vars/libvirt-go-xml/CentOS-7.yml @@ -0,0 +1,3 @@ +--- +packages: + - golang diff --git a/ansible/vars/libvirt-go-xml/Debian-8.yml b/ansible/vars/libvirt-go-xml/Debian-8.yml new file mode 100644 index 0000000..cfac00e --- /dev/null +++ b/ansible/vars/libvirt-go-xml/Debian-8.yml @@ -0,0 +1,3 @@ +--- +packages: + - golang diff --git a/ansible/vars/libvirt-go-xml/Debian-9.yml b/ansible/vars/libvirt-go-xml/Debian-9.yml new file mode 100644 index 0000000..cfac00e --- /dev/null +++ b/ansible/vars/libvirt-go-xml/Debian-9.yml @@ -0,0 +1,3 @@ +--- +packages: + - golang diff --git a/ansible/vars/libvirt-go-xml/Fedora-25.yml b/ansible/vars/libvirt-go-xml/Fedora-25.yml new file mode 100644 index 0000000..cfac00e --- /dev/null +++ b/ansible/vars/libvirt-go-xml/Fedora-25.yml @@ -0,0 +1,3 @@ +--- +packages: + - golang diff --git a/ansible/vars/libvirt-go-xml/Fedora-26.yml b/ansible/vars/libvirt-go-xml/Fedora-26.yml new file mode 100644 index 0000000..cfac00e --- /dev/null +++ b/ansible/vars/libvirt-go-xml/Fedora-26.yml @@ -0,0 +1,3 @@ +--- +packages: + - golang diff --git a/ansible/vars/libvirt-go-xml/Fedora-Rawhide.yml b/ansible/vars/libvirt-go-xml/Fedora-Rawhide.yml new file mode 100644 index 0000000..cfac00e --- /dev/null +++ b/ansible/vars/libvirt-go-xml/Fedora-Rawhide.yml @@ -0,0 +1,3 @@ +--- +packages: + - golang diff --git a/ansible/vars/libvirt-go-xml/FreeBSD-11.yml b/ansible/vars/libvirt-go-xml/FreeBSD-11.yml new file mode 100644 index 0000000..c06b9bb --- /dev/null +++ b/ansible/vars/libvirt-go-xml/FreeBSD-11.yml @@ -0,0 +1,3 @@ +--- +packages: + - go diff --git a/ansible/vars/libvirt-go-xml/Ubuntu-16.yml b/ansible/vars/libvirt-go-xml/Ubuntu-16.yml new file mode 100644 index 0000000..cfac00e --- /dev/null +++ b/ansible/vars/libvirt-go-xml/Ubuntu-16.yml @@ -0,0 +1,3 @@ +--- +packages: + - golang -- 2.13.6

Signed-off-by: Andrea Bolognani <abologna@redhat.com> --- 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-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 | 34 +++++++++++++++++++++++ ansible/vars/libvirt-perl/CentOS-6.yml | 7 +++++ ansible/vars/libvirt-perl/CentOS-7.yml | 8 ++++++ ansible/vars/libvirt-perl/Debian-8.yml | 7 +++++ ansible/vars/libvirt-perl/Debian-9.yml | 7 +++++ ansible/vars/libvirt-perl/Fedora-25.yml | 8 ++++++ ansible/vars/libvirt-perl/Fedora-26.yml | 8 ++++++ ansible/vars/libvirt-perl/Fedora-Rawhide.yml | 8 ++++++ ansible/vars/libvirt-perl/FreeBSD-11.yml | 8 ++++++ ansible/vars/libvirt-perl/Ubuntu-14.yml | 6 ++++ ansible/vars/libvirt-perl/Ubuntu-16.yml | 7 +++++ 21 files changed, 118 insertions(+) create mode 100644 ansible/vars/libvirt-perl/CentOS-6.yml create mode 100644 ansible/vars/libvirt-perl/CentOS-7.yml create mode 100644 ansible/vars/libvirt-perl/Debian-8.yml create mode 100644 ansible/vars/libvirt-perl/Debian-9.yml create mode 100644 ansible/vars/libvirt-perl/Fedora-25.yml create mode 100644 ansible/vars/libvirt-perl/Fedora-26.yml create mode 100644 ansible/vars/libvirt-perl/Fedora-Rawhide.yml create mode 100644 ansible/vars/libvirt-perl/FreeBSD-11.yml create mode 100644 ansible/vars/libvirt-perl/Ubuntu-14.yml create mode 100644 ansible/vars/libvirt-perl/Ubuntu-16.yml diff --git a/ansible/host_vars/libvirt-centos-6/main.yml b/ansible/host_vars/libvirt-centos-6/main.yml index f6fe574..61c8376 100644 --- a/ansible/host_vars/libvirt-centos-6/main.yml +++ b/ansible/host_vars/libvirt-centos-6/main.yml @@ -3,3 +3,4 @@ projects: - base - libvirt - libvirt-cim + - libvirt-perl diff --git a/ansible/host_vars/libvirt-centos-7/main.yml b/ansible/host_vars/libvirt-centos-7/main.yml index fcb44ec..80b95f5 100644 --- a/ansible/host_vars/libvirt-centos-7/main.yml +++ b/ansible/host_vars/libvirt-centos-7/main.yml @@ -7,3 +7,4 @@ projects: - libvirt-glib - libvirt-go - libvirt-go-xml + - libvirt-perl diff --git a/ansible/host_vars/libvirt-debian-8/main.yml b/ansible/host_vars/libvirt-debian-8/main.yml index 83e787e..1c2ecb5 100644 --- a/ansible/host_vars/libvirt-debian-8/main.yml +++ b/ansible/host_vars/libvirt-debian-8/main.yml @@ -6,3 +6,4 @@ projects: - libvirt-glib - libvirt-go - libvirt-go-xml + - libvirt-perl diff --git a/ansible/host_vars/libvirt-debian-9/main.yml b/ansible/host_vars/libvirt-debian-9/main.yml index 83e787e..1c2ecb5 100644 --- a/ansible/host_vars/libvirt-debian-9/main.yml +++ b/ansible/host_vars/libvirt-debian-9/main.yml @@ -6,3 +6,4 @@ projects: - libvirt-glib - libvirt-go - libvirt-go-xml + - libvirt-perl diff --git a/ansible/host_vars/libvirt-fedora-25/main.yml b/ansible/host_vars/libvirt-fedora-25/main.yml index fcb44ec..80b95f5 100644 --- a/ansible/host_vars/libvirt-fedora-25/main.yml +++ b/ansible/host_vars/libvirt-fedora-25/main.yml @@ -7,3 +7,4 @@ projects: - libvirt-glib - libvirt-go - libvirt-go-xml + - libvirt-perl diff --git a/ansible/host_vars/libvirt-fedora-26/main.yml b/ansible/host_vars/libvirt-fedora-26/main.yml index fcb44ec..80b95f5 100644 --- a/ansible/host_vars/libvirt-fedora-26/main.yml +++ b/ansible/host_vars/libvirt-fedora-26/main.yml @@ -7,3 +7,4 @@ projects: - libvirt-glib - libvirt-go - libvirt-go-xml + - libvirt-perl diff --git a/ansible/host_vars/libvirt-fedora-rawhide/main.yml b/ansible/host_vars/libvirt-fedora-rawhide/main.yml index fcb44ec..80b95f5 100644 --- a/ansible/host_vars/libvirt-fedora-rawhide/main.yml +++ b/ansible/host_vars/libvirt-fedora-rawhide/main.yml @@ -7,3 +7,4 @@ projects: - libvirt-glib - libvirt-go - libvirt-go-xml + - libvirt-perl diff --git a/ansible/host_vars/libvirt-freebsd-11/main.yml b/ansible/host_vars/libvirt-freebsd-11/main.yml index c8baf43..68dbbb2 100644 --- a/ansible/host_vars/libvirt-freebsd-11/main.yml +++ b/ansible/host_vars/libvirt-freebsd-11/main.yml @@ -13,3 +13,4 @@ projects: - libvirt-glib - libvirt-go - libvirt-go-xml + - libvirt-perl diff --git a/ansible/host_vars/libvirt-ubuntu-14/main.yml b/ansible/host_vars/libvirt-ubuntu-14/main.yml index 7508f19..49ee186 100644 --- a/ansible/host_vars/libvirt-ubuntu-14/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-14/main.yml @@ -3,3 +3,4 @@ projects: - base - libosinfo - libvirt + - libvirt-perl diff --git a/ansible/host_vars/libvirt-ubuntu-16/main.yml b/ansible/host_vars/libvirt-ubuntu-16/main.yml index 83e787e..1c2ecb5 100644 --- a/ansible/host_vars/libvirt-ubuntu-16/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-16/main.yml @@ -6,3 +6,4 @@ projects: - libvirt-glib - libvirt-go - libvirt-go-xml + - libvirt-perl diff --git a/ansible/tasks/build.yml b/ansible/tasks/build.yml index c10c546..36fc1cc 100644 --- a/ansible/tasks/build.yml +++ b/ansible/tasks/build.yml @@ -106,3 +106,37 @@ when: - ( project == 'libvirt-go' or project == 'libvirt-go-xml' ) + +# Perl build (makemaker) + +- name: '{{ project }}: Run Makefile.PL' + command: perl Makefile.PL + args: + chdir: '{{ project }}' + when: + - project == 'libvirt-perl' + - false + +- name: '{{ project }}: Build project' + command: '{{ make }}' + args: + chdir: '{{ project }}' + when: + - project == 'libvirt-perl' + - false + +- name: '{{ project }}: Build project manifest' + command: '{{ make }} -j{{ smp }} manifest' + args: + chdir: '{{ project }}' + when: + - project == 'libvirt-perl' + - false + +- name: '{{ project }}: Run test suite' + command: '{{ make }} -j{{ smp }} test' + args: + chdir: '{{ project }}' + when: + - project == 'libvirt-perl' + - false diff --git a/ansible/vars/libvirt-perl/CentOS-6.yml b/ansible/vars/libvirt-perl/CentOS-6.yml new file mode 100644 index 0000000..446e587 --- /dev/null +++ b/ansible/vars/libvirt-perl/CentOS-6.yml @@ -0,0 +1,7 @@ +--- +packages: + - perl-ExtUtils-MakeMaker + - perl-Test-Pod + - perl-Test-Pod-Coverage + - perl-Time-HiRes + - perl-XML-XPath diff --git a/ansible/vars/libvirt-perl/CentOS-7.yml b/ansible/vars/libvirt-perl/CentOS-7.yml new file mode 100644 index 0000000..1118406 --- /dev/null +++ b/ansible/vars/libvirt-perl/CentOS-7.yml @@ -0,0 +1,8 @@ +--- +packages: + - perl-CPAN-Changes + - perl-ExtUtils-MakeMaker + - perl-Test-Pod + - perl-Test-Pod-Coverage + - perl-Time-HiRes + - perl-XML-XPath diff --git a/ansible/vars/libvirt-perl/Debian-8.yml b/ansible/vars/libvirt-perl/Debian-8.yml new file mode 100644 index 0000000..0141b85 --- /dev/null +++ b/ansible/vars/libvirt-perl/Debian-8.yml @@ -0,0 +1,7 @@ +--- +packages: + - libcpan-changes-perl + - libtest-pod-coverage-perl + - libtest-pod-perl + - libtime-hr-perl + - libxml-xpath-perl diff --git a/ansible/vars/libvirt-perl/Debian-9.yml b/ansible/vars/libvirt-perl/Debian-9.yml new file mode 100644 index 0000000..0141b85 --- /dev/null +++ b/ansible/vars/libvirt-perl/Debian-9.yml @@ -0,0 +1,7 @@ +--- +packages: + - libcpan-changes-perl + - libtest-pod-coverage-perl + - libtest-pod-perl + - libtime-hr-perl + - libxml-xpath-perl diff --git a/ansible/vars/libvirt-perl/Fedora-25.yml b/ansible/vars/libvirt-perl/Fedora-25.yml new file mode 100644 index 0000000..1118406 --- /dev/null +++ b/ansible/vars/libvirt-perl/Fedora-25.yml @@ -0,0 +1,8 @@ +--- +packages: + - perl-CPAN-Changes + - perl-ExtUtils-MakeMaker + - perl-Test-Pod + - perl-Test-Pod-Coverage + - perl-Time-HiRes + - perl-XML-XPath diff --git a/ansible/vars/libvirt-perl/Fedora-26.yml b/ansible/vars/libvirt-perl/Fedora-26.yml new file mode 100644 index 0000000..1118406 --- /dev/null +++ b/ansible/vars/libvirt-perl/Fedora-26.yml @@ -0,0 +1,8 @@ +--- +packages: + - perl-CPAN-Changes + - perl-ExtUtils-MakeMaker + - perl-Test-Pod + - perl-Test-Pod-Coverage + - perl-Time-HiRes + - perl-XML-XPath diff --git a/ansible/vars/libvirt-perl/Fedora-Rawhide.yml b/ansible/vars/libvirt-perl/Fedora-Rawhide.yml new file mode 100644 index 0000000..1118406 --- /dev/null +++ b/ansible/vars/libvirt-perl/Fedora-Rawhide.yml @@ -0,0 +1,8 @@ +--- +packages: + - perl-CPAN-Changes + - perl-ExtUtils-MakeMaker + - perl-Test-Pod + - perl-Test-Pod-Coverage + - perl-Time-HiRes + - perl-XML-XPath diff --git a/ansible/vars/libvirt-perl/FreeBSD-11.yml b/ansible/vars/libvirt-perl/FreeBSD-11.yml new file mode 100644 index 0000000..eb28197 --- /dev/null +++ b/ansible/vars/libvirt-perl/FreeBSD-11.yml @@ -0,0 +1,8 @@ +--- +packages: + - p5-CPAN-Changes + - p5-ExtUtils-MakeMaker + - p5-Test-Pod + - p5-Test-Pod-Coverage + - p5-Time-HiRes + - p5-XML-XPath diff --git a/ansible/vars/libvirt-perl/Ubuntu-14.yml b/ansible/vars/libvirt-perl/Ubuntu-14.yml new file mode 100644 index 0000000..c539617 --- /dev/null +++ b/ansible/vars/libvirt-perl/Ubuntu-14.yml @@ -0,0 +1,6 @@ +--- +packages: + - libcpan-changes-perl + - libtest-pod-coverage-perl + - libtest-pod-perl + - libxml-xpath-perl diff --git a/ansible/vars/libvirt-perl/Ubuntu-16.yml b/ansible/vars/libvirt-perl/Ubuntu-16.yml new file mode 100644 index 0000000..0141b85 --- /dev/null +++ b/ansible/vars/libvirt-perl/Ubuntu-16.yml @@ -0,0 +1,7 @@ +--- +packages: + - libcpan-changes-perl + - libtest-pod-coverage-perl + - libtest-pod-perl + - libtime-hr-perl + - libxml-xpath-perl -- 2.13.6

Signed-off-by: Andrea Bolognani <abologna@redhat.com> --- 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-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 | 16 ++++++++++++++++ ansible/vars/libvirt-python/CentOS-6.yml | 8 ++++++++ ansible/vars/libvirt-python/CentOS-7.yml | 8 ++++++++ ansible/vars/libvirt-python/Debian-8.yml | 8 ++++++++ ansible/vars/libvirt-python/Debian-9.yml | 8 ++++++++ ansible/vars/libvirt-python/Fedora-25.yml | 11 +++++++++++ ansible/vars/libvirt-python/Fedora-26.yml | 11 +++++++++++ ansible/vars/libvirt-python/Fedora-Rawhide.yml | 11 +++++++++++ ansible/vars/libvirt-python/FreeBSD-11.yml | 7 +++++++ ansible/vars/libvirt-python/Ubuntu-14.yml | 8 ++++++++ ansible/vars/libvirt-python/Ubuntu-16.yml | 8 ++++++++ 21 files changed, 114 insertions(+) create mode 100644 ansible/vars/libvirt-python/CentOS-6.yml create mode 100644 ansible/vars/libvirt-python/CentOS-7.yml create mode 100644 ansible/vars/libvirt-python/Debian-8.yml create mode 100644 ansible/vars/libvirt-python/Debian-9.yml create mode 100644 ansible/vars/libvirt-python/Fedora-25.yml create mode 100644 ansible/vars/libvirt-python/Fedora-26.yml create mode 100644 ansible/vars/libvirt-python/Fedora-Rawhide.yml create mode 100644 ansible/vars/libvirt-python/FreeBSD-11.yml create mode 100644 ansible/vars/libvirt-python/Ubuntu-14.yml create mode 100644 ansible/vars/libvirt-python/Ubuntu-16.yml diff --git a/ansible/host_vars/libvirt-centos-6/main.yml b/ansible/host_vars/libvirt-centos-6/main.yml index 61c8376..e959ecc 100644 --- a/ansible/host_vars/libvirt-centos-6/main.yml +++ b/ansible/host_vars/libvirt-centos-6/main.yml @@ -4,3 +4,4 @@ projects: - libvirt - libvirt-cim - libvirt-perl + - libvirt-python diff --git a/ansible/host_vars/libvirt-centos-7/main.yml b/ansible/host_vars/libvirt-centos-7/main.yml index 80b95f5..e4489ac 100644 --- a/ansible/host_vars/libvirt-centos-7/main.yml +++ b/ansible/host_vars/libvirt-centos-7/main.yml @@ -8,3 +8,4 @@ projects: - libvirt-go - libvirt-go-xml - libvirt-perl + - libvirt-python diff --git a/ansible/host_vars/libvirt-debian-8/main.yml b/ansible/host_vars/libvirt-debian-8/main.yml index 1c2ecb5..2525b10 100644 --- a/ansible/host_vars/libvirt-debian-8/main.yml +++ b/ansible/host_vars/libvirt-debian-8/main.yml @@ -7,3 +7,4 @@ projects: - libvirt-go - libvirt-go-xml - libvirt-perl + - libvirt-python diff --git a/ansible/host_vars/libvirt-debian-9/main.yml b/ansible/host_vars/libvirt-debian-9/main.yml index 1c2ecb5..2525b10 100644 --- a/ansible/host_vars/libvirt-debian-9/main.yml +++ b/ansible/host_vars/libvirt-debian-9/main.yml @@ -7,3 +7,4 @@ projects: - libvirt-go - libvirt-go-xml - libvirt-perl + - libvirt-python diff --git a/ansible/host_vars/libvirt-fedora-25/main.yml b/ansible/host_vars/libvirt-fedora-25/main.yml index 80b95f5..e4489ac 100644 --- a/ansible/host_vars/libvirt-fedora-25/main.yml +++ b/ansible/host_vars/libvirt-fedora-25/main.yml @@ -8,3 +8,4 @@ projects: - libvirt-go - libvirt-go-xml - libvirt-perl + - libvirt-python diff --git a/ansible/host_vars/libvirt-fedora-26/main.yml b/ansible/host_vars/libvirt-fedora-26/main.yml index 80b95f5..e4489ac 100644 --- a/ansible/host_vars/libvirt-fedora-26/main.yml +++ b/ansible/host_vars/libvirt-fedora-26/main.yml @@ -8,3 +8,4 @@ projects: - libvirt-go - libvirt-go-xml - libvirt-perl + - libvirt-python diff --git a/ansible/host_vars/libvirt-fedora-rawhide/main.yml b/ansible/host_vars/libvirt-fedora-rawhide/main.yml index 80b95f5..e4489ac 100644 --- a/ansible/host_vars/libvirt-fedora-rawhide/main.yml +++ b/ansible/host_vars/libvirt-fedora-rawhide/main.yml @@ -8,3 +8,4 @@ projects: - libvirt-go - libvirt-go-xml - libvirt-perl + - libvirt-python diff --git a/ansible/host_vars/libvirt-freebsd-11/main.yml b/ansible/host_vars/libvirt-freebsd-11/main.yml index 68dbbb2..cd3a373 100644 --- a/ansible/host_vars/libvirt-freebsd-11/main.yml +++ b/ansible/host_vars/libvirt-freebsd-11/main.yml @@ -14,3 +14,4 @@ projects: - libvirt-go - libvirt-go-xml - libvirt-perl + - libvirt-python diff --git a/ansible/host_vars/libvirt-ubuntu-14/main.yml b/ansible/host_vars/libvirt-ubuntu-14/main.yml index 49ee186..ab712b2 100644 --- a/ansible/host_vars/libvirt-ubuntu-14/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-14/main.yml @@ -4,3 +4,4 @@ projects: - libosinfo - libvirt - libvirt-perl + - libvirt-python diff --git a/ansible/host_vars/libvirt-ubuntu-16/main.yml b/ansible/host_vars/libvirt-ubuntu-16/main.yml index 1c2ecb5..2525b10 100644 --- a/ansible/host_vars/libvirt-ubuntu-16/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-16/main.yml @@ -7,3 +7,4 @@ projects: - libvirt-go - libvirt-go-xml - libvirt-perl + - libvirt-python diff --git a/ansible/tasks/build.yml b/ansible/tasks/build.yml index 36fc1cc..351b60b 100644 --- a/ansible/tasks/build.yml +++ b/ansible/tasks/build.yml @@ -140,3 +140,19 @@ when: - project == 'libvirt-perl' - false + +# Python build + +- name: '{{ project }}: Build project' + command: python2 setup.py build + args: + chdir: '{{ project }}' + when: + - project == 'libvirt-python' + +- name: '{{ project }}: Run test suite' + command: python2 setup.py test + args: + chdir: '{{ project }}' + when: + - project == 'libvirt-python' diff --git a/ansible/vars/libvirt-python/CentOS-6.yml b/ansible/vars/libvirt-python/CentOS-6.yml new file mode 100644 index 0000000..7b618c8 --- /dev/null +++ b/ansible/vars/libvirt-python/CentOS-6.yml @@ -0,0 +1,8 @@ +--- +packages: + - python-devel + - python-lxml + - python-nose + +extra_packages: + - libvirt-devel diff --git a/ansible/vars/libvirt-python/CentOS-7.yml b/ansible/vars/libvirt-python/CentOS-7.yml new file mode 100644 index 0000000..7b618c8 --- /dev/null +++ b/ansible/vars/libvirt-python/CentOS-7.yml @@ -0,0 +1,8 @@ +--- +packages: + - python-devel + - python-lxml + - python-nose + +extra_packages: + - libvirt-devel diff --git a/ansible/vars/libvirt-python/Debian-8.yml b/ansible/vars/libvirt-python/Debian-8.yml new file mode 100644 index 0000000..1dce727 --- /dev/null +++ b/ansible/vars/libvirt-python/Debian-8.yml @@ -0,0 +1,8 @@ +--- +packages: + - python-dev + - python-lxml + - python-nose + +extra_packages: + - libvirt-dev diff --git a/ansible/vars/libvirt-python/Debian-9.yml b/ansible/vars/libvirt-python/Debian-9.yml new file mode 100644 index 0000000..1dce727 --- /dev/null +++ b/ansible/vars/libvirt-python/Debian-9.yml @@ -0,0 +1,8 @@ +--- +packages: + - python-dev + - python-lxml + - python-nose + +extra_packages: + - libvirt-dev diff --git a/ansible/vars/libvirt-python/Fedora-25.yml b/ansible/vars/libvirt-python/Fedora-25.yml new file mode 100644 index 0000000..3d350ac --- /dev/null +++ b/ansible/vars/libvirt-python/Fedora-25.yml @@ -0,0 +1,11 @@ +--- +packages: + - python2-devel + - python2-lxml + - python2-nose + - python3-devel + - python3-lxml + - python3-nose + +extra_packages: + - libvirt-devel diff --git a/ansible/vars/libvirt-python/Fedora-26.yml b/ansible/vars/libvirt-python/Fedora-26.yml new file mode 100644 index 0000000..3d350ac --- /dev/null +++ b/ansible/vars/libvirt-python/Fedora-26.yml @@ -0,0 +1,11 @@ +--- +packages: + - python2-devel + - python2-lxml + - python2-nose + - python3-devel + - python3-lxml + - python3-nose + +extra_packages: + - libvirt-devel diff --git a/ansible/vars/libvirt-python/Fedora-Rawhide.yml b/ansible/vars/libvirt-python/Fedora-Rawhide.yml new file mode 100644 index 0000000..3d350ac --- /dev/null +++ b/ansible/vars/libvirt-python/Fedora-Rawhide.yml @@ -0,0 +1,11 @@ +--- +packages: + - python2-devel + - python2-lxml + - python2-nose + - python3-devel + - python3-lxml + - python3-nose + +extra_packages: + - libvirt-devel diff --git a/ansible/vars/libvirt-python/FreeBSD-11.yml b/ansible/vars/libvirt-python/FreeBSD-11.yml new file mode 100644 index 0000000..4d63637 --- /dev/null +++ b/ansible/vars/libvirt-python/FreeBSD-11.yml @@ -0,0 +1,7 @@ +--- +packages: + - py27-lxml + - py27-nose + +extra_packages: + - libvirt diff --git a/ansible/vars/libvirt-python/Ubuntu-14.yml b/ansible/vars/libvirt-python/Ubuntu-14.yml new file mode 100644 index 0000000..1dce727 --- /dev/null +++ b/ansible/vars/libvirt-python/Ubuntu-14.yml @@ -0,0 +1,8 @@ +--- +packages: + - python-dev + - python-lxml + - python-nose + +extra_packages: + - libvirt-dev diff --git a/ansible/vars/libvirt-python/Ubuntu-16.yml b/ansible/vars/libvirt-python/Ubuntu-16.yml new file mode 100644 index 0000000..1dce727 --- /dev/null +++ b/ansible/vars/libvirt-python/Ubuntu-16.yml @@ -0,0 +1,8 @@ +--- +packages: + - python-dev + - python-lxml + - python-nose + +extra_packages: + - libvirt-dev -- 2.13.6

Signed-off-by: Andrea Bolognani <abologna@redhat.com> --- ansible/host_vars/libvirt-centos-7/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-ubuntu-16/main.yml | 1 + ansible/tasks/build.yml | 12 +++++++---- ansible/vars/libvirt-sandbox/CentOS-7.yml | 25 ++++++++++++++++++++++ ansible/vars/libvirt-sandbox/Debian-9.yml | 22 +++++++++++++++++++ ansible/vars/libvirt-sandbox/Fedora-25.yml | 26 +++++++++++++++++++++++ ansible/vars/libvirt-sandbox/Fedora-26.yml | 26 +++++++++++++++++++++++ ansible/vars/libvirt-sandbox/Fedora-Rawhide.yml | 26 +++++++++++++++++++++++ ansible/vars/libvirt-sandbox/Ubuntu-16.yml | 22 +++++++++++++++++++ 13 files changed, 161 insertions(+), 4 deletions(-) create mode 100644 ansible/vars/libvirt-sandbox/CentOS-7.yml create mode 100644 ansible/vars/libvirt-sandbox/Debian-9.yml create mode 100644 ansible/vars/libvirt-sandbox/Fedora-25.yml create mode 100644 ansible/vars/libvirt-sandbox/Fedora-26.yml create mode 100644 ansible/vars/libvirt-sandbox/Fedora-Rawhide.yml create mode 100644 ansible/vars/libvirt-sandbox/Ubuntu-16.yml diff --git a/ansible/host_vars/libvirt-centos-7/main.yml b/ansible/host_vars/libvirt-centos-7/main.yml index e4489ac..39707f6 100644 --- a/ansible/host_vars/libvirt-centos-7/main.yml +++ b/ansible/host_vars/libvirt-centos-7/main.yml @@ -9,3 +9,4 @@ projects: - libvirt-go-xml - libvirt-perl - libvirt-python + - libvirt-sandbox diff --git a/ansible/host_vars/libvirt-debian-9/main.yml b/ansible/host_vars/libvirt-debian-9/main.yml index 2525b10..929ab1f 100644 --- a/ansible/host_vars/libvirt-debian-9/main.yml +++ b/ansible/host_vars/libvirt-debian-9/main.yml @@ -8,3 +8,4 @@ projects: - libvirt-go-xml - libvirt-perl - libvirt-python + - libvirt-sandbox diff --git a/ansible/host_vars/libvirt-fedora-25/main.yml b/ansible/host_vars/libvirt-fedora-25/main.yml index e4489ac..39707f6 100644 --- a/ansible/host_vars/libvirt-fedora-25/main.yml +++ b/ansible/host_vars/libvirt-fedora-25/main.yml @@ -9,3 +9,4 @@ projects: - libvirt-go-xml - libvirt-perl - libvirt-python + - libvirt-sandbox diff --git a/ansible/host_vars/libvirt-fedora-26/main.yml b/ansible/host_vars/libvirt-fedora-26/main.yml index e4489ac..39707f6 100644 --- a/ansible/host_vars/libvirt-fedora-26/main.yml +++ b/ansible/host_vars/libvirt-fedora-26/main.yml @@ -9,3 +9,4 @@ projects: - libvirt-go-xml - libvirt-perl - libvirt-python + - libvirt-sandbox diff --git a/ansible/host_vars/libvirt-fedora-rawhide/main.yml b/ansible/host_vars/libvirt-fedora-rawhide/main.yml index e4489ac..39707f6 100644 --- a/ansible/host_vars/libvirt-fedora-rawhide/main.yml +++ b/ansible/host_vars/libvirt-fedora-rawhide/main.yml @@ -9,3 +9,4 @@ projects: - libvirt-go-xml - libvirt-perl - libvirt-python + - libvirt-sandbox diff --git a/ansible/host_vars/libvirt-ubuntu-16/main.yml b/ansible/host_vars/libvirt-ubuntu-16/main.yml index 2525b10..929ab1f 100644 --- a/ansible/host_vars/libvirt-ubuntu-16/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-16/main.yml @@ -8,3 +8,4 @@ projects: - libvirt-go-xml - libvirt-perl - libvirt-python + - libvirt-sandbox diff --git a/ansible/tasks/build.yml b/ansible/tasks/build.yml index 351b60b..a2f0d81 100644 --- a/ansible/tasks/build.yml +++ b/ansible/tasks/build.yml @@ -40,7 +40,8 @@ - ( project == 'libosinfo' or project == 'libvirt' or project == 'libvirt-cim' or - project == 'libvirt-glib' ) + project == 'libvirt-glib' or + project == 'libvirt-sandbox' ) - name: '{{ project }}: Run configure' command: './configure {{ configure_options }}' @@ -57,7 +58,8 @@ - ( project == 'libosinfo' or project == 'libvirt' or project == 'libvirt-cim' or - project == 'libvirt-glib' ) + project == 'libvirt-glib' or + project == 'libvirt-sandbox' ) - name: '{{ project }}: Run sanity checks' command: '{{ make }} -j{{ smp }} syntax-check' @@ -67,7 +69,8 @@ - ( project == 'libosinfo' or ( project == 'libvirt' and os_name != 'FreeBSD' ) or - project == 'libvirt-glib' ) + project == 'libvirt-glib' or + project == 'libvirt-sandbox' ) - name: '{{ project }}: Run test suite' command: '{{ make }} -j{{ smp }} check' @@ -77,7 +80,8 @@ - ( ( project == 'libvirt' and os_name != 'FreeBSD' ) or project == 'libvirt-cim' or - project == 'libvirt-glib' ) + project == 'libvirt-glib' or + project == 'libvirt-sandbox' ) - name: '{{ project }}: Build RPM package' command: '{{ make }} -j{{ smp }} rpm' diff --git a/ansible/vars/libvirt-sandbox/CentOS-7.yml b/ansible/vars/libvirt-sandbox/CentOS-7.yml new file mode 100644 index 0000000..9abcc35 --- /dev/null +++ b/ansible/vars/libvirt-sandbox/CentOS-7.yml @@ -0,0 +1,25 @@ +--- +packages: + - glib2-devel + - glibc-static + - gobject-introspection-devel + - gtk-doc + - intltool + - libcap-ng-devel + - libselinux-devel + - libxml2-devel + - xz-devel + - zlib-devel + - zlib-static + +extra_packages: + - libvirt-devel + - libvirt-glib-devel + - libvirt-gobject-devel + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + with_capng: --with-capng + with_lzma: --without-lzma # not available + with_zlib: --with-zlib diff --git a/ansible/vars/libvirt-sandbox/Debian-9.yml b/ansible/vars/libvirt-sandbox/Debian-9.yml new file mode 100644 index 0000000..c6e69fc --- /dev/null +++ b/ansible/vars/libvirt-sandbox/Debian-9.yml @@ -0,0 +1,22 @@ +--- +packages: + - gtk-doc-tools + - intltool + - libcap-ng-dev + - libgirepository1.0-dev + - libglib2.0-dev + - liblzma-dev + - libselinux1-dev + - libxml2-dev + - zlib1g-dev + +extra_packages: + - libvirt-dev + - libvirt-glib-1.0-dev + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + with_capng: --with-capng + with_lzma: --with-lzma + with_zlib: --with-zlib diff --git a/ansible/vars/libvirt-sandbox/Fedora-25.yml b/ansible/vars/libvirt-sandbox/Fedora-25.yml new file mode 100644 index 0000000..90ba352 --- /dev/null +++ b/ansible/vars/libvirt-sandbox/Fedora-25.yml @@ -0,0 +1,26 @@ +--- +packages: + - glib2-devel + - glibc-static + - gobject-introspection-devel + - gtk-doc + - intltool + - libcap-ng-devel + - libselinux-devel + - libxml2-devel + - xz-devel + - xz-static + - zlib-devel + - zlib-static + +extra_packages: + - libvirt-devel + - libvirt-glib-devel + - libvirt-gobject-devel + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + with_capng: --with-capng + with_lzma: --with-lzma + with_zlib: --with-zlib diff --git a/ansible/vars/libvirt-sandbox/Fedora-26.yml b/ansible/vars/libvirt-sandbox/Fedora-26.yml new file mode 100644 index 0000000..90ba352 --- /dev/null +++ b/ansible/vars/libvirt-sandbox/Fedora-26.yml @@ -0,0 +1,26 @@ +--- +packages: + - glib2-devel + - glibc-static + - gobject-introspection-devel + - gtk-doc + - intltool + - libcap-ng-devel + - libselinux-devel + - libxml2-devel + - xz-devel + - xz-static + - zlib-devel + - zlib-static + +extra_packages: + - libvirt-devel + - libvirt-glib-devel + - libvirt-gobject-devel + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + with_capng: --with-capng + with_lzma: --with-lzma + with_zlib: --with-zlib diff --git a/ansible/vars/libvirt-sandbox/Fedora-Rawhide.yml b/ansible/vars/libvirt-sandbox/Fedora-Rawhide.yml new file mode 100644 index 0000000..90ba352 --- /dev/null +++ b/ansible/vars/libvirt-sandbox/Fedora-Rawhide.yml @@ -0,0 +1,26 @@ +--- +packages: + - glib2-devel + - glibc-static + - gobject-introspection-devel + - gtk-doc + - intltool + - libcap-ng-devel + - libselinux-devel + - libxml2-devel + - xz-devel + - xz-static + - zlib-devel + - zlib-static + +extra_packages: + - libvirt-devel + - libvirt-glib-devel + - libvirt-gobject-devel + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + with_capng: --with-capng + with_lzma: --with-lzma + with_zlib: --with-zlib diff --git a/ansible/vars/libvirt-sandbox/Ubuntu-16.yml b/ansible/vars/libvirt-sandbox/Ubuntu-16.yml new file mode 100644 index 0000000..c6e69fc --- /dev/null +++ b/ansible/vars/libvirt-sandbox/Ubuntu-16.yml @@ -0,0 +1,22 @@ +--- +packages: + - gtk-doc-tools + - intltool + - libcap-ng-dev + - libgirepository1.0-dev + - libglib2.0-dev + - liblzma-dev + - libselinux1-dev + - libxml2-dev + - zlib1g-dev + +extra_packages: + - libvirt-dev + - libvirt-glib-1.0-dev + +features: + enable_gtk_doc: --enable-gtk-doc + enable_introspection: --enable-introspection + with_capng: --with-capng + with_lzma: --with-lzma + with_zlib: --with-zlib -- 2.13.6

Signed-off-by: Andrea Bolognani <abologna@redhat.com> --- 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 | 30 +++++++++++++++++++++++ ansible/vars/libvirt-tck/Debian-8.yml | 22 +++++++++++++++++ ansible/vars/libvirt-tck/Debian-9.yml | 22 +++++++++++++++++ ansible/vars/libvirt-tck/Fedora-25.yml | 22 +++++++++++++++++ ansible/vars/libvirt-tck/Fedora-26.yml | 22 +++++++++++++++++ ansible/vars/libvirt-tck/Fedora-Rawhide.yml | 22 +++++++++++++++++ ansible/vars/libvirt-tck/FreeBSD-11.yml | 20 +++++++++++++++ ansible/vars/libvirt-tck/Ubuntu-14.yml | 21 ++++++++++++++++ ansible/vars/libvirt-tck/Ubuntu-16.yml | 22 +++++++++++++++++ 17 files changed, 211 insertions(+) create mode 100644 ansible/vars/libvirt-tck/Debian-8.yml create mode 100644 ansible/vars/libvirt-tck/Debian-9.yml create mode 100644 ansible/vars/libvirt-tck/Fedora-25.yml create mode 100644 ansible/vars/libvirt-tck/Fedora-26.yml create mode 100644 ansible/vars/libvirt-tck/Fedora-Rawhide.yml create mode 100644 ansible/vars/libvirt-tck/FreeBSD-11.yml create mode 100644 ansible/vars/libvirt-tck/Ubuntu-14.yml create mode 100644 ansible/vars/libvirt-tck/Ubuntu-16.yml diff --git a/ansible/host_vars/libvirt-debian-8/main.yml b/ansible/host_vars/libvirt-debian-8/main.yml index 2525b10..a9e2160 100644 --- a/ansible/host_vars/libvirt-debian-8/main.yml +++ b/ansible/host_vars/libvirt-debian-8/main.yml @@ -8,3 +8,4 @@ projects: - libvirt-go-xml - libvirt-perl - libvirt-python + - libvirt-tck diff --git a/ansible/host_vars/libvirt-debian-9/main.yml b/ansible/host_vars/libvirt-debian-9/main.yml index 929ab1f..eb79aeb 100644 --- a/ansible/host_vars/libvirt-debian-9/main.yml +++ b/ansible/host_vars/libvirt-debian-9/main.yml @@ -9,3 +9,4 @@ projects: - libvirt-perl - libvirt-python - libvirt-sandbox + - libvirt-tck diff --git a/ansible/host_vars/libvirt-fedora-25/main.yml b/ansible/host_vars/libvirt-fedora-25/main.yml index 39707f6..7a42e2b 100644 --- a/ansible/host_vars/libvirt-fedora-25/main.yml +++ b/ansible/host_vars/libvirt-fedora-25/main.yml @@ -10,3 +10,4 @@ projects: - libvirt-perl - libvirt-python - libvirt-sandbox + - libvirt-tck diff --git a/ansible/host_vars/libvirt-fedora-26/main.yml b/ansible/host_vars/libvirt-fedora-26/main.yml index 39707f6..7a42e2b 100644 --- a/ansible/host_vars/libvirt-fedora-26/main.yml +++ b/ansible/host_vars/libvirt-fedora-26/main.yml @@ -10,3 +10,4 @@ projects: - libvirt-perl - libvirt-python - libvirt-sandbox + - libvirt-tck diff --git a/ansible/host_vars/libvirt-fedora-rawhide/main.yml b/ansible/host_vars/libvirt-fedora-rawhide/main.yml index 39707f6..7a42e2b 100644 --- a/ansible/host_vars/libvirt-fedora-rawhide/main.yml +++ b/ansible/host_vars/libvirt-fedora-rawhide/main.yml @@ -10,3 +10,4 @@ projects: - libvirt-perl - libvirt-python - libvirt-sandbox + - libvirt-tck diff --git a/ansible/host_vars/libvirt-freebsd-11/main.yml b/ansible/host_vars/libvirt-freebsd-11/main.yml index cd3a373..868a0db 100644 --- a/ansible/host_vars/libvirt-freebsd-11/main.yml +++ b/ansible/host_vars/libvirt-freebsd-11/main.yml @@ -15,3 +15,4 @@ projects: - libvirt-go-xml - libvirt-perl - libvirt-python + - libvirt-tck diff --git a/ansible/host_vars/libvirt-ubuntu-14/main.yml b/ansible/host_vars/libvirt-ubuntu-14/main.yml index ab712b2..809c9fd 100644 --- a/ansible/host_vars/libvirt-ubuntu-14/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-14/main.yml @@ -5,3 +5,4 @@ projects: - libvirt - libvirt-perl - libvirt-python + - libvirt-tck diff --git a/ansible/host_vars/libvirt-ubuntu-16/main.yml b/ansible/host_vars/libvirt-ubuntu-16/main.yml index 929ab1f..eb79aeb 100644 --- a/ansible/host_vars/libvirt-ubuntu-16/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-16/main.yml @@ -9,3 +9,4 @@ projects: - libvirt-perl - libvirt-python - libvirt-sandbox + - libvirt-tck diff --git a/ansible/tasks/build.yml b/ansible/tasks/build.yml index a2f0d81..eb29531 100644 --- a/ansible/tasks/build.yml +++ b/ansible/tasks/build.yml @@ -145,6 +145,36 @@ - project == 'libvirt-perl' - false +# Perl build (module-build) + +- name: '{{ project }}: Run Build.PL' + command: perl Build.PL + args: + chdir: '{{ project }}' + when: + - project == 'libvirt-tck' + +- name: '{{ project }}: Build project' + command: perl Build + args: + chdir: '{{ project }}' + when: + - project == 'libvirt-tck' + +- name: '{{ project }}: Build project manifest' + command: perl Build manifest + args: + chdir: '{{ project }}' + when: + - project == 'libvirt-tck' + +- name: '{{ project }}: Run test suite' + command: perl Build test + args: + chdir: '{{ project }}' + when: + - project == 'libvirt-tck' + # Python build - name: '{{ project }}: Build project' diff --git a/ansible/vars/libvirt-tck/Debian-8.yml b/ansible/vars/libvirt-tck/Debian-8.yml new file mode 100644 index 0000000..a095bf4 --- /dev/null +++ b/ansible/vars/libvirt-tck/Debian-8.yml @@ -0,0 +1,22 @@ +--- +packages: + - libaccessors-perl + - libconfig-record-perl + - libdigest-perl + - libdigest-perl-md5-perl + - libfile-slurp-perl + - libio-compress-perl + - libio-string-perl + - libmodule-build-perl + - libsub-uplevel-perl + - libsys-virt-perl + - libtap-formatter-html-perl + - libtap-formatter-junit-perl + - libtap-harness-archive-perl + - libtest-exception-perl + - libtest-lwp-useragent-perl + - libtest-pod-coverage-perl + - libtest-pod-perl + - libxml-twig-perl + - libxml-writer-perl + - libxml-xpath-perl diff --git a/ansible/vars/libvirt-tck/Debian-9.yml b/ansible/vars/libvirt-tck/Debian-9.yml new file mode 100644 index 0000000..a095bf4 --- /dev/null +++ b/ansible/vars/libvirt-tck/Debian-9.yml @@ -0,0 +1,22 @@ +--- +packages: + - libaccessors-perl + - libconfig-record-perl + - libdigest-perl + - libdigest-perl-md5-perl + - libfile-slurp-perl + - libio-compress-perl + - libio-string-perl + - libmodule-build-perl + - libsub-uplevel-perl + - libsys-virt-perl + - libtap-formatter-html-perl + - libtap-formatter-junit-perl + - libtap-harness-archive-perl + - libtest-exception-perl + - libtest-lwp-useragent-perl + - libtest-pod-coverage-perl + - libtest-pod-perl + - libxml-twig-perl + - libxml-writer-perl + - libxml-xpath-perl diff --git a/ansible/vars/libvirt-tck/Fedora-25.yml b/ansible/vars/libvirt-tck/Fedora-25.yml new file mode 100644 index 0000000..cd6b1d6 --- /dev/null +++ b/ansible/vars/libvirt-tck/Fedora-25.yml @@ -0,0 +1,22 @@ +--- +packages: + - perl-Config-Record + - perl-Digest + - perl-Digest-MD5 + - perl-File-Slurp + - perl-IO-Compress-Bzip2 + - perl-IO-String + - perl-Module-Build + - perl-Sub-Uplevel + - perl-Sys-Virt + - perl-TAP-Formatter-HTML + - perl-TAP-Formatter-JUnit + - perl-TAP-Harness-Archive + - perl-Test-Exception + - perl-Test-LWP-UserAgent + - perl-Test-Pod + - perl-Test-Pod-Coverage + - perl-XML-Twig + - perl-XML-Writer + - perl-XML-XPath + - perl-accessors diff --git a/ansible/vars/libvirt-tck/Fedora-26.yml b/ansible/vars/libvirt-tck/Fedora-26.yml new file mode 100644 index 0000000..cd6b1d6 --- /dev/null +++ b/ansible/vars/libvirt-tck/Fedora-26.yml @@ -0,0 +1,22 @@ +--- +packages: + - perl-Config-Record + - perl-Digest + - perl-Digest-MD5 + - perl-File-Slurp + - perl-IO-Compress-Bzip2 + - perl-IO-String + - perl-Module-Build + - perl-Sub-Uplevel + - perl-Sys-Virt + - perl-TAP-Formatter-HTML + - perl-TAP-Formatter-JUnit + - perl-TAP-Harness-Archive + - perl-Test-Exception + - perl-Test-LWP-UserAgent + - perl-Test-Pod + - perl-Test-Pod-Coverage + - perl-XML-Twig + - perl-XML-Writer + - perl-XML-XPath + - perl-accessors diff --git a/ansible/vars/libvirt-tck/Fedora-Rawhide.yml b/ansible/vars/libvirt-tck/Fedora-Rawhide.yml new file mode 100644 index 0000000..cd6b1d6 --- /dev/null +++ b/ansible/vars/libvirt-tck/Fedora-Rawhide.yml @@ -0,0 +1,22 @@ +--- +packages: + - perl-Config-Record + - perl-Digest + - perl-Digest-MD5 + - perl-File-Slurp + - perl-IO-Compress-Bzip2 + - perl-IO-String + - perl-Module-Build + - perl-Sub-Uplevel + - perl-Sys-Virt + - perl-TAP-Formatter-HTML + - perl-TAP-Formatter-JUnit + - perl-TAP-Harness-Archive + - perl-Test-Exception + - perl-Test-LWP-UserAgent + - perl-Test-Pod + - perl-Test-Pod-Coverage + - perl-XML-Twig + - perl-XML-Writer + - perl-XML-XPath + - perl-accessors diff --git a/ansible/vars/libvirt-tck/FreeBSD-11.yml b/ansible/vars/libvirt-tck/FreeBSD-11.yml new file mode 100644 index 0000000..e2b38c3 --- /dev/null +++ b/ansible/vars/libvirt-tck/FreeBSD-11.yml @@ -0,0 +1,20 @@ +--- +packages: + - p5-Config-Record + - p5-Digest + - p5-Digest-MD5 + - p5-File-Slurp + - p5-IO-Compress + - p5-IO-String + - p5-Module-Build + - p5-Sub-Uplevel + - p5-Sys-Virt + - p5-TAP-Formatter-JUnit + - p5-Test-Exception + - p5-Test-LWP-UserAgent + - p5-Test-Pod + - p5-Test-Pod-Coverage + - p5-XML-Twig + - p5-XML-Writer + - p5-XML-XPath + - p5-accessors diff --git a/ansible/vars/libvirt-tck/Ubuntu-14.yml b/ansible/vars/libvirt-tck/Ubuntu-14.yml new file mode 100644 index 0000000..40fe55f --- /dev/null +++ b/ansible/vars/libvirt-tck/Ubuntu-14.yml @@ -0,0 +1,21 @@ +--- +packages: + - libaccessors-perl + - libconfig-record-perl + - libdigest-perl + - libfile-slurp-perl + - libio-compress-perl + - libio-string-perl + - libmodule-build-perl + - libsub-uplevel-perl + - libsys-virt-perl + - libtap-formatter-html-perl + - libtap-formatter-junit-perl + - libtap-harness-archive-perl + - libtest-exception-perl + - libtest-lwp-useragent-perl + - libtest-pod-coverage-perl + - libtest-pod-perl + - libxml-twig-perl + - libxml-writer-perl + - libxml-xpath-perl diff --git a/ansible/vars/libvirt-tck/Ubuntu-16.yml b/ansible/vars/libvirt-tck/Ubuntu-16.yml new file mode 100644 index 0000000..a095bf4 --- /dev/null +++ b/ansible/vars/libvirt-tck/Ubuntu-16.yml @@ -0,0 +1,22 @@ +--- +packages: + - libaccessors-perl + - libconfig-record-perl + - libdigest-perl + - libdigest-perl-md5-perl + - libfile-slurp-perl + - libio-compress-perl + - libio-string-perl + - libmodule-build-perl + - libsub-uplevel-perl + - libsys-virt-perl + - libtap-formatter-html-perl + - libtap-formatter-junit-perl + - libtap-harness-archive-perl + - libtest-exception-perl + - libtest-lwp-useragent-perl + - libtest-pod-coverage-perl + - libtest-pod-perl + - libxml-twig-perl + - libxml-writer-perl + - libxml-xpath-perl -- 2.13.6

Signed-off-by: Andrea Bolognani <abologna@redhat.com> --- ansible/host_vars/libvirt-centos-7/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/tasks/build.yml | 9 ++++++--- ansible/vars/osinfo-db/CentOS-7.yml | 7 +++++++ ansible/vars/osinfo-db/Debian-9.yml | 7 +++++++ ansible/vars/osinfo-db/Fedora-25.yml | 7 +++++++ ansible/vars/osinfo-db/Fedora-26.yml | 7 +++++++ ansible/vars/osinfo-db/Fedora-Rawhide.yml | 7 +++++++ ansible/vars/osinfo-db/FreeBSD-11.yml | 7 +++++++ 13 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 ansible/vars/osinfo-db/CentOS-7.yml create mode 100644 ansible/vars/osinfo-db/Debian-9.yml create mode 100644 ansible/vars/osinfo-db/Fedora-25.yml create mode 100644 ansible/vars/osinfo-db/Fedora-26.yml create mode 100644 ansible/vars/osinfo-db/Fedora-Rawhide.yml create mode 100644 ansible/vars/osinfo-db/FreeBSD-11.yml diff --git a/ansible/host_vars/libvirt-centos-7/main.yml b/ansible/host_vars/libvirt-centos-7/main.yml index 39707f6..bfe7649 100644 --- a/ansible/host_vars/libvirt-centos-7/main.yml +++ b/ansible/host_vars/libvirt-centos-7/main.yml @@ -10,3 +10,4 @@ projects: - libvirt-perl - libvirt-python - libvirt-sandbox + - osinfo-db diff --git a/ansible/host_vars/libvirt-debian-9/main.yml b/ansible/host_vars/libvirt-debian-9/main.yml index eb79aeb..08e35d3 100644 --- a/ansible/host_vars/libvirt-debian-9/main.yml +++ b/ansible/host_vars/libvirt-debian-9/main.yml @@ -10,3 +10,4 @@ projects: - libvirt-python - libvirt-sandbox - libvirt-tck + - osinfo-db diff --git a/ansible/host_vars/libvirt-fedora-25/main.yml b/ansible/host_vars/libvirt-fedora-25/main.yml index 7a42e2b..88de6e5 100644 --- a/ansible/host_vars/libvirt-fedora-25/main.yml +++ b/ansible/host_vars/libvirt-fedora-25/main.yml @@ -11,3 +11,4 @@ projects: - libvirt-python - libvirt-sandbox - libvirt-tck + - osinfo-db diff --git a/ansible/host_vars/libvirt-fedora-26/main.yml b/ansible/host_vars/libvirt-fedora-26/main.yml index 7a42e2b..88de6e5 100644 --- a/ansible/host_vars/libvirt-fedora-26/main.yml +++ b/ansible/host_vars/libvirt-fedora-26/main.yml @@ -11,3 +11,4 @@ projects: - libvirt-python - libvirt-sandbox - libvirt-tck + - osinfo-db diff --git a/ansible/host_vars/libvirt-fedora-rawhide/main.yml b/ansible/host_vars/libvirt-fedora-rawhide/main.yml index 7a42e2b..88de6e5 100644 --- a/ansible/host_vars/libvirt-fedora-rawhide/main.yml +++ b/ansible/host_vars/libvirt-fedora-rawhide/main.yml @@ -11,3 +11,4 @@ projects: - libvirt-python - libvirt-sandbox - libvirt-tck + - osinfo-db diff --git a/ansible/host_vars/libvirt-freebsd-11/main.yml b/ansible/host_vars/libvirt-freebsd-11/main.yml index 868a0db..dd5302d 100644 --- a/ansible/host_vars/libvirt-freebsd-11/main.yml +++ b/ansible/host_vars/libvirt-freebsd-11/main.yml @@ -16,3 +16,4 @@ projects: - libvirt-perl - libvirt-python - libvirt-tck + - osinfo-db diff --git a/ansible/tasks/build.yml b/ansible/tasks/build.yml index eb29531..48e8a98 100644 --- a/ansible/tasks/build.yml +++ b/ansible/tasks/build.yml @@ -59,7 +59,8 @@ project == 'libvirt' or project == 'libvirt-cim' or project == 'libvirt-glib' or - project == 'libvirt-sandbox' ) + project == 'libvirt-sandbox' or + project == 'osinfo-db' ) - name: '{{ project }}: Run sanity checks' command: '{{ make }} -j{{ smp }} syntax-check' @@ -81,7 +82,8 @@ os_name != 'FreeBSD' ) or project == 'libvirt-cim' or project == 'libvirt-glib' or - project == 'libvirt-sandbox' ) + project == 'libvirt-sandbox' or + project == 'osinfo-db' ) - name: '{{ project }}: Build RPM package' command: '{{ make }} -j{{ smp }} rpm' @@ -91,7 +93,8 @@ - ( os_name == 'CentOS' or os_name == 'Fedora' ) - ( project == 'libvirt' or - project == 'libvirt-cim' ) + project == 'libvirt-cim' or + project == 'osinfo-db' ) # Go build diff --git a/ansible/vars/osinfo-db/CentOS-7.yml b/ansible/vars/osinfo-db/CentOS-7.yml new file mode 100644 index 0000000..c41d877 --- /dev/null +++ b/ansible/vars/osinfo-db/CentOS-7.yml @@ -0,0 +1,7 @@ +--- +packages: + - intltool + - libxml2 + +extra_packages: + - osinfo-db-tools diff --git a/ansible/vars/osinfo-db/Debian-9.yml b/ansible/vars/osinfo-db/Debian-9.yml new file mode 100644 index 0000000..c21dc6e --- /dev/null +++ b/ansible/vars/osinfo-db/Debian-9.yml @@ -0,0 +1,7 @@ +--- +packages: + - intltool + - libxml2-utils + +extra_packages: + - osinfo-db-tools diff --git a/ansible/vars/osinfo-db/Fedora-25.yml b/ansible/vars/osinfo-db/Fedora-25.yml new file mode 100644 index 0000000..c41d877 --- /dev/null +++ b/ansible/vars/osinfo-db/Fedora-25.yml @@ -0,0 +1,7 @@ +--- +packages: + - intltool + - libxml2 + +extra_packages: + - osinfo-db-tools diff --git a/ansible/vars/osinfo-db/Fedora-26.yml b/ansible/vars/osinfo-db/Fedora-26.yml new file mode 100644 index 0000000..c41d877 --- /dev/null +++ b/ansible/vars/osinfo-db/Fedora-26.yml @@ -0,0 +1,7 @@ +--- +packages: + - intltool + - libxml2 + +extra_packages: + - osinfo-db-tools diff --git a/ansible/vars/osinfo-db/Fedora-Rawhide.yml b/ansible/vars/osinfo-db/Fedora-Rawhide.yml new file mode 100644 index 0000000..c41d877 --- /dev/null +++ b/ansible/vars/osinfo-db/Fedora-Rawhide.yml @@ -0,0 +1,7 @@ +--- +packages: + - intltool + - libxml2 + +extra_packages: + - osinfo-db-tools diff --git a/ansible/vars/osinfo-db/FreeBSD-11.yml b/ansible/vars/osinfo-db/FreeBSD-11.yml new file mode 100644 index 0000000..c41d877 --- /dev/null +++ b/ansible/vars/osinfo-db/FreeBSD-11.yml @@ -0,0 +1,7 @@ +--- +packages: + - intltool + - libxml2 + +extra_packages: + - osinfo-db-tools -- 2.13.6

Signed-off-by: Andrea Bolognani <abologna@redhat.com> --- 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 | 12 ++++++++---- ansible/vars/osinfo-db-tools/CentOS-7.yml | 8 ++++++++ ansible/vars/osinfo-db-tools/Debian-8.yml | 8 ++++++++ ansible/vars/osinfo-db-tools/Debian-9.yml | 8 ++++++++ ansible/vars/osinfo-db-tools/Fedora-25.yml | 8 ++++++++ ansible/vars/osinfo-db-tools/Fedora-26.yml | 8 ++++++++ ansible/vars/osinfo-db-tools/Fedora-Rawhide.yml | 8 ++++++++ ansible/vars/osinfo-db-tools/FreeBSD-11.yml | 8 ++++++++ ansible/vars/osinfo-db-tools/Ubuntu-14.yml | 8 ++++++++ ansible/vars/osinfo-db-tools/Ubuntu-16.yml | 8 ++++++++ 19 files changed, 89 insertions(+), 4 deletions(-) create mode 100644 ansible/vars/osinfo-db-tools/CentOS-7.yml create mode 100644 ansible/vars/osinfo-db-tools/Debian-8.yml create mode 100644 ansible/vars/osinfo-db-tools/Debian-9.yml create mode 100644 ansible/vars/osinfo-db-tools/Fedora-25.yml create mode 100644 ansible/vars/osinfo-db-tools/Fedora-26.yml create mode 100644 ansible/vars/osinfo-db-tools/Fedora-Rawhide.yml create mode 100644 ansible/vars/osinfo-db-tools/FreeBSD-11.yml create mode 100644 ansible/vars/osinfo-db-tools/Ubuntu-14.yml create mode 100644 ansible/vars/osinfo-db-tools/Ubuntu-16.yml diff --git a/ansible/host_vars/libvirt-centos-7/main.yml b/ansible/host_vars/libvirt-centos-7/main.yml index bfe7649..eaaa1cd 100644 --- a/ansible/host_vars/libvirt-centos-7/main.yml +++ b/ansible/host_vars/libvirt-centos-7/main.yml @@ -11,3 +11,4 @@ projects: - libvirt-python - libvirt-sandbox - osinfo-db + - osinfo-db-tools diff --git a/ansible/host_vars/libvirt-debian-8/main.yml b/ansible/host_vars/libvirt-debian-8/main.yml index a9e2160..4199dfd 100644 --- a/ansible/host_vars/libvirt-debian-8/main.yml +++ b/ansible/host_vars/libvirt-debian-8/main.yml @@ -9,3 +9,4 @@ projects: - libvirt-perl - libvirt-python - libvirt-tck + - osinfo-db-tools diff --git a/ansible/host_vars/libvirt-debian-9/main.yml b/ansible/host_vars/libvirt-debian-9/main.yml index 08e35d3..82b7cb8 100644 --- a/ansible/host_vars/libvirt-debian-9/main.yml +++ b/ansible/host_vars/libvirt-debian-9/main.yml @@ -11,3 +11,4 @@ projects: - libvirt-sandbox - libvirt-tck - osinfo-db + - osinfo-db-tools diff --git a/ansible/host_vars/libvirt-fedora-25/main.yml b/ansible/host_vars/libvirt-fedora-25/main.yml index 88de6e5..9a42421 100644 --- a/ansible/host_vars/libvirt-fedora-25/main.yml +++ b/ansible/host_vars/libvirt-fedora-25/main.yml @@ -12,3 +12,4 @@ projects: - libvirt-sandbox - libvirt-tck - osinfo-db + - osinfo-db-tools diff --git a/ansible/host_vars/libvirt-fedora-26/main.yml b/ansible/host_vars/libvirt-fedora-26/main.yml index 88de6e5..9a42421 100644 --- a/ansible/host_vars/libvirt-fedora-26/main.yml +++ b/ansible/host_vars/libvirt-fedora-26/main.yml @@ -12,3 +12,4 @@ projects: - libvirt-sandbox - libvirt-tck - osinfo-db + - osinfo-db-tools diff --git a/ansible/host_vars/libvirt-fedora-rawhide/main.yml b/ansible/host_vars/libvirt-fedora-rawhide/main.yml index 88de6e5..9a42421 100644 --- a/ansible/host_vars/libvirt-fedora-rawhide/main.yml +++ b/ansible/host_vars/libvirt-fedora-rawhide/main.yml @@ -12,3 +12,4 @@ projects: - libvirt-sandbox - libvirt-tck - osinfo-db + - osinfo-db-tools diff --git a/ansible/host_vars/libvirt-freebsd-11/main.yml b/ansible/host_vars/libvirt-freebsd-11/main.yml index dd5302d..93eaca7 100644 --- a/ansible/host_vars/libvirt-freebsd-11/main.yml +++ b/ansible/host_vars/libvirt-freebsd-11/main.yml @@ -17,3 +17,4 @@ projects: - libvirt-python - libvirt-tck - osinfo-db + - osinfo-db-tools diff --git a/ansible/host_vars/libvirt-ubuntu-14/main.yml b/ansible/host_vars/libvirt-ubuntu-14/main.yml index 809c9fd..7711c5c 100644 --- a/ansible/host_vars/libvirt-ubuntu-14/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-14/main.yml @@ -6,3 +6,4 @@ projects: - libvirt-perl - libvirt-python - libvirt-tck + - osinfo-db-tools diff --git a/ansible/host_vars/libvirt-ubuntu-16/main.yml b/ansible/host_vars/libvirt-ubuntu-16/main.yml index eb79aeb..fb05515 100644 --- a/ansible/host_vars/libvirt-ubuntu-16/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-16/main.yml @@ -10,3 +10,4 @@ projects: - libvirt-python - libvirt-sandbox - libvirt-tck + - osinfo-db-tools diff --git a/ansible/tasks/build.yml b/ansible/tasks/build.yml index 48e8a98..8622713 100644 --- a/ansible/tasks/build.yml +++ b/ansible/tasks/build.yml @@ -41,7 +41,8 @@ project == 'libvirt' or project == 'libvirt-cim' or project == 'libvirt-glib' or - project == 'libvirt-sandbox' ) + project == 'libvirt-sandbox' or + project == 'osinfo-db-tools' ) - name: '{{ project }}: Run configure' command: './configure {{ configure_options }}' @@ -60,7 +61,8 @@ project == 'libvirt-cim' or project == 'libvirt-glib' or project == 'libvirt-sandbox' or - project == 'osinfo-db' ) + project == 'osinfo-db' or + project == 'osinfo-db-tools' ) - name: '{{ project }}: Run sanity checks' command: '{{ make }} -j{{ smp }} syntax-check' @@ -71,7 +73,8 @@ ( project == 'libvirt' and os_name != 'FreeBSD' ) or project == 'libvirt-glib' or - project == 'libvirt-sandbox' ) + project == 'libvirt-sandbox' or + project == 'osinfo-db-tools' ) - name: '{{ project }}: Run test suite' command: '{{ make }} -j{{ smp }} check' @@ -83,7 +86,8 @@ project == 'libvirt-cim' or project == 'libvirt-glib' or project == 'libvirt-sandbox' or - project == 'osinfo-db' ) + project == 'osinfo-db' or + project == 'osinfo-db-tools' ) - name: '{{ project }}: Build RPM package' command: '{{ make }} -j{{ smp }} rpm' diff --git a/ansible/vars/osinfo-db-tools/CentOS-7.yml b/ansible/vars/osinfo-db-tools/CentOS-7.yml new file mode 100644 index 0000000..ce38721 --- /dev/null +++ b/ansible/vars/osinfo-db-tools/CentOS-7.yml @@ -0,0 +1,8 @@ +--- +packages: + - glib2-devel + - gnome-common + - intltool + - libarchive-devel + - libxml2-devel + - libxslt-devel diff --git a/ansible/vars/osinfo-db-tools/Debian-8.yml b/ansible/vars/osinfo-db-tools/Debian-8.yml new file mode 100644 index 0000000..dcc6634 --- /dev/null +++ b/ansible/vars/osinfo-db-tools/Debian-8.yml @@ -0,0 +1,8 @@ +--- +packages: + - gnome-common + - intltool + - libarchive-dev + - libglib2.0-dev + - libxml2-dev + - libxslt1-dev diff --git a/ansible/vars/osinfo-db-tools/Debian-9.yml b/ansible/vars/osinfo-db-tools/Debian-9.yml new file mode 100644 index 0000000..dcc6634 --- /dev/null +++ b/ansible/vars/osinfo-db-tools/Debian-9.yml @@ -0,0 +1,8 @@ +--- +packages: + - gnome-common + - intltool + - libarchive-dev + - libglib2.0-dev + - libxml2-dev + - libxslt1-dev diff --git a/ansible/vars/osinfo-db-tools/Fedora-25.yml b/ansible/vars/osinfo-db-tools/Fedora-25.yml new file mode 100644 index 0000000..ce38721 --- /dev/null +++ b/ansible/vars/osinfo-db-tools/Fedora-25.yml @@ -0,0 +1,8 @@ +--- +packages: + - glib2-devel + - gnome-common + - intltool + - libarchive-devel + - libxml2-devel + - libxslt-devel diff --git a/ansible/vars/osinfo-db-tools/Fedora-26.yml b/ansible/vars/osinfo-db-tools/Fedora-26.yml new file mode 100644 index 0000000..ce38721 --- /dev/null +++ b/ansible/vars/osinfo-db-tools/Fedora-26.yml @@ -0,0 +1,8 @@ +--- +packages: + - glib2-devel + - gnome-common + - intltool + - libarchive-devel + - libxml2-devel + - libxslt-devel diff --git a/ansible/vars/osinfo-db-tools/Fedora-Rawhide.yml b/ansible/vars/osinfo-db-tools/Fedora-Rawhide.yml new file mode 100644 index 0000000..ce38721 --- /dev/null +++ b/ansible/vars/osinfo-db-tools/Fedora-Rawhide.yml @@ -0,0 +1,8 @@ +--- +packages: + - glib2-devel + - gnome-common + - intltool + - libarchive-devel + - libxml2-devel + - libxslt-devel diff --git a/ansible/vars/osinfo-db-tools/FreeBSD-11.yml b/ansible/vars/osinfo-db-tools/FreeBSD-11.yml new file mode 100644 index 0000000..7a804c9 --- /dev/null +++ b/ansible/vars/osinfo-db-tools/FreeBSD-11.yml @@ -0,0 +1,8 @@ +--- +packages: + - glib + - gnome-common + - intltool + - libarchive + - libxml2 + - libxslt diff --git a/ansible/vars/osinfo-db-tools/Ubuntu-14.yml b/ansible/vars/osinfo-db-tools/Ubuntu-14.yml new file mode 100644 index 0000000..dcc6634 --- /dev/null +++ b/ansible/vars/osinfo-db-tools/Ubuntu-14.yml @@ -0,0 +1,8 @@ +--- +packages: + - gnome-common + - intltool + - libarchive-dev + - libglib2.0-dev + - libxml2-dev + - libxslt1-dev diff --git a/ansible/vars/osinfo-db-tools/Ubuntu-16.yml b/ansible/vars/osinfo-db-tools/Ubuntu-16.yml new file mode 100644 index 0000000..dcc6634 --- /dev/null +++ b/ansible/vars/osinfo-db-tools/Ubuntu-16.yml @@ -0,0 +1,8 @@ +--- +packages: + - gnome-common + - intltool + - libarchive-dev + - libglib2.0-dev + - libxml2-dev + - libxslt1-dev -- 2.13.6

Signed-off-by: Andrea Bolognani <abologna@redhat.com> --- 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

Signed-off-by: Andrea Bolognani <abologna@redhat.com> --- 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 | 15 +++++++++++---- ansible/vars/virt-viewer/CentOS-7.yml | 20 ++++++++++++++++++++ ansible/vars/virt-viewer/Debian-8.yml | 18 ++++++++++++++++++ ansible/vars/virt-viewer/Debian-9.yml | 20 ++++++++++++++++++++ ansible/vars/virt-viewer/Fedora-25.yml | 20 ++++++++++++++++++++ ansible/vars/virt-viewer/Fedora-26.yml | 20 ++++++++++++++++++++ ansible/vars/virt-viewer/Fedora-Rawhide.yml | 20 ++++++++++++++++++++ ansible/vars/virt-viewer/FreeBSD-11.yml | 18 ++++++++++++++++++ ansible/vars/virt-viewer/Ubuntu-14.yml | 16 ++++++++++++++++ ansible/vars/virt-viewer/Ubuntu-16.yml | 18 ++++++++++++++++++ 19 files changed, 190 insertions(+), 4 deletions(-) create mode 100644 ansible/vars/virt-viewer/CentOS-7.yml create mode 100644 ansible/vars/virt-viewer/Debian-8.yml create mode 100644 ansible/vars/virt-viewer/Debian-9.yml create mode 100644 ansible/vars/virt-viewer/Fedora-25.yml create mode 100644 ansible/vars/virt-viewer/Fedora-26.yml create mode 100644 ansible/vars/virt-viewer/Fedora-Rawhide.yml create mode 100644 ansible/vars/virt-viewer/FreeBSD-11.yml create mode 100644 ansible/vars/virt-viewer/Ubuntu-14.yml create mode 100644 ansible/vars/virt-viewer/Ubuntu-16.yml diff --git a/ansible/host_vars/libvirt-centos-7/main.yml b/ansible/host_vars/libvirt-centos-7/main.yml index 970839d..fe33bcd 100644 --- a/ansible/host_vars/libvirt-centos-7/main.yml +++ b/ansible/host_vars/libvirt-centos-7/main.yml @@ -13,3 +13,4 @@ projects: - osinfo-db - osinfo-db-tools - virt-manager + - virt-viewer diff --git a/ansible/host_vars/libvirt-debian-8/main.yml b/ansible/host_vars/libvirt-debian-8/main.yml index 5d300e8..42bf6c3 100644 --- a/ansible/host_vars/libvirt-debian-8/main.yml +++ b/ansible/host_vars/libvirt-debian-8/main.yml @@ -11,3 +11,4 @@ projects: - libvirt-tck - osinfo-db-tools - virt-manager + - virt-viewer diff --git a/ansible/host_vars/libvirt-debian-9/main.yml b/ansible/host_vars/libvirt-debian-9/main.yml index 4640d87..ff28698 100644 --- a/ansible/host_vars/libvirt-debian-9/main.yml +++ b/ansible/host_vars/libvirt-debian-9/main.yml @@ -13,3 +13,4 @@ projects: - osinfo-db - osinfo-db-tools - virt-manager + - virt-viewer diff --git a/ansible/host_vars/libvirt-fedora-25/main.yml b/ansible/host_vars/libvirt-fedora-25/main.yml index 265e7ca..8d3b26f 100644 --- a/ansible/host_vars/libvirt-fedora-25/main.yml +++ b/ansible/host_vars/libvirt-fedora-25/main.yml @@ -14,3 +14,4 @@ projects: - osinfo-db - osinfo-db-tools - virt-manager + - virt-viewer diff --git a/ansible/host_vars/libvirt-fedora-26/main.yml b/ansible/host_vars/libvirt-fedora-26/main.yml index 265e7ca..8d3b26f 100644 --- a/ansible/host_vars/libvirt-fedora-26/main.yml +++ b/ansible/host_vars/libvirt-fedora-26/main.yml @@ -14,3 +14,4 @@ projects: - osinfo-db - osinfo-db-tools - virt-manager + - virt-viewer diff --git a/ansible/host_vars/libvirt-fedora-rawhide/main.yml b/ansible/host_vars/libvirt-fedora-rawhide/main.yml index 265e7ca..8d3b26f 100644 --- a/ansible/host_vars/libvirt-fedora-rawhide/main.yml +++ b/ansible/host_vars/libvirt-fedora-rawhide/main.yml @@ -14,3 +14,4 @@ projects: - osinfo-db - osinfo-db-tools - virt-manager + - virt-viewer diff --git a/ansible/host_vars/libvirt-freebsd-11/main.yml b/ansible/host_vars/libvirt-freebsd-11/main.yml index 563a254..69b172c 100644 --- a/ansible/host_vars/libvirt-freebsd-11/main.yml +++ b/ansible/host_vars/libvirt-freebsd-11/main.yml @@ -19,3 +19,4 @@ projects: - osinfo-db - osinfo-db-tools - virt-manager + - virt-viewer diff --git a/ansible/host_vars/libvirt-ubuntu-14/main.yml b/ansible/host_vars/libvirt-ubuntu-14/main.yml index f77a167..18b013d 100644 --- a/ansible/host_vars/libvirt-ubuntu-14/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-14/main.yml @@ -8,3 +8,4 @@ projects: - libvirt-tck - osinfo-db-tools - virt-manager + - virt-viewer diff --git a/ansible/host_vars/libvirt-ubuntu-16/main.yml b/ansible/host_vars/libvirt-ubuntu-16/main.yml index 04191bc..7baecf7 100644 --- a/ansible/host_vars/libvirt-ubuntu-16/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-16/main.yml @@ -12,3 +12,4 @@ projects: - libvirt-tck - osinfo-db-tools - virt-manager + - virt-viewer diff --git a/ansible/tasks/build.yml b/ansible/tasks/build.yml index aa2d60e..140d4da 100644 --- a/ansible/tasks/build.yml +++ b/ansible/tasks/build.yml @@ -42,7 +42,8 @@ project == 'libvirt-cim' or project == 'libvirt-glib' or project == 'libvirt-sandbox' or - project == 'osinfo-db-tools' ) + project == 'osinfo-db-tools' or + project == 'virt-viewer' ) - name: '{{ project }}: Run configure' command: './configure {{ configure_options }}' @@ -62,7 +63,9 @@ project == 'libvirt-glib' or project == 'libvirt-sandbox' or project == 'osinfo-db' or - project == 'osinfo-db-tools' ) + project == 'osinfo-db-tools' or + ( project == 'virt-viewer' and + os_version != 'Rawhide' ) ) - name: '{{ project }}: Run sanity checks' command: '{{ make }} -j{{ smp }} syntax-check' @@ -74,7 +77,9 @@ os_name != 'FreeBSD' ) or project == 'libvirt-glib' or project == 'libvirt-sandbox' or - project == 'osinfo-db-tools' ) + project == 'osinfo-db-tools' or + ( project == 'virt-viewer' and + os_version != 'Rawhide' ) ) - name: '{{ project }}: Run test suite' command: '{{ make }} -j{{ smp }} check' @@ -87,7 +92,9 @@ project == 'libvirt-glib' or project == 'libvirt-sandbox' or project == 'osinfo-db' or - project == 'osinfo-db-tools' ) + project == 'osinfo-db-tools' or + ( project == 'virt-viewer' and + os_version != 'Rawhide' ) ) - name: '{{ project }}: Build RPM package' command: '{{ make }} -j{{ smp }} rpm' diff --git a/ansible/vars/virt-viewer/CentOS-7.yml b/ansible/vars/virt-viewer/CentOS-7.yml new file mode 100644 index 0000000..44081ec --- /dev/null +++ b/ansible/vars/virt-viewer/CentOS-7.yml @@ -0,0 +1,20 @@ +--- +packages: + - glib2-devel + - gtk-vnc2-devel + - gtk3-devel + - intltool + - libgovirt-devel + - libxml2 + - libxml2-devel + - spice-gtk3-devel + +extra_packages: + - libvirt-devel + - libvirt-glib-devel + +features: + with_gtk_vnc: --with-gtk-vnc + with_libvirt: --with-libvirt + with_ovirt: --with-ovirt + with_spice_gtk: --with-spice-gtk diff --git a/ansible/vars/virt-viewer/Debian-8.yml b/ansible/vars/virt-viewer/Debian-8.yml new file mode 100644 index 0000000..54c34a9 --- /dev/null +++ b/ansible/vars/virt-viewer/Debian-8.yml @@ -0,0 +1,18 @@ +--- +packages: + - intltool + - libglib2.0-dev + - libgtk-3-dev + - libgtk-vnc-2.0-dev + - libxml2-dev + - libxml2-utils + +extra_packages: + - libvirt-dev + - libvirt-glib-1.0-dev + +features: + with_gtk_vnc: --with-gtk-vnc + with_libvirt: --with-libvirt + with_ovirt: --without-ovirt # not available + with_spice_gtk: --without-spice-gtk # too old diff --git a/ansible/vars/virt-viewer/Debian-9.yml b/ansible/vars/virt-viewer/Debian-9.yml new file mode 100644 index 0000000..e9b7653 --- /dev/null +++ b/ansible/vars/virt-viewer/Debian-9.yml @@ -0,0 +1,20 @@ +--- +packages: + - intltool + - libglib2.0-dev + - libgovirt-dev + - libgtk-3-dev + - libgtk-vnc-2.0-dev + - libspice-client-gtk-3.0-dev + - libxml2-dev + - libxml2-utils + +extra_packages: + - libvirt-dev + - libvirt-glib-1.0-dev + +features: + with_gtk_vnc: --with-gtk-vnc + with_libvirt: --with-libvirt + with_ovirt: --without-ovirt # not available + with_spice_gtk: --with-spice-gtk diff --git a/ansible/vars/virt-viewer/Fedora-25.yml b/ansible/vars/virt-viewer/Fedora-25.yml new file mode 100644 index 0000000..44081ec --- /dev/null +++ b/ansible/vars/virt-viewer/Fedora-25.yml @@ -0,0 +1,20 @@ +--- +packages: + - glib2-devel + - gtk-vnc2-devel + - gtk3-devel + - intltool + - libgovirt-devel + - libxml2 + - libxml2-devel + - spice-gtk3-devel + +extra_packages: + - libvirt-devel + - libvirt-glib-devel + +features: + with_gtk_vnc: --with-gtk-vnc + with_libvirt: --with-libvirt + with_ovirt: --with-ovirt + with_spice_gtk: --with-spice-gtk diff --git a/ansible/vars/virt-viewer/Fedora-26.yml b/ansible/vars/virt-viewer/Fedora-26.yml new file mode 100644 index 0000000..44081ec --- /dev/null +++ b/ansible/vars/virt-viewer/Fedora-26.yml @@ -0,0 +1,20 @@ +--- +packages: + - glib2-devel + - gtk-vnc2-devel + - gtk3-devel + - intltool + - libgovirt-devel + - libxml2 + - libxml2-devel + - spice-gtk3-devel + +extra_packages: + - libvirt-devel + - libvirt-glib-devel + +features: + with_gtk_vnc: --with-gtk-vnc + with_libvirt: --with-libvirt + with_ovirt: --with-ovirt + with_spice_gtk: --with-spice-gtk diff --git a/ansible/vars/virt-viewer/Fedora-Rawhide.yml b/ansible/vars/virt-viewer/Fedora-Rawhide.yml new file mode 100644 index 0000000..44081ec --- /dev/null +++ b/ansible/vars/virt-viewer/Fedora-Rawhide.yml @@ -0,0 +1,20 @@ +--- +packages: + - glib2-devel + - gtk-vnc2-devel + - gtk3-devel + - intltool + - libgovirt-devel + - libxml2 + - libxml2-devel + - spice-gtk3-devel + +extra_packages: + - libvirt-devel + - libvirt-glib-devel + +features: + with_gtk_vnc: --with-gtk-vnc + with_libvirt: --with-libvirt + with_ovirt: --with-ovirt + with_spice_gtk: --with-spice-gtk diff --git a/ansible/vars/virt-viewer/FreeBSD-11.yml b/ansible/vars/virt-viewer/FreeBSD-11.yml new file mode 100644 index 0000000..f3a6332 --- /dev/null +++ b/ansible/vars/virt-viewer/FreeBSD-11.yml @@ -0,0 +1,18 @@ +--- +packages: + - glib + - gtk-vnc + - gtk3 + - intltool + - libxml2 + - spice-gtk + +extra_packages: + - libvirt + - libvirt-glib + +features: + with_gtk_vnc: --with-gtk-vnc + with_libvirt: --with-libvirt + with_ovirt: --without-ovirt # not available + with_spice_gtk: --with-spice-gtk diff --git a/ansible/vars/virt-viewer/Ubuntu-14.yml b/ansible/vars/virt-viewer/Ubuntu-14.yml new file mode 100644 index 0000000..dc68c85 --- /dev/null +++ b/ansible/vars/virt-viewer/Ubuntu-14.yml @@ -0,0 +1,16 @@ +--- +packages: + - intltool + - libatspi2.0-dev + - libglib2.0-dev + - libgtk-3-dev + - libgtk-vnc-2.0-dev + - libspice-client-gtk-3.0-dev + - libxml2-dev + - libxml2-utils + +features: + with_gtk_vnc: --with-gtk-vnc + with_libvirt: --without-libvirt # too old + with_ovirt: --without-ovirt # not available + with_spice_gtk: --without-spice-gtk # too old diff --git a/ansible/vars/virt-viewer/Ubuntu-16.yml b/ansible/vars/virt-viewer/Ubuntu-16.yml new file mode 100644 index 0000000..54c34a9 --- /dev/null +++ b/ansible/vars/virt-viewer/Ubuntu-16.yml @@ -0,0 +1,18 @@ +--- +packages: + - intltool + - libglib2.0-dev + - libgtk-3-dev + - libgtk-vnc-2.0-dev + - libxml2-dev + - libxml2-utils + +extra_packages: + - libvirt-dev + - libvirt-glib-1.0-dev + +features: + with_gtk_vnc: --with-gtk-vnc + with_libvirt: --with-libvirt + with_ovirt: --without-ovirt # not available + with_spice_gtk: --without-spice-gtk # too old -- 2.13.6

The agent is downloaded and configured to start at boot. The secrets needed to prove the workers' identity to the Jenkins server are stored inside Ansible vaults. Signed-off-by: Andrea Bolognani <abologna@redhat.com> --- ansible/ansible.cfg | 1 + ansible/group_vars/all/main.yml | 2 + ansible/host_vars/libvirt-centos-6/main.yml | 3 ++ ansible/host_vars/libvirt-centos-6/vault.yml | 10 ++++ ansible/host_vars/libvirt-centos-7/main.yml | 3 ++ ansible/host_vars/libvirt-centos-7/vault.yml | 10 ++++ ansible/host_vars/libvirt-debian-8/main.yml | 3 ++ ansible/host_vars/libvirt-debian-8/vault.yml | 10 ++++ ansible/host_vars/libvirt-debian-9/main.yml | 3 ++ ansible/host_vars/libvirt-debian-9/vault.yml | 10 ++++ ansible/host_vars/libvirt-fedora-25/main.yml | 3 ++ ansible/host_vars/libvirt-fedora-25/vault.yml | 10 ++++ ansible/host_vars/libvirt-fedora-26/main.yml | 3 ++ ansible/host_vars/libvirt-fedora-26/vault.yml | 10 ++++ ansible/host_vars/libvirt-fedora-rawhide/main.yml | 3 ++ ansible/host_vars/libvirt-fedora-rawhide/vault.yml | 10 ++++ ansible/host_vars/libvirt-freebsd-11/main.yml | 3 ++ ansible/host_vars/libvirt-freebsd-11/vault.yml | 10 ++++ ansible/host_vars/libvirt-ubuntu-12/main.yml | 3 ++ ansible/host_vars/libvirt-ubuntu-12/vault.yml | 8 +++ ansible/host_vars/libvirt-ubuntu-14/main.yml | 3 ++ ansible/host_vars/libvirt-ubuntu-14/vault.yml | 8 +++ ansible/host_vars/libvirt-ubuntu-16/main.yml | 3 ++ ansible/host_vars/libvirt-ubuntu-16/vault.yml | 8 +++ ansible/site.yml | 10 +++- ansible/tasks/jenkins.yml | 59 ++++++++++++++++++++++ ansible/templates/jenkins.service.j2 | 14 +++++ ansible/vars/jenkins/CentOS-6.yml | 3 ++ ansible/vars/jenkins/CentOS-7.yml | 3 ++ ansible/vars/jenkins/Debian-8.yml | 3 ++ ansible/vars/jenkins/Debian-9.yml | 3 ++ ansible/vars/jenkins/Fedora-25.yml | 3 ++ ansible/vars/jenkins/Fedora-26.yml | 3 ++ ansible/vars/jenkins/Fedora-Rawhide.yml | 3 ++ ansible/vars/jenkins/FreeBSD-11.yml | 3 ++ ansible/vars/jenkins/Ubuntu-12.yml | 3 ++ ansible/vars/jenkins/Ubuntu-14.yml | 3 ++ ansible/vars/jenkins/Ubuntu-16.yml | 3 ++ 38 files changed, 255 insertions(+), 1 deletion(-) create mode 100644 ansible/host_vars/libvirt-centos-6/vault.yml create mode 100644 ansible/host_vars/libvirt-centos-7/vault.yml create mode 100644 ansible/host_vars/libvirt-debian-8/vault.yml create mode 100644 ansible/host_vars/libvirt-debian-9/vault.yml create mode 100644 ansible/host_vars/libvirt-fedora-25/vault.yml create mode 100644 ansible/host_vars/libvirt-fedora-26/vault.yml create mode 100644 ansible/host_vars/libvirt-fedora-rawhide/vault.yml create mode 100644 ansible/host_vars/libvirt-freebsd-11/vault.yml create mode 100644 ansible/host_vars/libvirt-ubuntu-12/vault.yml create mode 100644 ansible/host_vars/libvirt-ubuntu-14/vault.yml create mode 100644 ansible/host_vars/libvirt-ubuntu-16/vault.yml create mode 100644 ansible/tasks/jenkins.yml create mode 100644 ansible/templates/jenkins.service.j2 create mode 100644 ansible/vars/jenkins/CentOS-6.yml create mode 100644 ansible/vars/jenkins/CentOS-7.yml create mode 100644 ansible/vars/jenkins/Debian-8.yml create mode 100644 ansible/vars/jenkins/Debian-9.yml create mode 100644 ansible/vars/jenkins/Fedora-25.yml create mode 100644 ansible/vars/jenkins/Fedora-26.yml create mode 100644 ansible/vars/jenkins/Fedora-Rawhide.yml create mode 100644 ansible/vars/jenkins/FreeBSD-11.yml create mode 100644 ansible/vars/jenkins/Ubuntu-12.yml create mode 100644 ansible/vars/jenkins/Ubuntu-14.yml create mode 100644 ansible/vars/jenkins/Ubuntu-16.yml diff --git a/ansible/ansible.cfg b/ansible/ansible.cfg index ca02677..2055540 100644 --- a/ansible/ansible.cfg +++ b/ansible/ansible.cfg @@ -6,3 +6,4 @@ log_path = ./log nocows = 1 pipelining = True squash_actions = package +vault_password_file = ~/.ansible/libvirt-jenkins-ci.vault-password diff --git a/ansible/group_vars/all/main.yml b/ansible/group_vars/all/main.yml index cd97458..e216a5b 100644 --- a/ansible/group_vars/all/main.yml +++ b/ansible/group_vars/all/main.yml @@ -1,6 +1,8 @@ --- ansible_user: root +jenkins_url: https://ci.centos.org/computer/{{ inventory_hostname }}/slave-agent.jnlp + # Paths to various command. Can be overridden on a per-host basis bash: /bin/bash java: /usr/bin/java diff --git a/ansible/host_vars/libvirt-centos-6/main.yml b/ansible/host_vars/libvirt-centos-6/main.yml index e959ecc..f6b64f3 100644 --- a/ansible/host_vars/libvirt-centos-6/main.yml +++ b/ansible/host_vars/libvirt-centos-6/main.yml @@ -1,7 +1,10 @@ --- projects: - base + - jenkins - libvirt - libvirt-cim - libvirt-perl - libvirt-python + +jenkins_secret: '{{ vault_jenkins_secret }}' diff --git a/ansible/host_vars/libvirt-centos-6/vault.yml b/ansible/host_vars/libvirt-centos-6/vault.yml new file mode 100644 index 0000000..2522a28 --- /dev/null +++ b/ansible/host_vars/libvirt-centos-6/vault.yml @@ -0,0 +1,10 @@ +$ANSIBLE_VAULT;1.1;AES256 +33376164643732313335383930346630343432643939303864313631353063636663663634616638 +3062306563323630653033656231373634363932336331620a383065336664343663346562353862 +64616131656633653338316232303562363632643530313961316130303335626235653430326530 +3566363365323830660a363063623035333231396337393537626161363634313637323563643161 +36613030333563363630363730656238646138306236643937623266646639616130343734313566 +61356165383464323434333836333030336464326436373731313439626161653931626431343665 +30306236333133333334656430636363366132323132323039356264636465333630653335396662 +38356334386337386135343463323233666432326361656438333961303237353562656339623264 +3765 diff --git a/ansible/host_vars/libvirt-centos-7/main.yml b/ansible/host_vars/libvirt-centos-7/main.yml index fe33bcd..1eea74d 100644 --- a/ansible/host_vars/libvirt-centos-7/main.yml +++ b/ansible/host_vars/libvirt-centos-7/main.yml @@ -1,6 +1,7 @@ --- projects: - base + - jenkins - libosinfo - libvirt - libvirt-cim @@ -14,3 +15,5 @@ projects: - osinfo-db-tools - virt-manager - virt-viewer + +jenkins_secret: '{{ vault_jenkins_secret }}' diff --git a/ansible/host_vars/libvirt-centos-7/vault.yml b/ansible/host_vars/libvirt-centos-7/vault.yml new file mode 100644 index 0000000..86367e5 --- /dev/null +++ b/ansible/host_vars/libvirt-centos-7/vault.yml @@ -0,0 +1,10 @@ +$ANSIBLE_VAULT;1.1;AES256 +66663634303664343734626532356561373665336632383463666536356637626637393231353062 +3939383563383338663532336237623766346238316632340a663335353430333635343534333032 +63613530356333316131663565303537386364353039343933653364623661386338383530633665 +3738313139376133370a373731353034633439303965303735613666653133363665356633353564 +64343164633764636130653762303535636634613637303437636266386337376565343765616338 +35656162313662346338353833373564633138306332616562646566343237613638376166303264 +61373864343337326265653364363730336161343733663365656138333738323632373664343334 +62313666316266663162313238653338613761623033636632653736363036353937626566353932 +6234 diff --git a/ansible/host_vars/libvirt-debian-8/main.yml b/ansible/host_vars/libvirt-debian-8/main.yml index 42bf6c3..6b5d645 100644 --- a/ansible/host_vars/libvirt-debian-8/main.yml +++ b/ansible/host_vars/libvirt-debian-8/main.yml @@ -1,6 +1,7 @@ --- projects: - base + - jenkins - libosinfo - libvirt - libvirt-glib @@ -12,3 +13,5 @@ projects: - osinfo-db-tools - virt-manager - virt-viewer + +jenkins_secret: '{{ vault_jenkins_secret }}' diff --git a/ansible/host_vars/libvirt-debian-8/vault.yml b/ansible/host_vars/libvirt-debian-8/vault.yml new file mode 100644 index 0000000..cbcc721 --- /dev/null +++ b/ansible/host_vars/libvirt-debian-8/vault.yml @@ -0,0 +1,10 @@ +$ANSIBLE_VAULT;1.1;AES256 +31336636633735633463343137643865656262633531623935353465353063396439333234303562 +3331353530306331363639333361643738613335366633350a386663646630636332623832616539 +62653433306466646133313531656634616361336436326339336338383163386161313535666338 +6164306633393130650a316163653432623665626261373762633730353461353739613038646564 +62363163646163393939393262373030356464353234663566616330336130656662656539393131 +65316537333837396663366337356238306530656166636439346461326534396331343364653030 +38313938353135323463613565303166363533373565336236376566653063643562353933343337 +31316134386430613538363830396562393631633835643761386631363663306165343632656333 +3039 diff --git a/ansible/host_vars/libvirt-debian-9/main.yml b/ansible/host_vars/libvirt-debian-9/main.yml index ff28698..f28f42b 100644 --- a/ansible/host_vars/libvirt-debian-9/main.yml +++ b/ansible/host_vars/libvirt-debian-9/main.yml @@ -1,6 +1,7 @@ --- projects: - base + - jenkins - libosinfo - libvirt - libvirt-glib @@ -14,3 +15,5 @@ projects: - osinfo-db-tools - virt-manager - virt-viewer + +jenkins_secret: '{{ vault_jenkins_secret }}' diff --git a/ansible/host_vars/libvirt-debian-9/vault.yml b/ansible/host_vars/libvirt-debian-9/vault.yml new file mode 100644 index 0000000..5401e48 --- /dev/null +++ b/ansible/host_vars/libvirt-debian-9/vault.yml @@ -0,0 +1,10 @@ +$ANSIBLE_VAULT;1.1;AES256 +35356363663965366162643430613930363765333137623438663033616536313862323331336566 +6162343336636435346438363131663138376433633366650a383366303037346633363539396161 +38623533343238656238303066356465393733616136653330376330623735346435643630336336 +3666613962333736390a383731626161613836373330373465313834343638383838393334323232 +63636631666431666437323934383363353333653534393261343236663334646166313134353461 +36613538373566306365373466666235656330343330323761626534363361363134616430643539 +63333230333535386264383466303665663436333265366231336132316366353633613561313166 +39343339336231336564363131323234636363373933306636393462373939333562323731613761 +6435 diff --git a/ansible/host_vars/libvirt-fedora-25/main.yml b/ansible/host_vars/libvirt-fedora-25/main.yml index 8d3b26f..5bbbf15 100644 --- a/ansible/host_vars/libvirt-fedora-25/main.yml +++ b/ansible/host_vars/libvirt-fedora-25/main.yml @@ -1,6 +1,7 @@ --- projects: - base + - jenkins - libosinfo - libvirt - libvirt-cim @@ -15,3 +16,5 @@ projects: - osinfo-db-tools - virt-manager - virt-viewer + +jenkins_secret: '{{ vault_jenkins_secret }}' diff --git a/ansible/host_vars/libvirt-fedora-25/vault.yml b/ansible/host_vars/libvirt-fedora-25/vault.yml new file mode 100644 index 0000000..e6f9f06 --- /dev/null +++ b/ansible/host_vars/libvirt-fedora-25/vault.yml @@ -0,0 +1,10 @@ +$ANSIBLE_VAULT;1.1;AES256 +36636231353137663930643139343034663530336632313563376239316266343562353230376362 +6666663536353832623438346531656338366636623361350a613761386566643932396331663633 +35666261383661333635656664616661633863633362373564333262303863366166323534376433 +6632633736326537360a346231633862643366333433383838393331353535373634303837633563 +32333838326136303339633739383061316638646663343364326563666638396664353965623462 +30303839386235616236386230343738313031356338376135333933376566306132373862303039 +39653665616132383135646663656233343031396339663437323939646132316665613862613461 +36333235623563346136353836656336323435333836326463373235393362616430346230633665 +6266 diff --git a/ansible/host_vars/libvirt-fedora-26/main.yml b/ansible/host_vars/libvirt-fedora-26/main.yml index 8d3b26f..5bbbf15 100644 --- a/ansible/host_vars/libvirt-fedora-26/main.yml +++ b/ansible/host_vars/libvirt-fedora-26/main.yml @@ -1,6 +1,7 @@ --- projects: - base + - jenkins - libosinfo - libvirt - libvirt-cim @@ -15,3 +16,5 @@ projects: - osinfo-db-tools - virt-manager - virt-viewer + +jenkins_secret: '{{ vault_jenkins_secret }}' diff --git a/ansible/host_vars/libvirt-fedora-26/vault.yml b/ansible/host_vars/libvirt-fedora-26/vault.yml new file mode 100644 index 0000000..eb2375f --- /dev/null +++ b/ansible/host_vars/libvirt-fedora-26/vault.yml @@ -0,0 +1,10 @@ +$ANSIBLE_VAULT;1.1;AES256 +36373735366565623865626564663333663135643333626561373661366564316439383537373537 +3130363864626664346430636335353166626466663937630a353061386162363264333839313431 +64613465333431633736326535646561383061623631623036656361613234303132663530636330 +3530303366393939630a306631366463643463393039643332646239633862353866303939643461 +37643662663336383338653631363835383936316535323639356538653534303936636465346366 +66303465613065383639333734373961636261303535313065316131663962623430656666653439 +39613865326666363635643837363064323330306261666436373532386339666435373931386433 +64613636353566336466393266313534616666373165626539653632356430353930373961373835 +3631 diff --git a/ansible/host_vars/libvirt-fedora-rawhide/main.yml b/ansible/host_vars/libvirt-fedora-rawhide/main.yml index 8d3b26f..5bbbf15 100644 --- a/ansible/host_vars/libvirt-fedora-rawhide/main.yml +++ b/ansible/host_vars/libvirt-fedora-rawhide/main.yml @@ -1,6 +1,7 @@ --- projects: - base + - jenkins - libosinfo - libvirt - libvirt-cim @@ -15,3 +16,5 @@ projects: - osinfo-db-tools - virt-manager - virt-viewer + +jenkins_secret: '{{ vault_jenkins_secret }}' diff --git a/ansible/host_vars/libvirt-fedora-rawhide/vault.yml b/ansible/host_vars/libvirt-fedora-rawhide/vault.yml new file mode 100644 index 0000000..2702f34 --- /dev/null +++ b/ansible/host_vars/libvirt-fedora-rawhide/vault.yml @@ -0,0 +1,10 @@ +$ANSIBLE_VAULT;1.1;AES256 +62663638306366333136666338336465333961353933613538363563666562316466323864363137 +6362356336663762393734326336363765316334663661650a656436356533623165363330626433 +31373962316231363039356261326337376263656634363463343264333438663535396337633433 +6562663563626637300a303932343263663463666265313737663536373632326330633132386336 +63616466363336373666393137613464383864333065306333346133633965373463653264666363 +34326134303962396130646434373738316134323061386466623035616363626235353037343662 +63616466333930623563363632656662303063353431666432353763326433653364363963303033 +65633166323837313438393134303861663434643336616331313063623739396138343930643364 +6136 diff --git a/ansible/host_vars/libvirt-freebsd-11/main.yml b/ansible/host_vars/libvirt-freebsd-11/main.yml index 69b172c..e993a66 100644 --- a/ansible/host_vars/libvirt-freebsd-11/main.yml +++ b/ansible/host_vars/libvirt-freebsd-11/main.yml @@ -8,6 +8,7 @@ sudo: /usr/local/bin/sudo projects: - base + - jenkins - libosinfo - libvirt - libvirt-glib @@ -20,3 +21,5 @@ projects: - osinfo-db-tools - virt-manager - virt-viewer + +jenkins_secret: '{{ vault_jenkins_secret }}' diff --git a/ansible/host_vars/libvirt-freebsd-11/vault.yml b/ansible/host_vars/libvirt-freebsd-11/vault.yml new file mode 100644 index 0000000..55a02e9 --- /dev/null +++ b/ansible/host_vars/libvirt-freebsd-11/vault.yml @@ -0,0 +1,10 @@ +$ANSIBLE_VAULT;1.1;AES256 +35366634666565336238303436346366323865633938643064353533376164383662376564373634 +3964303330333438336462326139356534656535356339660a646463373034313734636565613335 +37363335663133333361376665623438316332633434323666646663643166613637653966383833 +3464613638613465320a393766613131616634343839623130366464653431313833613865646336 +65663136346365623233363533323730666661323863356531373162303961343264376531626362 +37346366366439643937346264376266643030623464333032353237303635343532303336373730 +37353564306663623361646239666234323038663162643436623136313033356562326561373337 +64333633343263613636666231393437356630343362633935623837353135303364343733326136 +3933 diff --git a/ansible/host_vars/libvirt-ubuntu-12/main.yml b/ansible/host_vars/libvirt-ubuntu-12/main.yml index 4d53bb3..acb4876 100644 --- a/ansible/host_vars/libvirt-ubuntu-12/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-12/main.yml @@ -1,4 +1,7 @@ --- projects: - base + - jenkins - libvirt + +jenkins_secret: '{{ vault_jenkins_secret }}' diff --git a/ansible/host_vars/libvirt-ubuntu-12/vault.yml b/ansible/host_vars/libvirt-ubuntu-12/vault.yml new file mode 100644 index 0000000..0e4f11a --- /dev/null +++ b/ansible/host_vars/libvirt-ubuntu-12/vault.yml @@ -0,0 +1,8 @@ +$ANSIBLE_VAULT;1.1;AES256 +31343061616436666138373261313733666434303431636233383766653637356532366664346434 +3430613264376461333233343839636138376363623837650a653566393532663133623139353932 +65373332626561613637393362663365643164396266633139643966336234323264653363376431 +3062343932353663660a313433383635363134383235663163663735326431386133653338363031 +62383038316164626563646438303565396135623735626261323139663265333162333562303237 +32313138663535363763383063303033333234396633313664353031666132316330313430663261 +626164653766633236633465373533303730 diff --git a/ansible/host_vars/libvirt-ubuntu-14/main.yml b/ansible/host_vars/libvirt-ubuntu-14/main.yml index 18b013d..05c05c6 100644 --- a/ansible/host_vars/libvirt-ubuntu-14/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-14/main.yml @@ -1,6 +1,7 @@ --- projects: - base + - jenkins - libosinfo - libvirt - libvirt-perl @@ -9,3 +10,5 @@ projects: - osinfo-db-tools - virt-manager - virt-viewer + +jenkins_secret: '{{ vault_jenkins_secret }}' diff --git a/ansible/host_vars/libvirt-ubuntu-14/vault.yml b/ansible/host_vars/libvirt-ubuntu-14/vault.yml new file mode 100644 index 0000000..4d7021a --- /dev/null +++ b/ansible/host_vars/libvirt-ubuntu-14/vault.yml @@ -0,0 +1,8 @@ +$ANSIBLE_VAULT;1.1;AES256 +32386562363465636265666365656262313166663463306664363638336135396533336462323361 +6661383437306236376663353037363265623833333533300a613561383439393732623039336266 +61313235666437356338313434656361666666393061653461343535366436303734653237336439 +3936366333346634330a623062376433336165346534626563383439383263326639646338313036 +32306339646166393938333964623732626331373361386365653435346263623831613261656135 +37303830656566643832356264643237643931623866376435306433343433393537353634353130 +363933393966643163353137646638663065 diff --git a/ansible/host_vars/libvirt-ubuntu-16/main.yml b/ansible/host_vars/libvirt-ubuntu-16/main.yml index 7baecf7..4a3a0be 100644 --- a/ansible/host_vars/libvirt-ubuntu-16/main.yml +++ b/ansible/host_vars/libvirt-ubuntu-16/main.yml @@ -1,6 +1,7 @@ --- projects: - base + - jenkins - libosinfo - libvirt - libvirt-glib @@ -13,3 +14,5 @@ projects: - osinfo-db-tools - virt-manager - virt-viewer + +jenkins_secret: '{{ vault_jenkins_secret }}' diff --git a/ansible/host_vars/libvirt-ubuntu-16/vault.yml b/ansible/host_vars/libvirt-ubuntu-16/vault.yml new file mode 100644 index 0000000..b7968f7 --- /dev/null +++ b/ansible/host_vars/libvirt-ubuntu-16/vault.yml @@ -0,0 +1,8 @@ +$ANSIBLE_VAULT;1.1;AES256 +64623036353031653333316132333739656435303732333036633031646564396239633235356639 +3533353934636539353433623336313633663332666639380a626130353565623031303630333764 +36333861303561643336323566323035646164343964643839343862386463653462643265643461 +3461636431616630350a636630353137336634663539643835666466643639613864366561396365 +34653733616464303266303165326461623430643762376161626434323665376262393635656136 +33353135616364336366633231643466343563616665623633393762383662633136393632323633 +333631346631646166363536393932663932 diff --git a/ansible/site.yml b/ansible/site.yml index b6caea0..be3a1ff 100644 --- a/ansible/site.yml +++ b/ansible/site.yml @@ -17,6 +17,13 @@ when: - projects is defined + # Configure the Jenkins agent + - include: tasks/jenkins.yml + when: + - projects is defined + # jenkins is a pseudo-project + - ( 'jenkins' in projects ) + - include: tasks/build.yml with_items: '{{ projects }}' @@ -24,7 +31,8 @@ loop_var: project when: - projects is defined - # base is a pseudo-projects + # base and jenkins are pseudo-projects - project != 'base' + - project != 'jenkins' # Building can be turned on and off - build diff --git a/ansible/tasks/jenkins.yml b/ansible/tasks/jenkins.yml new file mode 100644 index 0000000..0679b58 --- /dev/null +++ b/ansible/tasks/jenkins.yml @@ -0,0 +1,59 @@ +--- +- name: Create Jenkins user account + user: + name: jenkins + comment: Jenkins + password: '*' + +- name: Download Jenkins agent + get_url: + url: https://ci.centos.org/jnlpJars/slave.jar + dest: /home/jenkins/slave.jar + owner: jenkins + group: jenkins + +- name: Figure out how to start Jenkins agent + set_fact: + use_rc_local: true + use_systemd: false + when: + - os_name == 'FreeBSD' or + ( os_name == 'CentOS' and os_version == '6' ) or + ( os_name == 'Ubuntu' and os_version == '12' ) or + ( os_name == 'Ubuntu' and os_version == '14' ) + +- name: Figure out how to start Jenkins agent + set_fact: + use_rc_local: false + use_systemd: true + when: + - use_rc_local is not defined + - use_systemd is not defined + +- name: Configure and enable Jenkins agent + lineinfile: + path: /etc/rc.local + create: yes + backup: yes + regexp: '^nohup.*jenkins.*java.*slave\.jar.*&$' + line: "nohup {{ sudo }} -u jenkins {{ bash }} -l -c '{{ java }} -jar /home/jenkins/slave.jar -jnlpUrl {{ jenkins_url }} -secret {{ jenkins_secret }}' >/var/log/jenkins.log 2>&1 &" + insertafter: EOF + when: + - use_rc_local + +- name: Configure Jenkins agent + template: + src: templates/jenkins.service.j2 + dest: /etc/systemd/system/jenkins.service + when: + - use_systemd + +- name: Reload systemd status + command: systemctl daemon-reload + when: + - use_systemd + +- name: Enable Jenkins agent + command: systemctl enable jenkins + when: + - use_systemd diff --git a/ansible/templates/jenkins.service.j2 b/ansible/templates/jenkins.service.j2 new file mode 100644 index 0000000..a7c8dcf --- /dev/null +++ b/ansible/templates/jenkins.service.j2 @@ -0,0 +1,14 @@ +[Unit] +Description=Jenkins agent +Wants=network.target +After=network.target + +[Service] +ExecStart={{ bash }} -l -c '{{ java }} -jar /home/jenkins/slave.jar -jnlpUrl {{ jenkins_url }} -secret {{ jenkins_secret }}' +User=jenkins +Group=jenkins +WorkingDirectory=/home/jenkins +Restart=always + +[Install] +WantedBy=multi-user.target diff --git a/ansible/vars/jenkins/CentOS-6.yml b/ansible/vars/jenkins/CentOS-6.yml new file mode 100644 index 0000000..710a9cb --- /dev/null +++ b/ansible/vars/jenkins/CentOS-6.yml @@ -0,0 +1,3 @@ +--- +packages: + - java-1.8.0-openjdk-headless diff --git a/ansible/vars/jenkins/CentOS-7.yml b/ansible/vars/jenkins/CentOS-7.yml new file mode 100644 index 0000000..710a9cb --- /dev/null +++ b/ansible/vars/jenkins/CentOS-7.yml @@ -0,0 +1,3 @@ +--- +packages: + - java-1.8.0-openjdk-headless diff --git a/ansible/vars/jenkins/Debian-8.yml b/ansible/vars/jenkins/Debian-8.yml new file mode 100644 index 0000000..9628ccc --- /dev/null +++ b/ansible/vars/jenkins/Debian-8.yml @@ -0,0 +1,3 @@ +--- +packages: + - openjdk-7-jre-headless diff --git a/ansible/vars/jenkins/Debian-9.yml b/ansible/vars/jenkins/Debian-9.yml new file mode 100644 index 0000000..fd5e95b --- /dev/null +++ b/ansible/vars/jenkins/Debian-9.yml @@ -0,0 +1,3 @@ +--- +packages: + - openjdk-8-jre-headless diff --git a/ansible/vars/jenkins/Fedora-25.yml b/ansible/vars/jenkins/Fedora-25.yml new file mode 100644 index 0000000..710a9cb --- /dev/null +++ b/ansible/vars/jenkins/Fedora-25.yml @@ -0,0 +1,3 @@ +--- +packages: + - java-1.8.0-openjdk-headless diff --git a/ansible/vars/jenkins/Fedora-26.yml b/ansible/vars/jenkins/Fedora-26.yml new file mode 100644 index 0000000..710a9cb --- /dev/null +++ b/ansible/vars/jenkins/Fedora-26.yml @@ -0,0 +1,3 @@ +--- +packages: + - java-1.8.0-openjdk-headless diff --git a/ansible/vars/jenkins/Fedora-Rawhide.yml b/ansible/vars/jenkins/Fedora-Rawhide.yml new file mode 100644 index 0000000..710a9cb --- /dev/null +++ b/ansible/vars/jenkins/Fedora-Rawhide.yml @@ -0,0 +1,3 @@ +--- +packages: + - java-1.8.0-openjdk-headless diff --git a/ansible/vars/jenkins/FreeBSD-11.yml b/ansible/vars/jenkins/FreeBSD-11.yml new file mode 100644 index 0000000..ce1e4af --- /dev/null +++ b/ansible/vars/jenkins/FreeBSD-11.yml @@ -0,0 +1,3 @@ +--- +packages: + - openjdk8-jre diff --git a/ansible/vars/jenkins/Ubuntu-12.yml b/ansible/vars/jenkins/Ubuntu-12.yml new file mode 100644 index 0000000..9628ccc --- /dev/null +++ b/ansible/vars/jenkins/Ubuntu-12.yml @@ -0,0 +1,3 @@ +--- +packages: + - openjdk-7-jre-headless diff --git a/ansible/vars/jenkins/Ubuntu-14.yml b/ansible/vars/jenkins/Ubuntu-14.yml new file mode 100644 index 0000000..9628ccc --- /dev/null +++ b/ansible/vars/jenkins/Ubuntu-14.yml @@ -0,0 +1,3 @@ +--- +packages: + - openjdk-7-jre-headless diff --git a/ansible/vars/jenkins/Ubuntu-16.yml b/ansible/vars/jenkins/Ubuntu-16.yml new file mode 100644 index 0000000..fd5e95b --- /dev/null +++ b/ansible/vars/jenkins/Ubuntu-16.yml @@ -0,0 +1,3 @@ +--- +packages: + - openjdk-8-jre-headless -- 2.13.6

Signed-off-by: Andrea Bolognani <abologna@redhat.com> --- ansible/README.markdown | 71 +++++++++++++ ansible/mappings/commands.yml | 77 ++++++++++++++ ansible/mappings/libraries.yml | 228 +++++++++++++++++++++++++++++++++++++++++ ansible/mappings/misc.yml | 13 +++ ansible/mappings/perl.yml | 112 ++++++++++++++++++++ ansible/mappings/python.yml | 35 +++++++ 6 files changed, 536 insertions(+) create mode 100644 ansible/README.markdown create mode 100644 ansible/mappings/commands.yml create mode 100644 ansible/mappings/libraries.yml create mode 100644 ansible/mappings/misc.yml create mode 100644 ansible/mappings/perl.yml create mode 100644 ansible/mappings/python.yml diff --git a/ansible/README.markdown b/ansible/README.markdown new file mode 100644 index 0000000..9c704b3 --- /dev/null +++ b/ansible/README.markdown @@ -0,0 +1,71 @@ +Ansible playbooks for libvirt CI +================================ + +These can be used to turn a freshly installed machine into a worker for +the Jenkins-based libvirt CI. + +There are two main playbooks: + +* `bootstrap.yml`, used to perform the bootstrapping phase, that is, getting + guests to the point where Ansible can manage them fully and prompting the + user for a password is no longer required; + +* `site.yml`, used for the remaining configuration steps. + +Although you can use the playbooks directly, it's much more convenient to +call either `make bootstrap` or `make site` instead. + +Each guest only needs to be bootstrapped once; that said, both playbooks are +idempotent so there's no harm in applying them over and over again. + +In addition to the usual Ansible stuff, the `mappings/` directory contains +a bunch of files describing the relationships between the packages of various +distributions. These files are not used by Ansible at all, and are included +merely for documentation purposes. + + +CI use +------ + +After you have reinstalled a Jenkins worker, run `make bootstrap` followed +by `make site` and a reboot to get it ready for CI use. No further action +should be necessary. + +Adding new workers will require tweaking the inventory and host variables, +but it should be very easy to eg. use the Fedora 26 configuration to come +up with a working Fedora 27 configuration. + + +Development use +--------------- + +If you are a developer trying to reproduce a bug on some OS you don't have +easy access to, you can use these playbooks to create a suitable test +environment. + +Since the playbooks are intended mainly for CI use, you'll have to tweak them +a bit first, including: + +* trimming down the `inventory` file to just the guest you're interested in; + +* removing any references to the `jenkins` pseudo-project from + `host_vars/$guest/main.yml`, along with any references to projects you're + not interested to (this will cut down on the number of packages installed) + and any references to `jenkins_secret`; + +* deleting `host_vars/$guest/vault.yml` altogether. + +After performing these tweaks, you should be able to just run `make bootstrap` +followed by `make site` as usual. + + +Playbooks development +--------------------- + +If you want to work on the playbooks themselves, you'll probably want to set +`build` in `group_vars/all/main.yml` to `true` so that a build of each project +will be attempted after setting up the environment: this will help make sure +the worker is actually able of building the project successfully. + +Note that this can be pretty time consuming, so you'll want to comment out as +many projects as possible in `host_vars/*/main.yml` to speed things up. diff --git a/ansible/mappings/commands.yml b/ansible/mappings/commands.yml new file mode 100644 index 0000000..b365a0a --- /dev/null +++ b/ansible/mappings/commands.yml @@ -0,0 +1,77 @@ +--- +augeas: + - augeas # CentOS, Fedora, FreeBSD + - augeas-tools # Debian, Ubuntu + +autopoint: + - autopoint # Debian, Ubuntu + - gettext-devel # CentOS, Fedora + - gettext-tools # FreeBSD + +dnsmasq: + - dnsmasq # CentOS, Fedora, FreeBSD + - dnsmasq-base # Debian, Ubuntu + +dtrace: + - systemtap-sdt-dev # Debian, Ubuntu + - systemtap-sdt-devel # CentOS, Fedora + +go: + - go # FreeBSD + - golang # CentOS, Debian, Fedora, Ubuntu + +gtkdocize: + - gtk-doc # CentOS, Fedora, FreeBSD + - gtk-doc-tools # Debian, Ubuntu + +iscsiadm: + - iscsi-initiator-utils # CentOS, Fedora + - open-iscsi # Debian, Ubuntu + +java: + - java-1.8.0-openjdk-headless # CentOS, Fedora + - openjdk-7-jre-headless # Debian 8, Ubuntu <= 14 + - openjdk-8-jre-headless # Debian 9, Ubuntu 16 + - openjdk8-jre # FreeBSD + +libtool: + - libtool-bin # Debian, Ubuntu 16 + - libtool # CentOS, Fedora, FreeBSD, Ubuntu <= 14 + +libtoolize: + - libtool + +make: + - gmake # FreeBSD + - make # CentOS, Debian, Fedora, Ubuntu + +pkg-config: + - pkgconf # Debian, FreeBSD, Ubuntu >= 14 + - pkgconfig # CentOS, Fedora, Ubuntu 12 + +qemu-img: + - qemu-img # CentOS, Fedora + - qemu-utils # Debian, FreeBSD, Ubuntu + +scrub: + - diskscrub # FreeBSD + - scrub # CentOS, Debian, Fedora Ubuntu + +showmount: + - nfs-common # Debian, Ubuntu + - nfs-utils # CentOS, Fedora + +valac: + - vala # CentOS, Fedora, FreeBSD + - valac # Debian, Ubuntu + +xmllint: + - libxml2 # CentOS, Fedora, FreeBSD + - libxml2-utils # Debian, Ubuntu + +xsltproc: + - libxslt # CentOS, Fedora, FreeBSD + - xsltproc # Debian, Ubuntu + +zfs: + - zfs-fuse # CentOS, Debian, Fedora, Ubuntu diff --git a/ansible/mappings/libraries.yml b/ansible/mappings/libraries.yml new file mode 100644 index 0000000..e827fd3 --- /dev/null +++ b/ansible/mappings/libraries.yml @@ -0,0 +1,228 @@ +--- +avahi: + - avahi # FreeBSD + - avahi-devel # CentOS, Fedora + - libavahi-client-dev # Debian, Ubuntu + +check: + - check # Debian, FreeBSD, Ubuntu + - check-devel # CentOS, Fedora + +cyrus-sasl: + - cyrus-sasl # FreeBSD + - cyrus-sasl-devel # CentOS, Fedora + - libsasl2-dev # Debian, Ubuntu + +device-mapper: + - device-mapper-devel # CentOS, Fedora + - libdevmapper-dev # Debian, Ubuntu + +fuse: + - fuse-devel # CentOS, Fedora + - fusefs-libs # FreeBSD + - libfuse-dev # Debian, Ubuntu + +glib2: + - glib # FreeBSD + - glib2-devel # CentOS, Fedora + - libglib2.0-dev # Debian, Ubuntu + +glibc6: + - glibc-devel # CentOS, Fedora + - libc6-dev # Debian, Ubuntu + +glusterfs: + - glusterfs # FreeBSD + - glusterfs-api-devel # CentOS, Fedora + - glusterfs-client # Debian, Ubuntu + +gnutls: + - gnutls # FreeBSD + - gnutls-devel # CentOS, Fedora + - libgnutls-dev # Ubuntu <= 14 + - libgnutls28-dev # Debian, Ubuntu 16 + +gobject-introspection: + - gobject-introspection # FreeBSD + - gobject-introspection-devel # CentOS, Fedora + - libgirepository1.0-dev # Debian, Ubuntu + +gtk-vnc2: + - gtk-vnc # FreeBSD + - gtk-vnc2-devel # CentOS, Fedora + - libgtk-vnc-2.0-dev # Debian, Ubuntu + +gtk3: + - gtk3 # FreeBSD + - gtk3-devel # CentOS, Fedora + - libgtk-3-dev # Debian, Ubuntu + +libacl: + - libacl-devel # CentOS, Fedora + - libacl1-dev # Debian, Ubuntu + +libattr: + - libattr-devel # CentOS, Fedora + - libattr1-dev # Debian, Ubuntu + +libaudit: + - audit-libs-devel # CentOS, Fedora + - libaudit-dev # Debian, Ubuntu + +libarchive: + - libarchive # FreeBSD + - libarchive-dev # Debian, Ubuntu + - libarchive-devel # CentOS, Fedora + +libblkid: + - libblkid-dev # Debian, Ubuntu + - libblkid-devel # CentOS, Fedora + +libcap-ng: + - libcap-ng-dev # Debian, Ubuntu + - libcap-ng-devel # CentOS, Fedora + +libcurl: + - curl # FreeBSD + - libcurl-devel # CentOS, Fedora + - libcurl4-gnutls-dev # Debian, Ubuntu + +libdbus: + - dbus # FreeBSD + - dbus-devel # CentOS, Fedora + - libdbus-1-dev # Debian, Ubuntu + +libgovirt: + - libgovirt-dev # Debian, Ubuntu + - libgovirt-devel # Fedora + +libnl3: + - libnl-3-dev # Debian, Ubuntu + - libnl3-devel # CentOS, Fedora + +libnlroute3: + - libnl-route-3-dev # Debian, Ubuntu + - libnl3-devel # CentOS, Fedora + +libparted: + - libparted-dev # Debian, Ubuntu + - parted-devel # CentOS, Fedora + +libpcap: + - libpcap # FreeBSD + - libpcap-dev # Debian, Ubuntu + - libpcap-devel # CentOS, Fedora + +libpciaccess: + - libpciaccess # FreeBSD + - libpciaccess-dev # Debian, Ubuntu + - libpciaccess-devel # CentOS, Fedora + +librbd: + - librbd-dev # Debian, Ubuntu + - librbd-devel # Fedora + - librbd1-devel # CentOS + +libselinux: + - libselinux-devel # CentOS, Fedora + - libselinux1-dev # Debian, Ubuntu + +libsoup: + - libsoup # FreeBSD + - libsoup-devel # CentOS, Fedora + - libsoup2.4-dev # Debian, Ubuntu + +libssh: + - libssh # FreeBSD + - libssh-devel # CentOS, Fedora + - libssh-gcrypt-dev # Debian + +libssh2: + - libssh2 # FreeBSD + - libssh2-1-dev # Debian, Ubuntu + - libssh2-devel # CentOS, Fedora + +libudev: + - libudev-dev # Debian, Ubuntu + - libudev-devel # CentOS, Fedora + +libvirt: + - libvirt # FreeBSD + - libvirt-dev # Debian, Ubuntu + - libvirt-devel # CentOS, Fedora + +libvirt-glib: + - libvirt-glib # FreeBSD + - libvirt-glib-1.0-dev # Debian, Ubuntu + - libvirt-glib-devel # CentOS, Fedora + +libvirt-gobject: + - libvirt-glib # FreeBSD + - libvirt-glib-1.0-dev # Debian, Ubuntu + - libvirt-gobject-devel # CentOS, Fedora + +libxml2: + - libxml2 # FreeBSD + - libxml2-devel # CentOS, Fedora + - libxml2-dev # Debian, Ubuntu + +libxslt: + - libxslt # FreeBSD + - libxslt-devel # CentOS, Fedora + - libxslt1-dev # Debian, Ubuntu + +netcf: + - netcf-devel # CentOS, Fedora + - libnetcf-dev # Debian, Ubuntu + +numactl: + - libnuma-dev # Debian, Ubuntu + - numactl-devel # CentOS, Fedora + +openssl: + - libssl-dev # Debian, Ubuntu + - openssl-devel # CentOS, Fedora + +openwsman: + - libopenwsman-dev # Ubuntu + - libwsman-devel # CentOS, Fedora + +polkit: + - policykit-1 # Debian, Ubuntu + - polkit # FreeBSD + - polkit-devel # CentOS, Fedora + +readline: + - libreadline-dev # Debian, Ubuntu + - readline # FreeBSD + - readline-devel # CentOS, Fedora + +sanlock: + - libsanlock-dev # Debian, Ubuntu + - sanlock-devel # CentOS, Fedora + +spice-gtk3: + - libspice-client-gtk-3.0-dev # Debian, Ubuntu + - spice-gtk # FreeBSD + - spice-gtk3-devel # CentOS, Fedora + +wireshark: + - wireshark-dev # Debian, Ubuntu + - wireshark-devel # Fedora + +xen: + - libxen-dev # Debian, Ubuntu + - xen-devel # Fedora + +xz: + - liblzma-dev # Debian, Ubuntu + - xz-devel # CentOS, Fedora + +yajl: + - libyajl-dev # Debian, Ubuntu + - yajl # FreeBSD + - yajl-devel # CentOS, Fedora + +zlib: + - zlib1g-dev # Debian, Ubuntu + - zlib-devel # CentOS, Fedora diff --git a/ansible/mappings/misc.yml b/ansible/mappings/misc.yml new file mode 100644 index 0000000..4882b72 --- /dev/null +++ b/ansible/mappings/misc.yml @@ -0,0 +1,13 @@ +--- +test-screenshot: + - libvirt # FreeBSD + - libvirt-daemon # Debian, Ubuntu + - libvirt-libs # CentOS, Fedora + +pci-ids: + - hwdata # CentOS, Debian, Fedora, Ubuntu + - pciids # FreeBSD + +usb-ids: + - hwdata # CentOS, Debian, Fedora, Ubuntu + - usbids # FreeBSD diff --git a/ansible/mappings/perl.yml b/ansible/mappings/perl.yml new file mode 100644 index 0000000..97f799d --- /dev/null +++ b/ansible/mappings/perl.yml @@ -0,0 +1,112 @@ +--- +accessors: + - libaccessors-perl # Debian, Ubuntu + - p5-accessors # FreeBSD + - perl-accessors # CentOS, Fedora + +Config::Record: + - libconfig-record-perl # Debian, Ubuntu + - p5-Config-Record # FreeBSD + - perl-Config-Record # CentOS, Fedora + +CPAN::Changes: + - libcpan-changes-perl # Debian, Ubuntu + - p5-CPAN-Changes # FreeBSD + - perl-CPAN-Changes # CentOS, Fedora + +Digest: + - libdigest-perl # Debian, Ubuntu + - p5-Digest # FreeBSD + - perl-Digest # CentOS, Fedora + +Digest::MD5: + - libdigest-perl-md5-perl # Debian, Ubuntu + - p5-Digest-MD5 # FreeBSD + - perl-Digest-MD5 # CentOS, Fedora + +ExtUtils::MakeMaker: + - p5-ExtUtils-MakeMaker # FreeBSD + - perl-ExtUtils-MakeMaker # CentOS, Fedora + +File::Slurp: + - libfile-slurp-perl # Debian, Ubuntu + - p5-File-Slurp # FreeBSD + - perl-File-Slurp # CentOS, Fedora + +IO::Compress:Bzip2: + - libio-compress-perl # Debian, Ubuntu + - p5-IO-Compress # FreeBSD + - perl-IO-Compress-Bzip2 # CentOS, Fedora + +IO::String: + - libio-string-perl # Debian, Ubuntu + - p5-IO-String # FreeBSD + - perl-IO-String # CentOS, Fedora + +Module::Build: + - libmodule-build-perl # Debian, Ubuntu + - p5-Module-Build # FreeBSD + - perl-Module-Build # CentOS, Fedora + +Sub::Uplevel: + - libsub-uplevel-perl # Debian, Ubuntu + - p5-Sub-Uplevel # FreeBSD + - perl-Sub-Uplevel # CentOS, Fedora + +Sys::Virt: + - libsys-virt-perl # Debian, Ubuntu + - p5-Sys-Virt # FreeBSD + - perl-Sys-Virt # CentOS, Fedora + +TAP::Formatter::HTML: + - libtap-formatter-html-perl # Debian, Ubuntu + - perl-TAP-Formatter-HTML # CentOS, Fedora + +TAP::Formatter::JUnit: + - libtap-formatter-junit-perl # Debian, Ubuntu + - p5-TAP-Formatter-JUnit # FreeBSD + - perl-TAP-Formatter-JUnit # CentOS, Fedora + +TAP::Harness::Archive: + - libtap-harness-archive-perl # Debian, Ubuntu + - perl-TAP-Harness-Archive # CentOS, Fedora + +Test::Exception: + - libtest-exception-perl # Debian, Ubuntu + - p5-Test-Exception # FreeBSD + - perl-Test-Exception # CentOS, Fedora + +Test::LWP::UserAgent: + - libtest-lwp-useragent-perl # Debian, Ubuntu + - p5-Test-LWP-UserAgent # FreeBSD + - perl-Test-LWP-UserAgent # CentOS, Fedora + +Test::Pod: + - libtest-pod-perl # Debian, Ubuntu + - p5-Test-Pod # FreeBSD + - perl-Test-Pod # CentOS, Fedora + +Test::Pod::Coverage: + - libtest-pod-coverage-perl # Debian, Ubuntu + - p5-Test-Pod-Coverage # FreeBSD + - perl-Test-Pod-Coverage # CentOS, Fedora + +Time::HiRes: + - libtime-hr-perl # Debian, Ubuntu + - p5-Time-HiRes # FreeBSD + - perl-Time-HiRes # CentOS, Fedora + +XML::Twig: + - libxml-twig-perl # Debian, Ubuntu + - p5-XML-Twig # FreeBSD + - perl-XML-Twig # CentOS, Fedora + +XML::Writer: + - libxml-writer-perl # Debian, Ubuntu + - p5-XML-Writer # FreeBSD + - perl-XML-Writer # CentOS, Fedora + +XML::XPath: + - libxml-xpath-perl # Debian, Ubuntu + - p5-XML-XPath # FreeBSD + - perl-XML-XPath # CentOS, Fedora diff --git a/ansible/mappings/python.yml b/ansible/mappings/python.yml new file mode 100644 index 0000000..e650db7 --- /dev/null +++ b/ansible/mappings/python.yml @@ -0,0 +1,35 @@ +--- +gi: + - py27-gobject3 # FreeBSD + - python-gi # Debian, Ubuntu + - python-gobject # CentOS, Fedora + +ipaddr: + - py27-ipaddr # FreeBSD + - python-ipaddr # CentOS, Debian, Fedora, Ubuntu + +libosinfo: + - gir1.2-libosinfo-1.0 # Debian, Ubuntu + - libosinfo # CentOS, Fedora, FreeBSD + +libxml2: + - libxml2-python # Debian, Ubuntu + - py27-libxml2 # FreeBSD + - python-libxml2 # CentOS, Fedora + +lxml: + - py27-lxml # FreeBSD + - python-lxml # CentOS, Debian, Fedora, Ubuntu + +nose: + - py27-nose # FreeBSD + - python-nose # CentOS, Debian, Fedora, Ubuntu + +requests: + - py27-requests # FreeBSD + - python-requests # CentOS, Debian, Ubuntu + - python2-requests # Fedora + +libvirt: + - libvirt-python # CentOS, Debian, Fedora, Ubuntu + - py27-libvirt # FreeBSD -- 2.13.6
participants (2)
-
Andrea Bolognani
-
Daniel P. Berrange