Commit Graph

34 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov bfbf0db8fb 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: I68c3d98de3a0a4444c0c1ea0cc528901613a63bd
2023-07-14 18:02:08 +02:00
Jonathan Rosser f75dc9c797 Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654

Change-Id: Ic7b58cc4e4840d342f48b7c9ec90953d5dce4ab5
2021-03-16 08:05:20 +00:00
Jonathan Rosser c0f9229980 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

Depends-On: Ic31fd78bb5ad9cd484f44e63ba02db7424a500d5
Change-Id: I7c6258673b7b13c15177873fb42080e452eba2d4
2021-03-11 22:30:12 +00:00
Jean-Philippe Evrard fa5e8c0cb2 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: I311d5fb44f7e2edab55ec0b64e661924d8d7efe3
2019-05-20 12:43:29 +02:00
Guilherme Steinmüller 9259b0071f 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: I614188359bf22bfc0df767e4e1b36f509db02819
2019-04-09 17:04:07 +00:00
Jesse Pretorius 024a35d700 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.

Depends-On: https://review.openstack.org/602907
Change-Id: I9a37bd999a02e97205409d956a838f7ee62ed45f
2018-09-17 12:21:23 +00:00
Jonathan Rosser e17b580350 Add bionic to galaxy_info metadata
Depends-On: https://review.openstack.org/595736
Change-Id: Idf2981f2c1e84dee9b104555b26118e397501a9a
2018-08-27 21:19:09 +00:00
Jean-Philippe Evrard 61f8aee6ad 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: I4ff1d51d78f5414d1029ac9ba773d98bd1dcbcda
2017-12-05 11:55:22 +00:00
Jean-Philippe Evrard 4171a5971b 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: I06ab00eac77d6590a25a9d4e674743d5d0797125
2017-10-11 09:02:01 +00:00
Markos Chandras f023b02b85 Add support for the openSUSE Leap distributions
Add support for the openSUSE Leap distributions. Nothing special is
required for this except adding the appropriate distro variables
file and also update the zypper cache before package installation. We
also had to apply the same virtualenv-tools fix similar to CentOS.

Change-Id: I265f57141a1aa0c26857c05e38206b68fd2de1b0
2017-08-15 15:16:14 +01:00
Ricardo Carrillo Cruz 41f4020b39 Add RedHat derivatives support for OSA Magnum role
I got a failure when running OSA on Centos with Magnum,
this file adds the package names for RedHat derivatives.

Change-Id: Ia355f15b6c2c9d80447e227660f7037b3dfdc58e
2017-05-10 15:45:41 +02:00
Jesse Pretorius 965e4c0c76 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:
- add license boilerplate to meta file

Change-Id: I8ce52d62acc900d1c45e57ef42e5a2e11fd1db9b
2017-05-02 12:10:07 +01:00
Andy McCrae de998feb91 Remove Trusty support from os_magnum role
Change-Id: I9ded5e8559f4524d214080cb1e083a757eeb537b
Implements: blueprint trusty-removal
2016-12-15 12:31:57 +00:00
Jesse Pretorius fc465e5884 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: I00b107b651776c6dffbffb81afcf9b8dfe028b46
2016-11-07 17:42:51 +00:00
Anton Khaldin e11d113c29 Implement Ubuntu 16.04 support with systemd
This change updates the magnum role to support Ubuntu 14.04 with
upstart init and 16.04 with systemd init.

Change-Id: Id3b3b9a5419c3602821e8f7b062a5958efcccb0c
Implements: blueprint support-ubuntu-1604
2016-07-25 23:58:41 -07:00
Jimmy McCrory a29f6c66ea 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: I1a62d627ee0f8c636065734e8d69fcfd009542a2
2016-06-02 17:16:37 -07:00
Kevin Carter 9c2e500945
Enable developer mode
This commit adds the ability to install magnum without a repo server.
This pattern is lifted from the os_cinder role and allows us to
further develop functional testing for this role.

Change-Id: Idcaad65b45c932613c739b2f498f8f92acbbf53b
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-06-02 15:42:09 -05:00
Jimmy McCrory bacac18263 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: Idbf1b737a11b0bb2460989b2881395ee87a90429
Implements: blueprint multi-platform-host
2016-05-26 18:36:42 -07:00
Jimmy McCrory 1930e33fba 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: Ic85e398509b5069633f9b5865aff941d69ef7fbf
2016-03-18 11:41:53 -07:00
Ian Cordasco 99f5c94f0b Need to find a new kubernetes role 2016-01-29 13:49:02 -06:00
Ian Cordasco 8131f32631 Add an ansible galaxy role for k8s 2016-01-29 10:28:38 -06:00
Ian Cordasco a92ad1ba8b Remove non-existent dependency
os_glance has a lying meta/main.yml
2016-01-22 16:00:22 -06:00
Ian Cordasco 7501b19bb5 Use correct dependency name 2016-01-22 15:59:18 -06:00
Ian Cordasco e3ca09ee36 Update metadata and add dependencies 2016-01-22 15:41:22 -06:00
Ian Cordasco 053c543ff1 Update vars and add dependency 2016-01-22 11:01:40 -06:00
Ian Cordasco 47ed76bba4 Fix typo and add implicit depenency 2016-01-21 15:24:19 -06:00
Ian Cordasco c7e21c3023 Re-add openstack tag 2016-01-20 12:57:12 -06:00
Ian Cordasco 498b866c45 Comment openstack galaxy tag 2016-01-20 12:35:06 -06:00
Ian Cordasco 340bc290ca Remove empty dependencies list 2016-01-20 12:33:57 -06:00
Ian Cordasco a7878ba046 Switch categories to galaxy_tags in metadata 2016-01-20 12:05:24 -06:00
Ian Cordasco 6da2ec307c Remove "role" from description and add version 2016-01-19 16:05:21 -06:00
Ian Cordasco 33c366c0c0 Add missing versions key to meta information 2016-01-19 16:01:27 -06:00
Ian Cordasco 1865a94244 Update role metadata 2016-01-19 15:58:14 -06:00
Ian Cordasco 10f217b316 Initialize galaxy role 2016-01-05 13:07:39 -06:00