Commit Graph

23 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 7226653ad9 Fix linters and metadata
With update of ansible-lint to version >=6.0.0 a lot of new
linters were added, that enabled by default. In order to comply
with linter rules we're applying changes to the role.

With that we also update metdata to reflect current state.

Depends-On: https://review.opendev.org/c/openstack/ansible-role-systemd_service/+/888223
Change-Id: I1ab9664505068c20924370790322caa67cc6e022
2023-07-14 18:07:30 +02:00
Jonathan Rosser e5920f628e Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654

Change-Id: If731b98c03bae2b38eb494c060699abea3cda9e0
2021-03-16 08:04:54 +00:00
Jonathan Rosser a0a07a43ac Remove references to unsupported operating systems
All references to Gentoo, SUSE, Debian stretch and Centos-7  are removed.
Conditional tasks, ternary operators and variables are simplified where possible
OS specific variables files are generalised where possible

Change-Id: Ia73e88947f52a74d9c03a17a7b1201a6346b5ac3
2021-03-10 12:16:38 +00:00
Nicolas Bock d7377d877e Add missing variable file for Redhat
Change-Id: I89be92c55be9d892afc133d3a95a8227174d0b80
Signed-off-by: Nicolas Bock <nicolas.bock@suse.com>
2019-06-18 11:57:34 +02:00
Nicolas Bock ee59b1b35d
Add variables for openSUSE
Change-Id: I926586acdbc03816dccd6bfdd318aea95ffb881b
Signed-off-by: Nicolas Bock <nicolas.bock@suse.com>
2019-06-14 17:48:15 +02:00
Guilherme Steinmüller da2dc1abd5 debian: add support
This patch adds the Debian jobs for this role to make sure
it's always passing as well as updates the meta to reflect
it's support of Debian accordingly.

Depends-On: I9a92b73c419a0dc1cca40dacfef75de61a61db94
Change-Id: Ie9e9857ce1bd8fe93e63f3be3a02793c648f688b
2019-04-09 17:05:08 +00:00
Jesse Pretorius 468b599127 Remove galera_client meta-dependency
Given that pymysql is pure python and has no C binding
dependencies, we no longer need the role to install the
MariaDB client libraries.

Change-Id: I91f086498e328982aaa9971fc67c4fadb1cab852
2018-09-15 16:36:38 -06:00
Jonathan Rosser fea2173927 Add bionic to galaxy_info metadata
Depends-On: https://review.openstack.org/#/c/586815/
Change-Id: Ib37cc9dc58c44c5c16db4f1c80e65eb0fcbc5351
2018-08-02 21:24:59 +00:00
Jesse Pretorius cc4fa19f87 Execute service setup against a delegated host using Ansible built-in modules
In order to reduce the packages required to pip install on to the hosts,
we allow the service setup to be delegated to a specific host, defaulting
to the deploy host. We also switch as many tasks as possible to using the
built-in Ansible modules which make use of the shade library.

The 'virtualenv' package is now installed appropriately by the openstack_hosts
role, so there's no need to install it any more. The 'httplib2' package is a
legacy Ansible requirement for the get_url/get_uri module which is no longer
needed. The keystone client library is not required any more now that we're
using the upstream modules. As there are no required packages left, the task
to install them is also removed.

With the dependent patches, the openstack_openrc role is now executed once
on the designated host, so it is no longer required as a meta-dependency for
the role.

Depends-On: https://review.openstack.org/579233
Depends-On: https://review.openstack.org/579959
Depends-On: https://review.openstack.org/580156
Depends-On: https://review.openstack.org/580601
Change-Id: Ic346e642f52f064b002f5a2facead2fca5a7a03a
2018-07-06 13:47:22 +00:00
Jean-Philippe Evrard b5b4a5ebed Remove pip_install dependency
With addition of pip_install on every node, we don't
need to have pip_install as a meta dependency.

Depends-On: If3412bb888ebb854874bbc43eb76bfcb3e4a7868
Depends-On: I79ff70c438b44753be2a93f004ebbc46de0a963d
Change-Id: Ia7612ad0ef2652ccdaa7370027c8f1fe5e8376fe
2017-12-05 11:55:14 +00:00
Jean-Philippe Evrard 4b94f05655 Add OpenStack-Ansible metadata
We need to add openstack ansible information in the role
metadata to be able to track role maturity. With it,
we can create a role maturity table and take decisions about
role deprecations.

