Commit Graph

9 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 5f76a510ac Deprecate os-panko role
Since upstream Panko project has retired, we deprecating role for it.

Since we might want to get some patches in for stable branches, we're
deprecating role instead of retiring it.

Depends-On: https://review.opendev.org/c/openstack/project-config/+/799802
Change-Id: I35e008bcc9b35373dc6db2672ee1cabb328e7f9b
2021-07-07 15:44:31 +03:00
Dmitriy Rabotyagov a396d45942 [goal] Deprecate the JSON formatted policy file
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.

[1] https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: Ib434e98cd4df42ea77bcb985eafe2e56b1ac6fe9
2021-04-06 12:21:54 +00:00
Jonathan Rosser 73863b9083 Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654

Change-Id: I1f848a2d08be7975a1bde9832fea1e29f5e7b410
2021-03-16 08:14:58 +00:00
Dmitriy Rabotyagov 2cb6ab1815 Start using uWSGI role
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: Ied62269392fa8d7b0ddfe6e29f52c34ddbbbce20
2019-09-06 00:45:45 +03:00
Dmitriy Rabotyagov 50f1a48c6c Migrate panko to use uWSGI
This patch moves panko-api from usage of apache with mod_wsgi
to uWSGI, which means unification across another roles and
reduced maintenance costs

During migration period tasks that ensures apache won't listen
on panko_service_port are present, but they are supposed to be removed
after train release.

Change-Id: Ic61c60e2db45ac5e51bb3a43d7928648d9ae5d19
2019-08-02 16:28:12 +03:00
Jesse Pretorius a188bb25f0 Use a common python build/install role
In order to radically simplify how we prepare the service
venvs, we use a common role to do the wheel builds and the
venv preparation. This makes the process far simpler to
understand, because the role does its own building and
installing. It also reduces the code maintenance burden,
because instead of duplicating the build processes in the
repo_build role and the service role - we only have it all
done in a single place.

We also change the role venv tag var to use the integrated
build's common venv tag so that we can remove the role's
venv tag in group_vars in the integrated build. This reduces
memory consumption and also reduces the duplication.

This is by no means the final stop in the simplification
process, but it is a step forward. The will be work to follow
which:

1. Replaces 'developer mode' with an equivalent mechanism
   that uses the common role and is simpler to understand.
   We will also simplify the provisioning of pip install
   arguments when doing this.
2. Simplifies the installation of optional pip packages.
   Right now it's more complicated than it needs to be due
   to us needing to keep the py_pkgs plugin working in the
   integrated build.
3. Deduplicates the distro package installs. Right now the
   role installs the distro packages twice - just before
   building the venv, and during the python_venv_build role
   execution.

Depends-On: https://review.openstack.org/598957
Change-Id: Ibe21d0114a935bd2f91ca7a570c8051e14611548
Implements: blueprint python-build-install-simplification
Signed-off-by: Jesse Pretorius <jesse.pretorius@rackspace.co.uk>
2018-09-03 11:09:55 +00:00
zhulingjie e3b9802b93 Remove the unnecessary space
Change-Id: If0f31859aae691c297bcc46990502cd8f2dab050
2018-07-11 23:04:36 -04:00
Jean-Philippe Evrard 9df93bf606 Fix usage of "|" for tests
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: I15c2baf69195543100bb3c25cabb2e16dac1984e
2018-07-12 16:57:01 +02:00
gokhan.isik 0afd4d81e4 Openstack Ansible panko service role created 2018-01-05 14:59:49 +03:00