Commit Graph

22 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 1f95cd900e 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.

Change-Id: I4585a4aad7acf48080e6b2d73bf3e0c2e0dfbff7
2023-07-14 05:49:48 +00:00
Jonathan Rosser 5f62076c0e Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654

Change-Id: I45f7032da03ae5b74924b8d1355ed3f72a0830aa
2021-03-16 07:59:45 +00:00
Jonathan Rosser cbb08b0125 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: Ibf3f1c2670288aa00469126d2ce74ac00954094a
2021-03-10 18:38:06 +00:00
Jean-Philippe Evrard d2350742c3 Clarify supported SUSE versions
This role only support openSUSE Leap 15, not 42.3, not tumbleweed.
Saying all is confusing and a bad practice. This fixes it, while
ensuring the job is properly defined to test that assertion.

Change-Id: I5729d4a3062f767f74b053611410a716091ceb34
2019-05-14 12:07:37 +02:00
Guilherme Steinmüller 9308258e0e 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: Ia3d4742cba146eea6cc973c4ed9422bc1ffaa16e
2019-04-09 17:01:54 +00:00
Markos Chandras c9c4bb78fe SUSE: Add support for openSUSE Leap 15
Change-Id: I48d15756c8259297ce04c9a5656bc461b7221350
2018-09-26 11:54:17 +01:00
Jesse Pretorius 9f4de30f20 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: Ibecc182d370d1aa3801f49d47421d9fd2037df5f
2018-09-15 23:08:11 -06:00
Jonathan Rosser 2bcd080e21 Add bionic to galaxy_info metadata
Change-Id: Icc11ba9732f64faf974d1b89e01ef2a882241fd8
2018-08-02 14:56:02 +01:00
Markos Chandras 8df6d45a57 Add support for the openSUSE Leap distributions
Add support for the openSUSE Leap distributions. Nothing special is
required for this except for adding the appropriate distro variables
file and also update the zypper cache before package installation.

Change-Id: If07ef32f9e39272b4c7fadb438df33f188b186cd
2017-12-08 11:34:30 +00:00
Jean-Philippe Evrard 52fa454eff 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: I8c4d59c198571e798bef32e727e89180345c4089
2017-12-05 11:54:28 +00:00
Aaron Mehar 4bfcb2c662 Add CentOS 7 deployment support
Remove python from path first to avoid circular issues

Change-Id: I5cf629f1c0e19c9359b7e29f3d65500f6fe87a77
2017-11-22 00:20:52 +00:00
Jean-Philippe Evrard 2d01d70818 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: I0958dd87e6edba7d2028c13bc985e65ebaaf80b9
2017-10-11 08:39:25 +00:00
Jesse Pretorius 7f399d384d 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

Also:
- remove unused travis configuration file
- move release note to the proper location
- add license boilerplate to meta file

Change-Id: Ibc2d96a48f156f19235df8b7a25d59d433c3aad5
2017-05-02 11:31:03 +01:00
Andy McCrae 01a37b78b5 Remove Trusty support from os_barbican role
Change-Id: I06c3e77609d73d1788f9e961c25e8684aa84fbb7
Implements: blueprint trusty-removal
2016-12-15 13:15:41 +00:00
Jesse Pretorius 422789372d 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: I051ee5ed48042d9a402583d733fe30ff06d34821
2016-11-07 17:47:46 +00:00
Travis Truman 82b2173701 Implement Ubuntu 16.04 support with SystemD
This change updates the barbican role to support Ubuntu 14.04 with
upstart init and 16.04 with systemd init.

Change-Id: I6d1221481c6ad97b265eece2b23c3ab83ef49248
Implements: blueprint support-ubuntu-1604
2016-07-14 10:35:59 -04:00
Jimmy McCrory 04a12c6b31 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: Ic97afda2dd85f8103d6529107d56b8873a64480d
2016-06-07 23:39:16 -05:00
Hector I Gonzalez e2e0d0d0c2 Updated role using the Multi-Distro framework
* The default apt packages have been moved into a var file
  that is only loaded when the detected OS is matched.
* The Install task file has had the apt specific tasks moved
  into a named install task file.

Change-Id: I5fa925c546affbd27f70f1d483ac78a23f2e6e62
2016-04-19 14:31:22 -05:00
Jimmy McCrory 37d90c5dd9 Enable functional convergence testing
This change adds variables and tasks for enabling developer mode to
allow for installing barbican without a repo server, moves the tasks
creating the barbican rabbit virtual host and mysql database from the
role to a playbook, and adds functional convergence test playbooks to
deploy rabbitmq, galera, keystone, and barbican.

The barbican.conf template has been updated to make use of the deployed
rabbit and galera servers and all other templated configuration files
have been updated from the current head of master.

Change-Id: I2716fbe6a5dbad2a3b7ce6e406098e463cf7d943
2016-04-12 11:27:15 -07:00
Jimmy McCrory f26e994bf9 Implement base configuration for OpenStack-CI
This patch includes the following:

 - Base configuration for OpenStack's CI Infrastructure.
 - Base documentation build configuration.
 - A Vagrantfile for local testing.
 - A base test configuration in order to execute the standard tests.
 - An updated README, and added a CONTRIBUTING file.
 - The extras folder and files have been updated to match current
   conventions.

Change-Id: Ibc83d81de14eec533afae5b8c2cf0d07668d3ba0
2016-03-22 12:12:44 -07:00
Ian Cordasco a8418a9f97 Add dependencies 2016-03-02 11:05:04 -06:00
Ian Cordasco 9126afc796 Initialize galaxy role 2016-02-23 15:30:30 -06:00