Commit Graph

8 Commits

Author SHA1 Message Date
Damian Dabrowski a240e24e54 Add TLS support to mistral backends
By overriding the variable `mistral_backend_ssl: True` HTTPS will
be enabled, disabling HTTP support on the mistral backend api.

The ansible-role-pki is used to generate the required TLS
certificates if this functionality is enabled.

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/879085
Change-Id: Id9248e1618b9f2ad39a698c2ecf9c04e64cd119a
2023-04-29 18:42:27 +02:00
Dmitriy Rabotyagov f991870918 Ensure service is restarted on unit file changes
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: I8703c4982a56bad5995119a1b05578f74a9eb2d7
2023-04-10 16:24:38 +02:00
Dmitriy Rabotyagov 7dd254b652 Remove mention of haproxy-endpoints role
Role was never migrated to usage of haproxy-endpoints role
and included task was used instead the whole time.
With that to reduce complexity and to have unified approach, all mention
of the role and handler are removed from the code.

Change-Id: I126a9180d37fe3242762776837e2b15abc9924e2
2022-06-14 18:01:48 +00:00
Jonathan Rosser 42e1f72e25 Remove legacy policy.json cleanup handler
Depends-On:  https://review.opendev.org/c/openstack/openstack-ansible/+/839988
Change-Id: Ibbb2a51e17a37e17469b1b4d4c1b8c0fc0450b35
2022-04-29 18:47:02 +00:00
Zuul 797835ffa6 Merge "Use ansible_facts[] instead of fact variables" 2021-06-12 12:52:54 +00:00
Dmitriy Rabotyagov f2cf31bf47 [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

Depends-On: https://review.opendev.org/c/openstack/openstack-ansible/+/777384
Change-Id: I9c358f7d8bd655712748717b391cbf6a58b196c7
2021-03-24 12:05:19 +00:00
Jonathan Rosser 481d5e49d7 Use ansible_facts[] instead of fact variables
See https://github.com/ansible/ansible/issues/73654

Change-Id: Iddd575ea7859e496a659a01a454e87d27e85fb1f
2021-03-16 08:12:48 +00:00
Mohammed Naser b6f83caabf Add initial Mistral role
This role allows the installation of Mistral alongside running
all of the API tests.

Depends-On: I2e19efd5fdcb0bdbb3d1cd5ee44f20e4807ea537
Depends-On: Ie3d8fb921dfedff0852b630a0a0af17b97c1bffa
Change-Id: I2390533690cd2c4511a272cc0834e240bb554696
2019-02-06 15:42:34 -05:00