[libvirt] [libvit-jenkins-ci PATCH v2 00/16] Ansible all the things!

Changes from [v1]: * drop support for building projects; * reduce redundancy by using mappings; * add FreeBSD 10 support. [v1] https://www.redhat.com/archives/libvir-list/2017-October/msg00035.html Andrea Bolognani (16): ansible: Initial support 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/.gitignore | 3 + ansible/Makefile | 12 + ansible/README.markdown | 60 ++ ansible/ansible.cfg | 9 + ansible/bootstrap.yml | 15 + ansible/group_vars/all/main.yml | 10 + 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-10/main.yml | 25 + ansible/host_vars/libvirt-freebsd-10/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 | 9 + ansible/site.yml | 27 + ansible/tasks/base.yml | 108 ++++ ansible/tasks/bootstrap.yml | 22 + ansible/tasks/compat.yml | 31 + ansible/tasks/jenkins.yml | 59 ++ ansible/tasks/packages.yml | 66 ++ ansible/templates/jenkins.service.j2 | 14 + ansible/vars/mappings.yml | 684 +++++++++++++++++++++ ansible/vars/projects/base.yml | 17 + ansible/vars/projects/jenkins.yml | 3 + ansible/vars/projects/libosinfo.yml | 15 + ansible/vars/projects/libvirt-cim.yml | 8 + ansible/vars/projects/libvirt-glib.yml | 8 + ansible/vars/projects/libvirt-go-xml.yml | 3 + ansible/vars/projects/libvirt-go.yml | 3 + ansible/vars/projects/libvirt-perl.yml | 8 + ansible/vars/projects/libvirt-python.yml | 8 + ansible/vars/projects/libvirt-sandbox.yml | 14 + ansible/vars/projects/libvirt-tck.yml | 21 + ansible/vars/projects/libvirt.yml | 78 +++ ansible/vars/projects/osinfo-db-tools.yml | 8 + ansible/vars/projects/osinfo-db.yml | 4 + ansible/vars/projects/virt-manager.yml | 7 + ansible/vars/projects/virt-viewer.yml | 10 + 55 files changed, 1672 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-10/main.yml create mode 100644 ansible/host_vars/libvirt-freebsd-10/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/site.yml create mode 100644 ansible/tasks/base.yml create mode 100644 ansible/tasks/bootstrap.yml create mode 100644 ansible/tasks/compat.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/mappings.yml create mode 100644 ansible/vars/projects/base.yml create mode 100644 ansible/vars/projects/jenkins.yml create mode 100644 ansible/vars/projects/libosinfo.yml create mode 100644 ansible/vars/projects/libvirt-cim.yml create mode 100644 ansible/vars/projects/libvirt-glib.yml create mode 100644 ansible/vars/projects/libvirt-go-xml.yml create mode 100644 ansible/vars/projects/libvirt-go.yml create mode 100644 ansible/vars/projects/libvirt-perl.yml create mode 100644 ansible/vars/projects/libvirt-python.yml create mode 100644 ansible/vars/projects/libvirt-sandbox.yml create mode 100644 ansible/vars/projects/libvirt-tck.yml create mode 100644 ansible/vars/projects/libvirt.yml create mode 100644 ansible/vars/projects/osinfo-db-tools.yml create mode 100644 ansible/vars/projects/osinfo-db.yml create mode 100644 ansible/vars/projects/virt-manager.yml create mode 100644 ansible/vars/projects/virt-viewer.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/README.markdown | 60 ++++++++++++ ansible/ansible.cfg | 8 ++ ansible/bootstrap.yml | 15 +++ 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-10/main.yml | 10 ++ 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 | 9 ++ ansible/site.yml | 19 ++++ ansible/tasks/base.yml | 108 ++++++++++++++++++++++ ansible/tasks/bootstrap.yml | 22 +++++ ansible/tasks/packages.yml | 66 +++++++++++++ ansible/vars/mappings.yml | 88 ++++++++++++++++++ ansible/vars/projects/base.yml | 17 ++++ 25 files changed, 485 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-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-10/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/packages.yml create mode 100644 ansible/vars/mappings.yml create mode 100644 ansible/vars/projects/base.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/README.markdown b/ansible/README.markdown new file mode 100644 index 0000000..4d464e1 --- /dev/null +++ b/ansible/README.markdown @@ -0,0 +1,60 @@ +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. + + +Requirements +------------ + +SSH must be running in the guest, and root login must be permitted. + + +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. 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..544dd9d --- /dev/null +++ b/ansible/bootstrap.yml @@ -0,0 +1,15 @@ +--- +- hosts: all + gather_facts: no + + tasks: + + # Bootstrap Ansible itself + - include: tasks/bootstrap.yml + +- hosts: all + + tasks: + + # Prepare the base environment + - 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-10/main.yml b/ansible/host_vars/libvirt-freebsd-10/main.yml new file mode 100644 index 0000000..d405d58 --- /dev/null +++ b/ansible/host_vars/libvirt-freebsd-10/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-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..d9d6f5f --- /dev/null +++ b/ansible/inventory @@ -0,0 +1,9 @@ +libvirt-centos-6 +libvirt-centos-7 +libvirt-debian-8 +libvirt-debian-9 +libvirt-fedora-25 +libvirt-fedora-26 +libvirt-fedora-rawhide +libvirt-freebsd-10 +libvirt-freebsd-11 diff --git a/ansible/site.yml b/ansible/site.yml new file mode 100644 index 0000000..c6e6152 --- /dev/null +++ b/ansible/site.yml @@ -0,0 +1,19 @@ +--- +- hosts: all + + vars_files: + - vars/mappings.yml + + tasks: + + # Prepare the base environment + - 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..dd8d306 --- /dev/null +++ b/ansible/tasks/base.yml @@ -0,0 +1,108 @@ +--- +- name: Set additional facts (OS) + set_fact: + os_name: '{{ ansible_distribution }}' + os_version: '{{ ansible_distribution_major_version }}' + when: + - ansible_distribution_release != 'Rawhide' + +- name: Set additional facts (OS) + set_fact: + os_name: '{{ ansible_distribution }}' + os_version: Rawhide + when: + - ansible_distribution_release == 'Rawhide' + +- name: Set additional facts (package format) + set_fact: + package_format: deb + when: + - ( os_name == 'Debian' or + os_name == 'Ubuntu' ) + +- name: Set additional facts (package format) + set_fact: + package_format: pkg + when: + - os_name == 'FreeBSD' + +- name: Set additional facts (package format) + set_fact: + package_format: rpm + when: + - ( os_name == 'CentOS' or + os_name == 'Fedora' ) + +- name: Bootstrap the package module + command: apt-get install -y python-apt + args: + creates: /usr/lib/python2*/*-packages/apt + when: + - package_format == 'deb' + +- name: Bootstrap the package module + command: dnf install -y python2-dnf + args: + creates: /usr/lib*/python2*/*-packages/dnf + when: + - os_name == 'Fedora' + +- name: Update installed packages + package: + name: '*' + state: latest + when: + - package_format == 'rpm' + +- name: Update installed packages + apt: + upgrade: dist + update_cache: yes + when: + - package_format == 'deb' + +- name: Update installed packages + shell: pkg update && pkg upgrade -y + when: + - package_format == 'pkg' + +- 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/packages.yml b/ansible/tasks/packages.yml new file mode 100644 index 0000000..807b5c4 --- /dev/null +++ b/ansible/tasks/packages.yml @@ -0,0 +1,66 @@ +--- +- name: '{{ project }}: Load variables' + include_vars: + file: 'vars/projects/{{ project }}.yml' + +- set_fact: + temp: {} + +- name: '{{ project }}: Verify mappings' + fail: + msg: 'No mappings defined for {{ item }}' + with_items: + '{{ packages }}' + when: + - mappings[item] is undefined + +- name: '{{ project }}: Look up mappings (default)' + set_fact: + temp: '{{ temp|combine({ item: mappings[item]["default"] }) }}' + with_items: + '{{ packages }}' + when: + - mappings[item]["default"] is defined + +- name: '{{ project }}: Look up mappings (package format)' + set_fact: + temp: '{{ temp|combine({ item: mappings[item][package_format] }) }}' + with_items: + '{{ packages }}' + when: + - mappings[item][package_format] is defined + +- name: '{{ project }}: Look up mappings (OS name)' + set_fact: + temp: '{{ temp|combine({ item: mappings[item][os_name] }) }}' + with_items: + '{{ packages }}' + when: + - mappings[item][os_name] is defined + +- name: '{{ project }}: Look up mappings (OS version)' + set_fact: + temp: '{{ temp|combine({ item: mappings[item][os_name + os_version] }) }}' + with_items: + '{{ packages }}' + when: + - mappings[item][os_name + os_version] is defined + +- set_fact: + flattened: [] + +- name: '{{ project }}: Flatten package list' + set_fact: + flattened: '{{ flattened }} + [ "{{ temp[item] }}" ]' + with_items: + '{{ temp }}' + when: + - temp[item] != None + - temp[item] not in flattened + +- name: '{{ project }}: Install packages' + package: + name: '{{ item }}' + state: present + with_items: + '{{ flattened|sort }}' diff --git a/ansible/vars/mappings.yml b/ansible/vars/mappings.yml new file mode 100644 index 0000000..e9639eb --- /dev/null +++ b/ansible/vars/mappings.yml @@ -0,0 +1,88 @@ +--- +# Mappings are used to map the generic packages name used to define projects +# to the specific package names used by each OS. They implement inheritance, +# so you can define them without repeating yourself too much. +# +# Inheritance works the way you'd expect, that is, in order of increasing +# priority: +# +# - default +# - package format (deb, pkg, rpm) +# - OS name (CentOS, Debian, Fedora, FreeBSD, Ubuntu) +# - OS version (CentOS6, Debian9, FedoraRawhide, Ubuntu14 and so on) +# +# So something like +# +# make: +# default: make +# FreeBSD: gmake +# +# will result in the 'make' package being installed everywhere except +# for FreeBSD, where 'gmake' will be used instead. Clearing out existing +# mappings is possible as well, so +# +# ccache: +# default: ccache +# CentOS: +# +# will result in the 'ccache' package being installed everywhere except +# for CentOS, where nothing will be installed. + +mappings: + + autoconf: + default: autoconf + + automake: + default: automake + + autopoint: + deb: autopoint + pkg: gettext-tools + rpm: gettext-devel + + ccache: + default: ccache + CentOS: + + cppi: + Fedora: cppi + FreeBSD: cppi + + gcc: + default: gcc + FreeBSD: + + gettext: + default: gettext + + glibc: + deb: libc6-dev + rpm: glibc-devel + + libtool: + default: libtool + Debian: libtool-bin + Ubuntu16: libtool-bin + + libtoolize: + default: libtool + + make: + default: make + FreeBSD: gmake + + patch: + default: patch + + perl: + default: perl + FreeBSD: perl5 + + pkg-config: + default: pkgconf + rpm: pkgconfig + Ubuntu12: pkg-config + + rpmbuild: + rpm: rpm-build diff --git a/ansible/vars/projects/base.yml b/ansible/vars/projects/base.yml new file mode 100644 index 0000000..d82f6b9 --- /dev/null +++ b/ansible/vars/projects/base.yml @@ -0,0 +1,17 @@ +--- +packages: + - autoconf + - automake + - autopoint + - ccache + - cppi + - gcc + - gettext + - glibc + - libtool + - libtoolize + - make + - patch + - perl + - pkg-config + - rpmbuild -- 2.13.6

