This line snuck in with I68087b411e0a056bc2c9a654bf975ea36de5fbec
probably to bring it in line with other OSA roles, but should already
be covered by the distribution_major_version line above.
Change-Id: I5c5ce45f4a29ee1b003bc3453d5439718e3e9c9c
Use a first_found lookup instead of a with_first_found loop so that
the 'paths' parameter can be used.
This ensures that only vars from the role are included, and not vars
from a parent calling role. This can happen when a parent role has
a higher priority vars file available for inclusion than the role
it calls.
Change-Id: I68087b411e0a056bc2c9a654bf975ea36de5fbec
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: I1351347e9f2308c7a4c0ad41f0e0335071756f5e
With the more recent versions of ansible, we should now use
"is" instead of the "|" sign for the tests.
This should fix it.
Change-Id: If810a426a28f150548f7249e5f1bba05ab731c97
The files/50-defaults.conf file configures some facilities and
priorities to be logged into the /var/log directory but the role
doesn't properly configure the permissions on it so rsyslog may
not be able to write anything to that directory.
Change-Id: I15478ca348a3a399f20b54ee130ce017e8d03551
Use the package module to install rsyslog server distro packages with
the package lists provided directly rather than looping through each
item.
Change-Id: If08bab687ef561edf61580d7f354207a83ca2393
Add support for SUSE based distributions. We also update the bindep.txt,
run_tests.sh and Vagrantfile files from the openstack-ansible-tests
repository.
Change-Id: Id96d9eec52e136b4be5acbd4657de3ebd4f25980
"Do what I say, not what I do" is exactly what happened here.
The previous commit to enforce the proper tag naming convention
was enforced with a typo for install tags: rolename_install
instead of rolename-install. Config tags were properly done and
don't need updating.
Change-Id: I717e72b26c62ac347ef9dca96564cebb00ec9718
Added rsyslog restart handlers to each rsyslog_server_post_install task.
There was an issue when rsyslog_post_install would stop its service,
it would automatically get restarted and the service would not listen
for incoming logs. This now ensures that the rsyslog service will
be restarted after configuration files are changed.
Add rsyslog_pid_name to variable files for distrubition changes for rsyslogd pid
Change-Id: I757387e8f7f7209b1ab928208894ecf4bf510efc
Partial-Bug: 1636017
In order to make it easier to differentiate between the lists of
python packages, distribution packages, downloaded packages,
package pins and other similar variables the variable names are
being changed to ensure that they have a more explicit suffix
that defines the purpose and makes the naming more consistent.
This is to facilitate a lookup plugin which will be able to look
up all the package lists and present them as a consolidated piece
of data which may be used for artifact preparation.
Change-Id: I625c11a3ebc4ab15d6c3db9ec5858d6a90d43c52
The current method of installing the distribution packages required is
set in the tasks and cannot be changed by a deployer.
Currently the apt task always installs the latest package. This results
in unexpected binary changes when a deployer may simply be trying to
execute a configuration change.
This patch adds the ability for a deployer to change the desired state
so that the results are predictable.
Change-Id: If54f50bed876970c626e67f8501d581f68476c2f
There is no yum module equivalent for this task, so to avoid the
'[ANSIBLE0006] yum used in place of yum module' error from
ansible-lint this task is omitted from the lint check.
Change-Id: I3c6035bb25a5137500fff2e2623fd243a1dcb34f
When executing the role with Ansible 2.1, the following
deprecation warning is issued in the output for some tasks.
[DEPRECATION WARNING]: Using bare variables is deprecated.
This patch addresses the tasks to fix the behaviour appropriately.
Change-Id: I7a8bc1f847eaa894674d0c0db8a60f46ad334377
This is an implementation of a pattern for multi-distro support by
including logic to deploy packages via either apt-get or yum.
This change has been tested with CentOS 7 and Ubuntu 14.04. Package
names and other distro/family specific variables are supplied via one
of the files in vars/ utilizing the following precedence:
"{{ ansible_distribution | lower }}-{{ ansible_distribution_version | lower }}.yml"
"{{ ansible_distribution | lower }}.yml"
"{{ ansible_os_family | lower }}.yml"
In this change, only the files corresponding to 'ansible_os_family'
have been provided. The included 'families' are 'debian' and 'redhat'
This allows for support of distros other than Ubuntu and CentOS, such
as Debian and Fedora, more easily in the future.
Change-Id: I78c8c3be9d00fc505fabc83de36dfd43b8e85848
Workarounding the upstream ansible apt module bug
documented here:
https://github.com/ansible/ansible-modules-core/pull/1517
For the next versions of ansible we'll be using, we should
check if the apt bug is fixed. When it's fixed, we could
abandon this change and use the standard apt module
with correct cache handling.
Change-Id: I00d6d0704e77bc3f8f19fb36933ac518b3372e8d