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: I9110294e492a501204c8e92448a2f2929781a509
At the moment we don't restart services if systemd unit file is changed.
We knowingly prevent systemd_service role handlers to execute
by providing `state: started` as otherwise service will be restarted twice.
With that now we ensure that role handlers will also listen for systemd
unit changes.
Change-Id: I4eec982a682bfff121f9658c6d4eb3d1db8cb94f
Since we don't need to mount and create volumes directory for
manila, ceph-fuse package is not required anymore as well.
Change-Id: I5cd92bd90ab19a32f7488ab56dbb6b005253e2c3
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: I508c7aea34bb706b58fc69be8bfb6c06d50f2f40
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to replace policy.json to
policy.yaml and remove deprecated policy.json.
config_template has been choosen instead of the copy, since it can
properly handle content that has been lookuped.
We make a separate task not to restart service when it's not needed.
CephFS Native hook has been removed since [2] as manila leverages MGR
now and doesn't require having directory in share.
Additionally bionic test is removed as we don't have Octopus infra
mirrors for it.
[1] https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html
[2] a830710939
Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/791202
Change-Id: I7a1807e4b984e31cb6250132f35d4c27f0b69b0c
Instead of overriding each service separatelly it might make
sense for deployers to define some higher level variable that
will be used first or fallback to default variable.
Change-Id: Ie2c30dcc3640361b91e602125e98996c897f0f06
Move service to use uWSGI role instead of iternal task for uwsgi
deployment. This aims to ease the maintenance of uWSGI and speedup
metal deployments as the same uwsgi environment will be used
across all services.
Change-Id: I946adf21b58e117508dcc470c0fb3e9c2565c26d
We use the same condition, which defines against what host some "service"
tasks should run against, several times. It's hard to keep it the same
across the role and ansible spending additional resources to evaluate
it each time, so it's simpler and better for the maintenance to set
a boolean variable which will say for all tasks, that we want to run
only against signle host, if they should run or not now.
Change-Id: I9dbb96df92711467aaa7676534adfd1f7013cb27
Previously _manila_backends was set only in case manila-share and
manila-api are the same host, which is the case only for aio deployments
Now fact will be set in an appropriate way.
This also drops facts refresh task since it's not need since queens and
uses tempfile for creating temporary directory
Change-Id: Ie5f95b7e80cd7fd26ee1f25aedf938abff131623
The uwsgi role assumes that the keys used match the service names
and all of our other services follow this pattern so let's keep
it the same for this.
Change-Id: Id740ff6704bddad306f7470665717dd5c8674e82
This patch refactors the openstack user/service/endpoints creation to
service_setup.yml which will eventually be managed by
openstack-ansible-tests.
Change-Id: Ie7533f10054abe382e21bca875d084449ee3047d
Do not carry and maintain rootwrap and api files, since they are present
inside pip packages and deployed during installation.
This also adds deployment of rootwrap filters for manila-share nodes.
Change-Id: I41b680f5dcb5be92e3304c591d9a4705cf138a72
This patch updates the meta to reflect it's
support of Debian accordingly as well as rename
ubuntu vars file to debian.
Change-Id: Ieba5eca547f5307b50733bd45f49a5f7611b7c5b
The developer mode no longer exists, therefore, we should remove
all references and we're already installing the distro devel
packages inside python_venv_build.
We were also referencing the wrong constraint variable, so this
fixes that as well.
Change-Id: Iaf2e848b80923718741c148f2a76d5a3efca53b1
This change updates manila so that it can function with cephfs.
While cephfs was assumed to work these changes solidify support
and tune up the role.
Change-Id: I4d95bfc15d09b7b7c0b997d7eab91509b0c63885
Signed-off-by: cloudnull <kevin@cloudnull.com>
Starting this new role as a copy of the os_cinder role due to the
similarities between the two openstack projects. This role will
deploy manila api, scheduler and share services on ubuntu with the
default local LVM backed NFS scenario.
Change-Id: Ibda073e5aaa6df3b254961d4aed3a8d5961f3432