On Fri, 2017-10-06 at 14:48 +0200, Andrea Bolognani wrote:
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
This won't work. Assume diff --git a/ansible/ansible.cfg b/ansible/ansible.cfg index ca02677..6b18c57 100644 --- a/ansible/ansible.cfg +++ b/ansible/ansible.cfg @@ -4,5 +4,7 @@ forks = 16 inventory = ./inventory log_path = ./log nocows = 1 -pipelining = True squash_actions = package + +[ssh_connection] +pipelining = True has been squashed in. -- 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-10/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/vars/mappings.yml | 57 +++++++++++++++++++++++ ansible/vars/projects/libosinfo.yml | 15 ++++++ 12 files changed, 82 insertions(+) create mode 100644 ansible/vars/projects/libosinfo.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-10/main.yml b/ansible/host_vars/libvirt-freebsd-10/main.yml index d405d58..81e362d 100644 --- a/ansible/host_vars/libvirt-freebsd-10/main.yml +++ b/ansible/host_vars/libvirt-freebsd-10/main.yml @@ -8,3 +8,4 @@ sudo: /usr/local/bin/sudo 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/vars/mappings.yml b/ansible/vars/mappings.yml index e9639eb..f76816b 100644 --- a/ansible/vars/mappings.yml +++ b/ansible/vars/mappings.yml @@ -45,6 +45,10 @@ mappings: default: ccache CentOS: + check: + default: check + rpm: check-devel + cppi: Fedora: cppi FreeBSD: cppi @@ -56,10 +60,36 @@ mappings: gettext: default: gettext + glib2: + deb: libglib2.0-dev + pkg: glib + rpm: glib2-devel + glibc: deb: libc6-dev rpm: glibc-devel + gnome-common: + default: gnome-common + + gobject-introspection: + deb: libgirepository1.0-dev + pkg: gobject-introspection + rpm: gobject-introspection-devel + CentOS6: + + gtk-doc: + default: gtk-doc + deb: gtk-doc-tools + + intltool: + default: intltool + + libsoup: + deb: libsoup2.4-dev + pkg: libsoup + rpm: libsoup-devel + libtool: default: libtool Debian: libtool-bin @@ -68,6 +98,16 @@ mappings: libtoolize: default: libtool + libxml2: + deb: libxml2-dev + pkg: libxml2 + rpm: libxml2-devel + + libxslt: + deb: libxslt1-dev + pkg: libxslt + rpm: libxslt-devel + make: default: make FreeBSD: gmake @@ -75,6 +115,10 @@ mappings: patch: default: patch + pci-ids: + default: hwdata + FreeBSD: pciids + perl: default: perl FreeBSD: perl5 @@ -86,3 +130,16 @@ mappings: rpmbuild: rpm: rpm-build + + usb-ids: + default: hwdata + FreeBSD: usbids + + vala: + default: vala + deb: valac + CentOS6: + + xmllint: + default: libxml2 + deb: libxml2-utils diff --git a/ansible/vars/projects/libosinfo.yml b/ansible/vars/projects/libosinfo.yml new file mode 100644 index 0000000..1ecf483 --- /dev/null +++ b/ansible/vars/projects/libosinfo.yml @@ -0,0 +1,15 @@ +--- +packages: + - check + - glib2 + - gnome-common + - gobject-introspection + - gtk-doc + - intltool + - libsoup + - libxml2 + - libxslt + - pci-ids + - usb-ids + - vala + - xmllint -- 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-10/main.yml | 1 + ansible/host_vars/libvirt-freebsd-11/main.yml | 1 + ansible/host_vars/libvirt-ubuntu-12/main.yml | 1 + ansible/host_vars/libvirt-ubuntu-14/main.yml | 1 + ansible/host_vars/libvirt-ubuntu-16/main.yml | 1 + ansible/site.yml | 1 + ansible/tasks/compat.yml | 31 +++ ansible/vars/mappings.yml | 296 ++++++++++++++++++++++ ansible/vars/projects/libvirt.yml | 78 ++++++ 16 files changed, 418 insertions(+) create mode 100644 ansible/tasks/compat.yml create mode 100644 ansible/vars/projects/libvirt.yml diff --git a/ansible/host_vars/libvirt-centos-6/main.yml b/ansible/host_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-10/main.yml b/ansible/host_vars/libvirt-freebsd-10/main.yml index 81e362d..a8766a0 100644 --- a/ansible/host_vars/libvirt-freebsd-10/main.yml +++ b/ansible/host_vars/libvirt-freebsd-10/main.yml @@ -9,3 +9,4 @@ sudo: /usr/local/bin/sudo projects: - base - libosinfo + - libvirt diff --git a/ansible/host_vars/libvirt-freebsd-11/main.yml b/ansible/host_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 c6e6152..907a35b 100644 --- a/ansible/site.yml +++ b/ansible/site.yml @@ -8,6 +8,7 @@ # Prepare the base environment - include: tasks/base.yml + - include: tasks/compat.yml # Install build dependencies for each project - include: tasks/packages.yml diff --git a/ansible/tasks/compat.yml b/ansible/tasks/compat.yml new file mode 100644 index 0000000..001b5c6 --- /dev/null +++ b/ansible/tasks/compat.yml @@ -0,0 +1,31 @@ +--- +# libvirt can't detect these automatically at the moment, so a kludge +# is required. Can be dropped it as soon as libvirt has been fixed +- name: Create compatibility symlinks + file: + src: '/usr/local/{{ item }}' + dest: '/usr/{{ item }}' + state: link + force: yes + with_items: + - include/sasl + - include/yajl + - lib/libsasl2.so + - lib/libyajl.so + when: + - os_name == 'FreeBSD' + +# Same as above, except we only need to do it on FreeBSD 11 because +# FreeBSD 10 shipped (an old version of) readline in the base system +- name: Create compatibility symlinks + file: + src: '/usr/local/{{ item }}' + dest: '/usr/{{ item }}' + state: link + force: yes + with_items: + - include/readline + - lib/libreadline.so + when: + - os_name == 'FreeBSD' + - os_version == '11' diff --git a/ansible/vars/mappings.yml b/ansible/vars/mappings.yml index f76816b..0230047 100644 --- a/ansible/vars/mappings.yml +++ b/ansible/vars/mappings.yml @@ -30,6 +30,13 @@ mappings: + apparmor: + deb: libapparmor-dev + + augeas: + default: augeas + deb: augeas-tools + autoconf: default: autoconf @@ -41,6 +48,11 @@ mappings: pkg: gettext-tools rpm: gettext-devel + avahi: + deb: libavahi-client-dev + pkg: avahi + rpm: avahi-devel + ccache: default: ccache CentOS: @@ -53,6 +65,32 @@ mappings: Fedora: cppi FreeBSD: cppi + cyrus-sasl: + deb: libsasl2-dev + pkg: cyrus-sasl + rpm: cyrus-sasl-devel + + device-mapper: + deb: libdevmapper-dev + rpm: device-mapper-devel + + dnsmasq: + default: dnsmasq + deb: dnsmasq-base + + dtrace: + deb: systemtap-sdt-dev + rpm: systemtap-sdt-devel + + ebtables: + default: ebtables + FreeBSD: + + fuse: + deb: libfuse-dev + pkg: fusefs-libs + rpm: fuse-devel + gcc: default: gcc FreeBSD: @@ -69,9 +107,21 @@ mappings: deb: libc6-dev rpm: glibc-devel + glusterfs: + deb: glusterfs-client + pkg: glusterfs + rpm: glusterfs-api-devel + gnome-common: default: gnome-common + gnutls: + deb: libgnutls28-dev + pkg: gnutls + rpm: gnutls-devel + Ubuntu12: libgnutls-dev + Ubuntu14: libgnutls-dev + gobject-introspection: deb: libgirepository1.0-dev pkg: gobject-introspection @@ -82,14 +132,102 @@ mappings: default: gtk-doc deb: gtk-doc-tools + hal: + FreeBSD: hal + Ubuntu12: libhal-dev + intltool: default: intltool + iscsiadm: + deb: open-iscsi + rpm: iscsi-initiator-utils + + libacl: + deb: libacl1-dev + rpm: libacl-devel + + libattr: + deb: libattr1-dev + rpm: libattr-devel + + libaudit: + deb: libaudit-dev + rpm: audit-libs-devel + + libblkid: + deb: libblkid-dev + rpm: libblkid-devel + + libcap-ng: + deb: libcap-ng-dev + rpm: libcap-ng-devel + + libcurl: + deb: libcurl4-gnutls-dev + pkg: curl + rpm: libcurl-devel + + libdbus: + deb: libdbus-1-dev + pkg: dbus + rpm: dbus-devel + + libnl: + CentOS6: libnl-devel + + libnl3: + deb: libnl-3-dev + rpm: libnl3-devel + + libnlroute3: + deb: libnl-route-3-dev + rpm: libnl3-devel + + libnuma: + deb: libnuma-dev + rpm: numactl-devel + + libparted: + deb: libparted-dev + rpm: parted-devel + + libpcap: + deb: libpcap-dev + pkg: libpcap + rpm: libpcap-devel + + libpciaccess: + deb: libpciaccess-dev + pkg: libpciaccess + rpm: libpciaccess-devel + + librbd: + deb: librbd-dev + Fedora: librbd-devel + CentOS7: librbd1-devel + + libselinux: + deb: libselinux1-dev + rpm: libselinux-devel + libsoup: deb: libsoup2.4-dev pkg: libsoup rpm: libsoup-devel + libssh: + pkg: libssh + rpm: libssh-devel + Debian: libssh-gcrypt-dev + Ubuntu: libssh-dev + CentOS6: + + libssh2: + deb: libssh2-1-dev + pkg: libssh2 + rpm: libssh2-devel + libtool: default: libtool Debian: libtool-bin @@ -98,6 +236,10 @@ mappings: libtoolize: default: libtool + libudev: + deb: libudev-dev + rpm: libudev-devel + libxml2: deb: libxml2-dev pkg: libxml2 @@ -108,10 +250,105 @@ mappings: pkg: libxslt rpm: libxslt-devel + lvm2: + default: lvm2 + FreeBSD: + make: default: make FreeBSD: gmake + mingw32-curl: + FedoraRawhide: mingw32-curl + + mingw32-dbus: + FedoraRawhide: mingw32-dbus + + mingw32-dlfcn: + FedoraRawhide: mingw32-dlfcn + + mingw32-gcc: + FedoraRawhide: mingw32-gcc + + mingw32-gettext: + FedoraRawhide: mingw32-gettext + + mingw32-gnutls: + FedoraRawhide: mingw32-gnutls + + mingw32-libssh2: + FedoraRawhide: mingw32-libssh2 + + mingw32-libxml2: + FedoraRawhide: mingw32-libxml2 + + mingw32-openssl: + FedoraRawhide: mingw32-openssl + + mingw32-pkg-config: + FedoraRawhide: mingw32-pkg-config + + mingw32-portablexdr: + FedoraRawhide: mingw32-portablexdr + + mingw32-readline: + FedoraRawhide: mingw32-readline + + mingw64-curl: + FedoraRawhide: mingw64-curl + + mingw64-dbus: + FedoraRawhide: mingw64-dbus + + mingw64-dlfcn: + FedoraRawhide: mingw64-dlfcn + + mingw64-gcc: + FedoraRawhide: mingw64-gcc + + mingw64-gettext: + FedoraRawhide: mingw64-gettext + + mingw64-gnutls: + FedoraRawhide: mingw64-gnutls + + mingw64-libssh2: + FedoraRawhide: mingw64-libssh2 + + mingw64-libxml2: + FedoraRawhide: mingw64-libxml2 + + mingw64-openssl: + FedoraRawhide: mingw64-openssl + + mingw64-pkg-config: + FedoraRawhide: mingw64-pkg-config + + mingw64-portablexdr: + FedoraRawhide: mingw64-portablexdr + + mingw64-readline: + FedoraRawhide: mingw64-readline + + netcf: + deb: libnetcf-dev + rpm: netcf-devel + + numad: + default: numad + FreeBSD: + Debian8: + Ubuntu12: + Ubuntu14: + + openwsman: + rpm: libwsman-devel + Ubuntu: libopenwsman-dev + + parted: + default: parted + FreeBSD: + patch: default: patch @@ -128,9 +365,44 @@ mappings: rpm: pkgconfig Ubuntu12: pkg-config + polkit: + deb: policykit-1 + pkg: polkit + rpm: polkit-devel + + qemu-img: + default: qemu-utils + rpm: qemu-img + + radvd: + default: radvd + + readline: + deb: libreadline-dev + pkg: readline + rpm: readline-devel + rpmbuild: rpm: rpm-build + sanlock: + deb: libsanlock-dev + rpm: sanlock-devel + Ubuntu12: + + scrub: + default: scrub + FreeBSD: diskscrub + + sheepdog: + default: sheepdog + CentOS: + FreeBSD: + + showmount: + deb: nfs-common + rpm: nfs-utils + usb-ids: default: hwdata FreeBSD: usbids @@ -140,6 +412,30 @@ mappings: deb: valac CentOS6: + wireshark: + deb: wireshark-dev + Fedora: wireshark-devel + Debian8: + Ubuntu14: + + xen: + deb: libxen-dev + Fedora: xen-devel + xmllint: default: libxml2 deb: libxml2-utils + + xsltproc: + default: libxslt + deb: xsltproc + + yajl: + deb: libyajl-dev + pkg: yajl + rpm: yajl-devel + + zfs: + default: zfs-fuse + CentOS: + FreeBSD: diff --git a/ansible/vars/projects/libvirt.yml b/ansible/vars/projects/libvirt.yml new file mode 100644 index 0000000..1c50499 --- /dev/null +++ b/ansible/vars/projects/libvirt.yml @@ -0,0 +1,78 @@ +--- +packages: + - apparmor + - augeas + - avahi + - cyrus-sasl + - device-mapper + - dnsmasq + - dtrace + - ebtables + - fuse + - glusterfs + - gnutls + - hal + - iscsiadm + - libacl + - libattr + - libaudit + - libblkid + - libcap-ng + - libcurl + - libdbus + - libnl + - libnl3 + - libnlroute3 + - libnuma + - libparted + - libpcap + - libpciaccess + - librbd + - libselinux + - libssh + - libssh2 + - libudev + - libxml2 + - lvm2 + - mingw32-curl + - mingw32-dbus + - mingw32-dlfcn + - mingw32-gcc + - mingw32-gettext + - mingw32-gnutls + - mingw32-libssh2 + - mingw32-libxml2 + - mingw32-openssl + - mingw32-pkg-config + - mingw32-portablexdr + - mingw32-readline + - mingw64-curl + - mingw64-dbus + - mingw64-dlfcn + - mingw64-gcc + - mingw64-gettext + - mingw64-gnutls + - mingw64-libssh2 + - mingw64-libxml2 + - mingw64-openssl + - mingw64-pkg-config + - mingw64-portablexdr + - mingw64-readline + - netcf + - numad + - openwsman + - parted + - polkit + - qemu-img + - radvd + - readline + - sanlock + - scrub + - sheepdog + - showmount + - wireshark + - xen + - xmllint + - xsltproc + - yajl + - zfs -- 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/vars/mappings.yml | 16 ++++++++++++++++ ansible/vars/projects/libvirt-cim.yml | 8 ++++++++ 7 files changed, 29 insertions(+) create mode 100644 ansible/vars/projects/libvirt-cim.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/vars/mappings.yml b/ansible/vars/mappings.yml index 0230047..4d4be6e 100644 --- a/ansible/vars/mappings.yml +++ b/ansible/vars/mappings.yml @@ -163,6 +163,14 @@ mappings: deb: libcap-ng-dev rpm: libcap-ng-devel + libcmpiutil: + rpm: libcmpiutil-devel + + libconfig: + deb: libconfig-dev + pkg: libconfig + rpm: libconfig-devel + libcurl: deb: libcurl4-gnutls-dev pkg: curl @@ -240,6 +248,11 @@ mappings: deb: libudev-dev rpm: libudev-devel + libuuid: + deb: uuid-dev + pkg: e2fsprogs-libuuid + rpm: libuuid-devel + libxml2: deb: libxml2-dev pkg: libxml2 @@ -412,6 +425,9 @@ mappings: deb: valac CentOS6: + wget: + default: wget + wireshark: deb: wireshark-dev Fedora: wireshark-devel diff --git a/ansible/vars/projects/libvirt-cim.yml b/ansible/vars/projects/libvirt-cim.yml new file mode 100644 index 0000000..d5a7cd7 --- /dev/null +++ b/ansible/vars/projects/libvirt-cim.yml @@ -0,0 +1,8 @@ +--- +packages: + - libcmpiutil + - libconfig + - libuuid + - libxml2 + - libxslt + - wget -- 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-10/main.yml | 1 + ansible/host_vars/libvirt-freebsd-11/main.yml | 1 + ansible/host_vars/libvirt-ubuntu-16/main.yml | 1 + ansible/vars/projects/libvirt-glib.yml | 8 ++++++++ 10 files changed, 17 insertions(+) create mode 100644 ansible/vars/projects/libvirt-glib.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-10/main.yml b/ansible/host_vars/libvirt-freebsd-10/main.yml index a8766a0..1acdd66 100644 --- a/ansible/host_vars/libvirt-freebsd-10/main.yml +++ b/ansible/host_vars/libvirt-freebsd-10/main.yml @@ -10,3 +10,4 @@ projects: - base - libosinfo - libvirt + - 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/vars/projects/libvirt-glib.yml b/ansible/vars/projects/libvirt-glib.yml new file mode 100644 index 0000000..13a5128 --- /dev/null +++ b/ansible/vars/projects/libvirt-glib.yml @@ -0,0 +1,8 @@ +--- +packages: + - glib2 + - gobject-introspection + - gtk-doc + - intltool + - libxml2 + - 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-10/main.yml | 1 + ansible/host_vars/libvirt-freebsd-11/main.yml | 1 + ansible/host_vars/libvirt-ubuntu-16/main.yml | 1 + ansible/vars/mappings.yml | 7 +++++++ ansible/vars/projects/libvirt-go.yml | 3 +++ 11 files changed, 19 insertions(+) create mode 100644 ansible/vars/projects/libvirt-go.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-10/main.yml b/ansible/host_vars/libvirt-freebsd-10/main.yml index 1acdd66..c2b059e 100644 --- a/ansible/host_vars/libvirt-freebsd-10/main.yml +++ b/ansible/host_vars/libvirt-freebsd-10/main.yml @@ -11,3 +11,4 @@ projects: - libosinfo - libvirt - 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/vars/mappings.yml b/ansible/vars/mappings.yml index 4d4be6e..a08e8aa 100644 --- a/ansible/vars/mappings.yml +++ b/ansible/vars/mappings.yml @@ -122,6 +122,13 @@ mappings: Ubuntu12: libgnutls-dev Ubuntu14: libgnutls-dev + go: + default: golang + FreeBSD: go + CentOS6: + Ubuntu12: + Ubuntu14: + gobject-introspection: deb: libgirepository1.0-dev pkg: gobject-introspection diff --git a/ansible/vars/projects/libvirt-go.yml b/ansible/vars/projects/libvirt-go.yml new file mode 100644 index 0000000..c06b9bb --- /dev/null +++ b/ansible/vars/projects/libvirt-go.yml @@ -0,0 +1,3 @@ +--- +packages: + - go -- 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-10/main.yml | 1 + ansible/host_vars/libvirt-freebsd-11/main.yml | 1 + ansible/host_vars/libvirt-ubuntu-16/main.yml | 1 + ansible/vars/projects/libvirt-go-xml.yml | 3 +++ 10 files changed, 12 insertions(+) create mode 100644 ansible/vars/projects/libvirt-go-xml.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-10/main.yml b/ansible/host_vars/libvirt-freebsd-10/main.yml index c2b059e..c8baf43 100644 --- a/ansible/host_vars/libvirt-freebsd-10/main.yml +++ b/ansible/host_vars/libvirt-freebsd-10/main.yml @@ -12,3 +12,4 @@ projects: - libvirt - 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/vars/projects/libvirt-go-xml.yml b/ansible/vars/projects/libvirt-go-xml.yml new file mode 100644 index 0000000..c06b9bb --- /dev/null +++ b/ansible/vars/projects/libvirt-go-xml.yml @@ -0,0 +1,3 @@ +--- +packages: + - go -- 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-10/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/vars/mappings.yml | 33 +++++++++++++++++++++++ ansible/vars/projects/libvirt-perl.yml | 8 ++++++ 13 files changed, 52 insertions(+) create mode 100644 ansible/vars/projects/libvirt-perl.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-10/main.yml b/ansible/host_vars/libvirt-freebsd-10/main.yml index c8baf43..68dbbb2 100644 --- a/ansible/host_vars/libvirt-freebsd-10/main.yml +++ b/ansible/host_vars/libvirt-freebsd-10/main.yml @@ -13,3 +13,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/vars/mappings.yml b/ansible/vars/mappings.yml index a08e8aa..736251b 100644 --- a/ansible/vars/mappings.yml +++ b/ansible/vars/mappings.yml @@ -380,6 +380,39 @@ mappings: default: perl FreeBSD: perl5 + perl-CPAN-Changes: + deb: libcpan-changes-perl + pkg: p5-CPAN-Changes + rpm: perl-CPAN-Changes + CentOS6: + + perl-ExtUtils-MakeMaker: + deb: perl-modules + pkg: p5-ExtUtils-MakeMaker + rpm: perl-ExtUtils-MakeMaker + + perl-Test-Pod: + deb: libtest-pod-perl + pkg: p5-Test-Pod + rpm: perl-Test-Pod + + perl-Test-Pod-Coverage: + deb: libtest-pod-coverage-perl + pkg: p5-Test-Pod-Coverage + rpm: perl-Test-Pod-Coverage + + perl-Time-HiRes: + deb: libtime-hr-perl + pkg: p5-Time-HiRes + rpm: perl-Time-HiRes + Ubuntu12: perl + Ubuntu14: perl + + perl-XML-XPath: + deb: libxml-xpath-perl + pkg: p5-XML-XPath + rpm: perl-XML-XPath + pkg-config: default: pkgconf rpm: pkgconfig diff --git a/ansible/vars/projects/libvirt-perl.yml b/ansible/vars/projects/libvirt-perl.yml new file mode 100644 index 0000000..1118406 --- /dev/null +++ b/ansible/vars/projects/libvirt-perl.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 -- 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-10/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/vars/mappings.yml | 30 +++++++++++++++++++++++ ansible/vars/projects/libvirt-python.yml | 8 ++++++ 13 files changed, 49 insertions(+) create mode 100644 ansible/vars/projects/libvirt-python.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-10/main.yml b/ansible/host_vars/libvirt-freebsd-10/main.yml index 68dbbb2..cd3a373 100644 --- a/ansible/host_vars/libvirt-freebsd-10/main.yml +++ b/ansible/host_vars/libvirt-freebsd-10/main.yml @@ -14,3 +14,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/vars/mappings.yml b/ansible/vars/mappings.yml index 736251b..30176f1 100644 --- a/ansible/vars/mappings.yml +++ b/ansible/vars/mappings.yml @@ -423,6 +423,36 @@ mappings: pkg: polkit rpm: polkit-devel + python2-devel: + deb: python-dev + pkg: python27 + rpm: python2-devel + + python2-lxml: + default: python-lxml + Fedora: python2-lxml + FreeBSD: py27-lxml + + python2-nose: + default: python-nose + Fedora: python2-nose + FreeBSD: py27-nose + + python3-devel: + deb: python3-dev + pkg: python36 + Fedora: python3-devel + + python3-lxml: + default: python3-lxml + FreeBSD: py36-lxml + CentOS: + + python3-nose: + default: python3-nose + FreeBSD: py36-nose + CentOS: + qemu-img: default: qemu-utils rpm: qemu-img diff --git a/ansible/vars/projects/libvirt-python.yml b/ansible/vars/projects/libvirt-python.yml new file mode 100644 index 0000000..72dcb4a --- /dev/null +++ b/ansible/vars/projects/libvirt-python.yml @@ -0,0 +1,8 @@ +--- +packages: + - python2-devel + - python2-lxml + - python2-nose + - python3-devel + - python3-lxml + - python3-nose -- 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/vars/mappings.yml | 20 ++++++++++++++++++++ ansible/vars/projects/libvirt-sandbox.yml | 14 ++++++++++++++ 8 files changed, 40 insertions(+) create mode 100644 ansible/vars/projects/libvirt-sandbox.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/vars/mappings.yml b/ansible/vars/mappings.yml index 30176f1..6713d58 100644 --- a/ansible/vars/mappings.yml +++ b/ansible/vars/mappings.yml @@ -107,6 +107,10 @@ mappings: deb: libc6-dev rpm: glibc-devel + glibc-static: + deb: libc6-dev + rpm: glibc-static + glusterfs: deb: glusterfs-client pkg: glusterfs @@ -516,6 +520,14 @@ mappings: default: libxslt deb: xsltproc + xz: + deb: liblzma-dev + rpm: xz-devel + + xz-static: + deb: liblzma-dev + Fedora: xz-static + yajl: deb: libyajl-dev pkg: yajl @@ -525,3 +537,11 @@ mappings: default: zfs-fuse CentOS: FreeBSD: + + zlib: + deb: zlib1g-dev + rpm: zlib-devel + + zlib-static: + deb: zlib1g-dev + rpm: zlib-static diff --git a/ansible/vars/projects/libvirt-sandbox.yml b/ansible/vars/projects/libvirt-sandbox.yml new file mode 100644 index 0000000..46b903f --- /dev/null +++ b/ansible/vars/projects/libvirt-sandbox.yml @@ -0,0 +1,14 @@ +--- +packages: + - glib2 + - glibc-static + - gobject-introspection + - gtk-doc + - intltool + - libcap-ng + - libselinux + - libxml2 + - xz + - xz-static + - zlib + - zlib-static -- 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-10/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/vars/mappings.yml | 81 +++++++++++++++++++++++ ansible/vars/projects/libvirt-tck.yml | 21 ++++++ 11 files changed, 111 insertions(+) create mode 100644 ansible/vars/projects/libvirt-tck.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-10/main.yml b/ansible/host_vars/libvirt-freebsd-10/main.yml index cd3a373..868a0db 100644 --- a/ansible/host_vars/libvirt-freebsd-10/main.yml +++ b/ansible/host_vars/libvirt-freebsd-10/main.yml @@ -15,3 +15,4 @@ projects: - libvirt-go-xml - libvirt-perl - libvirt-python + - 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/vars/mappings.yml b/ansible/vars/mappings.yml index 6713d58..ccdfd9d 100644 --- a/ansible/vars/mappings.yml +++ b/ansible/vars/mappings.yml @@ -390,11 +390,77 @@ mappings: rpm: perl-CPAN-Changes CentOS6: + perl-Config-Record: + deb: libconfig-record-perl + pkg: p5-Config-Record + Fedora: perl-Config-Record + + perl-Digest: + deb: libdigest-perl + pkg: p5-Digest + rpm: perl-Digest + CentOS6: + + perl-Digest-MD5: + deb: libdigest-perl-md5-perl + pkg: p5-Digest-MD5 + rpm: perl-Digest-MD5 + CentOS6: + Ubuntu14: + perl-ExtUtils-MakeMaker: deb: perl-modules pkg: p5-ExtUtils-MakeMaker rpm: perl-ExtUtils-MakeMaker + perl-File-Slurp: + deb: libfile-slurp-perl + pkg: p5-File-Slurp + rpm: perl-File-Slurp + + perl-IO-Compress-Bzip2: + deb: libio-compress-perl + pkg: p5-IO-Compress + rpm: perl-IO-Compress-Bzip2 + + perl-IO-String: + deb: libio-string-perl + pkg: p5-IO-String + rpm: perl-IO-String + + perl-Module-Build: + deb: libmodule-build-perl + pkg: p5-Module-Build + rpm: perl-Module-Build + + perl-Sub-Uplevel: + deb: libsub-uplevel-perl + pkg: p5-Sub-Uplevel + rpm: perl-Sub-Uplevel + + perl-TAP-Formatter-HTML: + deb: libtap-formatter-html-perl + Fedora: perl-TAP-Formatter-HTML + + perl-TAP-Formatter-JUnit: + deb: libtap-formatter-junit-perl + pkg: p5-TAP-Formatter-JUnit + Fedora: perl-TAP-Formatter-JUnit + + perl-TAP-Harness-Archive: + deb: libtap-harness-archive-perl + Fedora: perl-TAP-Harness-Archive + + perl-Test-Exception: + deb: libtest-exception-perl + pkg: p5-Test-Exception + rpm: perl-Test-Exception + + perl-Test-LWP-UserAgent: + deb: libtest-lwp-useragent-perl + pkg: p5-Test-LWP-UserAgent + Fedora: perl-Test-LWP-UserAgent + perl-Test-Pod: deb: libtest-pod-perl pkg: p5-Test-Pod @@ -412,11 +478,26 @@ mappings: Ubuntu12: perl Ubuntu14: perl + perl-XML-Twig: + deb: libxml-twig-perl + pkg: p5-XML-Twig + rpm: perl-XML-Twig + + perl-XML-Writer: + deb: libxml-writer-perl + pkg: p5-XML-Writer + rpm: perl-XML-Writer + perl-XML-XPath: deb: libxml-xpath-perl pkg: p5-XML-XPath rpm: perl-XML-XPath + perl-accessors: + deb: libaccessors-perl + pkg: p5-accessors + Fedora: perl-accessors + pkg-config: default: pkgconf rpm: pkgconfig diff --git a/ansible/vars/projects/libvirt-tck.yml b/ansible/vars/projects/libvirt-tck.yml new file mode 100644 index 0000000..8d29c1c --- /dev/null +++ b/ansible/vars/projects/libvirt-tck.yml @@ -0,0 +1,21 @@ +--- +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-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 -- 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-10/main.yml | 1 + ansible/host_vars/libvirt-freebsd-11/main.yml | 1 + ansible/vars/projects/osinfo-db.yml | 4 ++++ 8 files changed, 11 insertions(+) create mode 100644 ansible/vars/projects/osinfo-db.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-10/main.yml b/ansible/host_vars/libvirt-freebsd-10/main.yml index 868a0db..dd5302d 100644 --- a/ansible/host_vars/libvirt-freebsd-10/main.yml +++ b/ansible/host_vars/libvirt-freebsd-10/main.yml @@ -16,3 +16,4 @@ projects: - libvirt-perl - libvirt-python - 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/vars/projects/osinfo-db.yml b/ansible/vars/projects/osinfo-db.yml new file mode 100644 index 0000000..d9320a4 --- /dev/null +++ b/ansible/vars/projects/osinfo-db.yml @@ -0,0 +1,4 @@ +--- +packages: + - intltool + - xmllint -- 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-10/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/vars/mappings.yml | 5 +++++ ansible/vars/projects/osinfo-db-tools.yml | 8 ++++++++ 12 files changed, 23 insertions(+) create mode 100644 ansible/vars/projects/osinfo-db-tools.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-10/main.yml b/ansible/host_vars/libvirt-freebsd-10/main.yml index dd5302d..93eaca7 100644 --- a/ansible/host_vars/libvirt-freebsd-10/main.yml +++ b/ansible/host_vars/libvirt-freebsd-10/main.yml @@ -17,3 +17,4 @@ projects: - libvirt-python - 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/vars/mappings.yml b/ansible/vars/mappings.yml index ccdfd9d..2a0f3ef 100644 --- a/ansible/vars/mappings.yml +++ b/ansible/vars/mappings.yml @@ -158,6 +158,11 @@ mappings: deb: libacl1-dev rpm: libacl-devel + libarchive: + deb: libarchive-dev + pkg: libarchive + rpm: libarchive-devel + libattr: deb: libattr1-dev rpm: libattr-devel diff --git a/ansible/vars/projects/osinfo-db-tools.yml b/ansible/vars/projects/osinfo-db-tools.yml new file mode 100644 index 0000000..54d8006 --- /dev/null +++ b/ansible/vars/projects/osinfo-db-tools.yml @@ -0,0 +1,8 @@ +--- +packages: + - glib2 + - gnome-common + - intltool + - libarchive + - libxml2 + - libxslt -- 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-10/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/vars/mappings.yml | 20 ++++++++++++++++++++ ansible/vars/projects/virt-manager.yml | 7 +++++++ 12 files changed, 37 insertions(+) create mode 100644 ansible/vars/projects/virt-manager.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-10/main.yml b/ansible/host_vars/libvirt-freebsd-10/main.yml index 93eaca7..563a254 100644 --- a/ansible/host_vars/libvirt-freebsd-10/main.yml +++ b/ansible/host_vars/libvirt-freebsd-10/main.yml @@ -18,3 +18,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/vars/mappings.yml b/ansible/vars/mappings.yml index 2a0f3ef..792d0aa 100644 --- a/ansible/vars/mappings.yml +++ b/ansible/vars/mappings.yml @@ -518,6 +518,21 @@ mappings: pkg: python27 rpm: python2-devel + python2-gi: + deb: python-gi + pkg: py27-gobject3 + rpm: python-gobject + CentOS6: + + python2-ipaddr: + default: python-ipaddr + FreeBSD: py27-ipaddr + + python2-libxml2: + default: python-libxml2 + pkg: py27-libxml2 + CentOS: libxml2-python + python2-lxml: default: python-lxml Fedora: python2-lxml @@ -528,6 +543,11 @@ mappings: Fedora: python2-nose FreeBSD: py27-nose + python2-requests: + default: python-requests + Fedora: python2-requests + FreeBSD: py27-requests + python3-devel: deb: python3-dev pkg: python36 diff --git a/ansible/vars/projects/virt-manager.yml b/ansible/vars/projects/virt-manager.yml new file mode 100644 index 0000000..29bacb4 --- /dev/null +++ b/ansible/vars/projects/virt-manager.yml @@ -0,0 +1,7 @@ +--- +packages: + - intltool + - python2-gi + - python2-ipaddr + - python2-libxml2 + - python2-requests -- 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-10/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/vars/mappings.yml | 23 +++++++++++++++++++++++ ansible/vars/projects/virt-viewer.yml | 10 ++++++++++ 12 files changed, 43 insertions(+) create mode 100644 ansible/vars/projects/virt-viewer.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-10/main.yml b/ansible/host_vars/libvirt-freebsd-10/main.yml index 563a254..69b172c 100644 --- a/ansible/host_vars/libvirt-freebsd-10/main.yml +++ b/ansible/host_vars/libvirt-freebsd-10/main.yml @@ -19,3 +19,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/vars/mappings.yml b/ansible/vars/mappings.yml index 792d0aa..b775dfc 100644 --- a/ansible/vars/mappings.yml +++ b/ansible/vars/mappings.yml @@ -139,10 +139,22 @@ mappings: rpm: gobject-introspection-devel CentOS6: + gtk3: + deb: libgtk-3-dev + pkg: gtk3 + rpm: gtk3-devel + CentOS6: + gtk-doc: default: gtk-doc deb: gtk-doc-tools + gtk-vnc: + deb: libgtk-vnc-2.0-dev + pkg: gtk-vnc + rpm: gtk-vnc2-devel + CentOS6: + hal: FreeBSD: hal Ubuntu12: libhal-dev @@ -197,6 +209,11 @@ mappings: pkg: dbus rpm: dbus-devel + libgovirt: + Debian: libgovirt-dev + Fedora: libgovirt-devel + Debian8: + libnl: CentOS6: libnl-devel @@ -596,6 +613,12 @@ mappings: deb: nfs-common rpm: nfs-utils + spice-gtk3: + deb: libspice-client-gtk-3.0-dev + pkg: spice-gtk + rpm: spice-gtk3-devel + CentOS6: + usb-ids: default: hwdata FreeBSD: usbids diff --git a/ansible/vars/projects/virt-viewer.yml b/ansible/vars/projects/virt-viewer.yml new file mode 100644 index 0000000..6f3dbf9 --- /dev/null +++ b/ansible/vars/projects/virt-viewer.yml @@ -0,0 +1,10 @@ +--- +packages: + - glib2 + - gtk-vnc + - gtk3 + - intltool + - libgovirt + - libxml2 + - spice-gtk3 + - xmllint -- 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-10/main.yml | 3 ++ ansible/host_vars/libvirt-freebsd-10/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 | 7 +++ ansible/tasks/jenkins.yml | 59 ++++++++++++++++++++++ ansible/templates/jenkins.service.j2 | 14 +++++ ansible/vars/mappings.yml | 8 +++ ansible/vars/projects/jenkins.yml | 3 ++ 31 files changed, 244 insertions(+) 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-10/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/projects/jenkins.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 e8d3cb6..81b7d43 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-10/main.yml b/ansible/host_vars/libvirt-freebsd-10/main.yml index 69b172c..e993a66 100644 --- a/ansible/host_vars/libvirt-freebsd-10/main.yml +++ b/ansible/host_vars/libvirt-freebsd-10/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-10/vault.yml b/ansible/host_vars/libvirt-freebsd-10/vault.yml new file mode 100644 index 0000000..a3196f7 --- /dev/null +++ b/ansible/host_vars/libvirt-freebsd-10/vault.yml @@ -0,0 +1,10 @@ +$ANSIBLE_VAULT;1.1;AES256 +61386461653666613964333661643531393338396335343362646636616135306638383339646231 +3463356661623331393133316132333264396366613439300a633261353439383230613264653032 +36366166373333636235363964366566393165313239373138306339653038373639376361656635 +3362343935386538380a396261373664633837333364346435353034343663306235363561356265 +34383164643337366439393332393866653835353731393439303236643263346361373133623635 +66623939393436333838613363613936333733386235386332386538346461333331343837323061 +37613136333763643837626363353432626630336434383934353465633131303561633235366634 +65396435316564323936303331396236313137316532666163656131356339373633303063346432 +3435 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 907a35b..e6cf10d 100644 --- a/ansible/site.yml +++ b/ansible/site.yml @@ -18,3 +18,10 @@ loop_var: project when: - projects is defined + + # Configure the Jenkins agent + - include: tasks/jenkins.yml + when: + - projects is defined + # jenkins is a pseudo-project + - ( 'jenkins' in projects ) diff --git a/ansible/tasks/jenkins.yml b/ansible/tasks/jenkins.yml new file mode 100644 index 0000000..020277e --- /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/mappings.yml b/ansible/vars/mappings.yml index b775dfc..a660101 100644 --- a/ansible/vars/mappings.yml +++ b/ansible/vars/mappings.yml @@ -166,6 +166,14 @@ mappings: deb: open-iscsi rpm: iscsi-initiator-utils + java: + deb: openjdk-8-jre-headless + pkg: openjdk8-jre + rpm: java-1.8.0-openjdk-headless + Debian8: openjdk-7-jre-headless + Ubuntu12: openjdk-7-jre-headless + Ubuntu14: openjdk-7-jre-headless + libacl: deb: libacl1-dev rpm: libacl-devel diff --git a/ansible/vars/projects/jenkins.yml b/ansible/vars/projects/jenkins.yml new file mode 100644 index 0000000..509f71a --- /dev/null +++ b/ansible/vars/projects/jenkins.yml @@ -0,0 +1,3 @@ +--- +packages: + - java -- 2.13.6