Change-Id: I8641ad42f16280456328da8529627bf4e9e3c4e6
2017-10-20 14:37:01 +00:00
Jesse Pretorius 3cd2cf5069 Use package module to install distro packages
Consolidate distro package install tasks into a
single task using the package module and pass
the package list into the name instead of using
a with_items loop.

The minimum Ansible version is raised to 2.2 due to a
known bug [1] in Ansible's apt module which does not
update the cache properly if the cache update and the
install are combined in a single task.

[1] https://github.com/ansible/ansible-modules-core/issues/1497

Change-Id: I4fb65f7a03364bac696e63f325c936e730deba7e
2017-05-02 12:04:48 +01:00
Andy McCrae 35e96e7271 Remove Trusty support from os_ironic
Change-Id: I35f90d708cda58c5b09f17e5596cf226d1b16605
Implements: blueprint trusty-removal
2016-12-15 13:18:23 +00:00
Jesse Pretorius 6bd95f1b68 Use updated get_url module checksum functionality
Starting in Ansible 2.0, the get_url [1] module provides the
ability for a checksum to be provided to the get_url module
which will be verified against the local destination file
and the task skipped if it matches.

[1] http://docs.ansible.com/ansible/get_url_module.html

This patch implements the use of this functionality.

The ability to ignore a venv download failure is also removed
as this is not necessary or desirable. It is better for the
download to fail and the playbook execution to stop immediately
so that the failure point is exposed.

Change-Id: I8b7b76521d38c0dd842c32545644fe43129c0354
2016-11-07 17:43:19 +00:00
Jimmy McCrory f736ebb79f Remove pip_lock_down dependency
The pip_install and pip_lock_down roles have been merged.

Remove pip_lock_down from the role's meta dependencies and test
requirements.

Change-Id: I62d9f8dce930f4e0dfe56c872ca46995e0e78b6d
2016-06-08 21:08:25 -05:00
Andy McCrae 1e51088398 Add 16.04 support
Implements: blueprint support-ubuntu-1604
Change-Id: Ide4d2c5e7753aa56bd82f0de913217f0df8860b9
2016-06-02 14:39:39 +00:00
Jesse Pretorius f9727e0fd0 Update min_ansible_version to 1.9
This role makes use of the ternary filter which was only introduced in
Ansible 1.9, this patch updates the min_ansible_version to 1.9.

Change-Id: I136d8fe1a4739f4f62216b3674b6f78399a3ea35
2016-04-11 11:12:39 +00:00
Jesse Pretorius 484d7498e2 Ensure that pip lock down happens before other dependencies
The pip_install role is depended on by a lot of other roles, and
therefore sometimes gets processed prior to the pip_lock_down
role resulting in the pip, setuptools and wheels packages being
installed from a source other than the repo server once the repo
server is available. This is not the intended behaviour - the
repo server should always be a the primary source once it's
available.

This patch ensures that the pip_lock_down role is applied before
all the other dependent roles to ensure that the expected
behaviour is followed.

Change-Id: I358a08279026c5c719049280b9ec229004b1435b
2016-03-31 15:24:54 +00:00
Jesse Pretorius b5d7b7986c Implement initial test inventory/plays
This patch implements an initial set of inventory and playbooks
which results in the successful convergence of a standalone
build of Ironic.

It also adds the rootwrap filters, implement config_template
for all the conf files appropriately and ensures that the sudoers
is implemented in the right order of execution.

All content is based from the head of stable/mitaka on
24 Mar 2016.

Change-Id: I9182951c394a8c52826480aba7bc7e4d437988c5
2016-03-24 23:58:05 +00:00
Michael Davies f8eb0aebfe Ironic: Fix docs & linting tests
Unfortunately the first commit of os_ironic had broken tests. This patch
corrects the test configurations to ensure that the docs and lint tests
work.

As a temporary measure, functional testing is left as a place holder
to allow other patches to be worked on for this role while the functional
testing is being put together.

Change-Id: I38278155232a4e4d6ef259b79bd515fae2bc837b
Signed-off-by: Michael Davies <michael@the-davies.net>
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2016-02-24 02:25:52 +00:00
Michael Davies 069116859a Syncing as work on osa integration continues 2016-01-19 06:59:45 +00:00
Michael Davies b40dd35bdc General cleanup, incl. copyright headers 2015-11-27 12:59:56 +10:30
Michael Davies c578f230a0 Initial commit 2015-11-26 22:18:44 +10:30