b4fa7cfc85
Instead of sourcing the paste/policy files from the role,
the deploy host will first be checked, then the git source.
The current mechanism uses a lookup, causing the fetch of
the default templates to happen via curl from the deployment
node. This causes problems if the deployment node does not
have access to the repo server web service, which may be the
case in high security environments.
This patch changes the mechanism to only use the lookup
module for the file content that is on the deployment node,
then falls back to using the uri module to fetch the default
content. This ensures that the deployment node does not have
to reach into the environment for the content.
The pattern applied is the same as that used in the
combination of the following two reference patches:
- https://review.openstack.org/446235
- https://review.openstack.org/463390
The rootwrap.conf template is re-added because it cannot be
used verbatim from the upstream repository. It requires the
addition of the service venv bin in the exec_dirs. A mechanism
to implement this dynamically will be figured out in a later
review along with an implementation which will fetch the
rootwrap files directly from the git source too.
Conflicts:
defaults/main.yml
tasks/ceilometer_post_install.yml
Change-Id: I248910a544f611b590bc93449aea98434802cae3
(cherry picked from commit
|
||
---|---|---|
.. | ||
.placeholder | ||
add-gnocchi-integrations-40eef52bf255ab0b.yaml | ||
capping_ceilometer_workers-80a768e3aaed0aec.yaml | ||
ceilometer_conf_from_upstream-3bc88e19085cdace.yaml | ||
ceilometer_gnocci_resources_deprecate-efbce0894cf4e086.yaml | ||
ceilometer_init_time_settings-2eebfa58227ae31a.yaml | ||
ceilometer_upstream_file_retrieve-bbbf147cdeacb8f2.yaml | ||
ceilometer-default-os-endpoint-type-3adf9db32764ddf3.yaml | ||
ceilometer-init-config-overrides-bfce7e419061c4da.yaml | ||
configure-polling-sample-interval-54b2fb66140b4220.yaml | ||
deploy-node-config-files-1b272a3ec7ed71b8.yaml | ||
disable-list-extend-3a9547de9034f9ba.yaml | ||
os_ceilometer-centos-support-2a87df89aa7b7556.yaml | ||
os_ceilometer-only-install-venv-f3cd57b4a1d025c5.yaml | ||
package-list-name-changes-e351db8b482f1326.yaml | ||
package-state-ed22b9a6683690b3.yaml | ||
remove-requirements-git-eb90b906a4ad4642.yaml | ||
removed-ceilometer-api-init-a4bfc4cbabcbcb16.yaml | ||
support-ubuntu-xenial-958e8128ed6578cd.yaml | ||
update-aodh-integration-fd2a27e8864bd8ff.yaml |