On Fri, Oct 06, 2017 at 02:48:52PM +0200, Andrea Bolognani wrote:
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>
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
What is this data & how was it generated ? How is it decrypted ? Presumably there's some local key we're not publishing ? 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-09 at 11:38 +0100, Daniel P. Berrange wrote:
On Fri, Oct 06, 2017 at 02:48:52PM +0200, Andrea Bolognani wrote:
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>
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
What is this data & how was it generated ? How is it decrypted ? Presumably there's some local key we're not publishing ?
It just contains the secret used by the Jenkins agent to authenticate with the Jenkins server. Each of the files look like --- vault_jenkins_secret: "IT'S A SECRET TO EVERYBODY" once decrypted; the main variables file for the host references the encrypted variable with jenkins_secret: '{{ vault_jenkins_secret }}' so there is a visible trail to the vaulted variable, and only the jenkins_secret variable is used anywhere else as per best practices. The file was created and can be edited using ansible-vault; the vault password is retrieved automatically from the user's home directory thanks to the line vault_password_file = ~/.ansible/libvirt-jenkins-ci.vault-password being present in the ansible.cfg file. I have already transmitted the vault password using an encrypted side-channel :) -- Andrea Bolognani / Red Hat / Virtualization

On Fri, Oct 06, 2017 at 02:48:36PM +0200, Andrea Bolognani wrote:
Changes from [v1]:
* drop support for building projects; * reduce redundancy by using mappings; * add FreeBSD 10 support.
[v1] https://www.redhat.com/archives/libvir-list/2017-October/msg00035.html
BTW, what's your thoughts on what we should do with this once committed ? Do you have plans to rebuild all our current CI VMs from scratch using these recipes ? It would probably nice todo this so we get them into a known good state, as well as helping us move the Fedora vms onto current versions. 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 Fri, 2017-10-06 at 14:29 +0100, Daniel P. Berrange wrote:
On Fri, Oct 06, 2017 at 02:48:36PM +0200, Andrea Bolognani wrote:
Changes from [v1]:
* drop support for building projects; * reduce redundancy by using mappings; * add FreeBSD 10 support.
[v1] https://www.redhat.com/archives/libvir-list/2017-October/msg00035.html
BTW, what's your thoughts on what we should do with this once committed ?
Do you have plans to rebuild all our current CI VMs from scratch using these recipes ? It would probably nice todo this so we get them into a known good state, as well as helping us move the Fedora vms onto current versions.
Definitely. The idea would be to build a Fedora 26 worker, set it up using the Ansible automation and add it to the Jenkins setup; there might be some minor kinks to iron out before all jobs can run successfully. Once that's done, we can start replacing existing workers one by one, and finally expand the test matrix to its fullest potential. -- Andrea Bolognani / Red Hat / Virtualization

