The option has been managed by the underlying puppet-oslo module but
has not been configurable. This introduces the parameter to customize
the option.
Change-Id: I130896ce504d726d580a4a4de4059f135187d0a4
This change introduces the new purge_config parameter to the policy
class so that any policy rules not managed by puppet manifests can be
cleared.
Co-Authored-By: Martin Schuppert <mschuppert@redhat.com>
Depends-On: https://review.opendev.org/802305
Change-Id: Ia5fecab4cb81dda87766b950433cdad3ce75b9eb
This patch makes it possible to override the current service default,
which is /etc/<service>/policy.d .
Change-Id: I14172b26646254221d5e0816c4c7ebc9da4952fb
This changes all the puppet 3 validate_* functions
to use the validate_legacy function.
The validate_legacy function has been available since
about three years but require Puppet >= 4.4.0 and since
there is Puppet 4.10.12 as latest we should assume people
are running a fairly new Puppet 4 version.
This is the first step to then remove all validate function
calls and use proper types for parameter as described in spec [1].
[1] https://review.openstack.org/#/c/568929/
Change-Id: I639f87c524ea7f565a8cc6ddaf331afa284b9e22
Make sure documentation is the same and follow
the standard which we are trying to enforce on
all modules.
Change-Id: I4e8e9d55254de75dc3442afdd20ce7602b0ca10b
The move of policy.json into code means the file may not exist. We've
added support to ensure that the file exists in the openstacklib but we
need to make sure the permissions are right for each service. This adds
the group information to the policies so it works right.
Depends-On: I26e8b1384f4f69712da9d06a4c565dfd1f17c9ed
Change-Id: Idff05735bd2e2155253cd96eafc5e1e7c28b03b5
Co-Authored-By: Alex Schultz <aschultz@redhat.com>
This adds defined anchor points for external modules to hook into the
software install, config and service dependency chain. This allows
external modules to manage software installation (virtualenv,
containers, etc) and service management (pacemaker) without needing rely
on resources that may change or be renamed.
Change-Id: I31c023824e428ad0fc3dad30b4d3103aaa747597
This commit allow a deployer to manage the policies via this module
It relies on augeas to change only the policy needed. The init takes
a hash of policies and apply them.
Change-Id: I8bd71a740294394009b2ad581121a9999956b5d0