On Fri, Oct 06, 2017 at 02:29:44PM +0100, Daniel P. Berrange wrote:
On Fri, Oct 06, 2017 at 02:48:36PM +0200, Andrea Bolognani wrote:
Changes from [v1]:
* drop support for building projects; * reduce redundancy by using mappings; * add FreeBSD 10 support.
[v1] https://www.redhat.com/archives/libvir-list/2017-October/msg00035.html
BTW, what's your thoughts on what we should do with this once committed ?
Do you have plans to rebuild all our current CI VMs from scratch using these recipes ? It would probably nice todo this so we get them into a known good state, as well as helping us move the Fedora vms onto current versions.
Yes, we are planning to do that, actually I'll be the one who will rebuild all the VMs. I'm also planning to prepare template kickstart for Fedora to automate it even more. Pavel

On Fri, Oct 06, 2017 at 04:53:34PM +0200, Pavel Hrdina wrote:
On Fri, Oct 06, 2017 at 02:29:44PM +0100, Daniel P. Berrange wrote:
On Fri, Oct 06, 2017 at 02:48:36PM +0200, Andrea Bolognani wrote:
Changes from [v1]:
* drop support for building projects; * reduce redundancy by using mappings; * add FreeBSD 10 support.
[v1] https://www.redhat.com/archives/libvir-list/2017-October/msg00035.html
BTW, what's your thoughts on what we should do with this once committed ?
Do you have plans to rebuild all our current CI VMs from scratch using these recipes ? It would probably nice todo this so we get them into a known good state, as well as helping us move the Fedora vms onto current versions.
Yes, we are planning to do that, actually I'll be the one who will rebuild all the VMs. I'm also planning to prepare template kickstart for Fedora to automate it even more.
Pavel
Actually, we've been also thinking to add a Vagrantfile into our libvirt repository that would be able to create build VMs with various development environments (FreeBSD, fedora, debian, etc.) and we could utilize these Ansible scripts to provision those machines. Newbies could easily try out libvirt without changing their system and anyone who wants to test the hell out of their changes would just do with circa 3 commands.
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

On Fri, Oct 06, 2017 at 02:48:36PM +0200, Andrea Bolognani wrote:
Changes from [v1]:
* drop support for building projects; * reduce redundancy by using mappings; * add FreeBSD 10 support.
[v1] https://www.redhat.com/archives/libvir-list/2017-October/msg00035.html
Andrea Bolognani (16): ansible: Initial support 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
ACK to all patches on the basis that I don't know ansible but nothing looks bad from a naive POV. One thing the current builders have setup is a cron job to do a nightly yum update (or equiv). I'm not sure whether this belongs in Ansible or in prior kickstart file ? 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-09 at 11:39 +0100, Daniel P. Berrange wrote:
On Fri, Oct 06, 2017 at 02:48:36PM +0200, Andrea Bolognani wrote:
Changes from [v1]:
* drop support for building projects; * reduce redundancy by using mappings; * add FreeBSD 10 support.
[v1] https://www.redhat.com/archives/libvir-list/2017-October/msg00035.html
Andrea Bolognani (16): ansible: Initial support 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
ACK to all patches on the basis that I don't know ansible but nothing looks bad from a naive POV.
That's good enough for me. Pushed :)
One thing the current builders have setup is a cron job to do a nightly yum update (or equiv). I'm not sure whether this belongs in Ansible or in prior kickstart file ?
Oh, I was not aware of that. There are two ways we can approach this: a) have Ansible set up the necessary cron jobs; b) run the Ansible playbook from the host instead. I'd rather go with b) since the playbook already upgrades all installed packages as part of setting up the base system. -- Andrea Bolognani / Red Hat / Virtualization

On Mon, Oct 09, 2017 at 01:58:45PM +0200, Andrea Bolognani wrote:
On Mon, 2017-10-09 at 11:39 +0100, Daniel P. Berrange wrote:
On Fri, Oct 06, 2017 at 02:48:36PM +0200, Andrea Bolognani wrote:
Changes from [v1]:
* drop support for building projects; * reduce redundancy by using mappings; * add FreeBSD 10 support.
[v1] https://www.redhat.com/archives/libvir-list/2017-October/msg00035.html
Andrea Bolognani (16): ansible: Initial support 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
ACK to all patches on the basis that I don't know ansible but nothing looks bad from a naive POV.
That's good enough for me. Pushed :)
One thing the current builders have setup is a cron job to do a nightly yum update (or equiv). I'm not sure whether this belongs in Ansible or in prior kickstart file ?
Oh, I was not aware of that.
There are two ways we can approach this:
a) have Ansible set up the necessary cron jobs; b) run the Ansible playbook from the host instead.
I'd rather go with b) since the playbook already upgrades all installed packages as part of setting up the base system.
I dont mind as long as the packages get updated daily. 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 :|
participants (4)
-
Andrea Bolognani
-
Daniel P. Berrange
-
Martin Kletzander
-
Pavel Hrdina