Commit Graph

8 Commits

Author SHA1 Message Date
Takashi Kajinami 8ed0bcb867 replace validate_legacy with proper data types
the validate_legacy function is marked for deprecation in
v9.0.0 from puppetlabs-stdlib.

Note that this change looses validation about pool ids. Alternatively
we can define a new data type to keep the validation, but these defined
types for pool-manager were already deprecated and useless and will be
removed in a near future release so we avoid that redundant step.

Change-Id: I85d7058bf379c6aa0e787b2f806f14aebf0693d3
2023-06-19 17:27:32 +09:00
Takashi Kajinami 0e30dd1220 Update comment to fix lint
manifests/config.pp:7:WARNING: No matching class parameter for
documentation of designate::config::xxx_config
manifests/init.pp:15:WARNING: No matching class parameter for
documentation of designate::service_ensure

Change-Id: Idacc31cf50ce2bc5774a4b3552161e489d0174d4
2020-10-06 01:31:38 +09:00
Tobias Urdin b7f73b35c5 Convert all class usage to relative names
Change-Id: Iae69aff79cc231336b14d65305fff9c64cbd27e0
2019-12-08 23:04:25 +01:00
Tobias Urdin d83b0dafdc Use validate_legacy
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: If8c450da479eca3167d93a1ef29ac8b1bc4312ca
2019-02-23 14:41:42 +01:00
ZhongShengping 1e95f32a6f Add hooks for external install & svc management
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: If9fa188b7dca47e6724a737d66e34c0c85668c36
2016-12-01 08:44:02 +08:00
Xiaohua Yuan 7bf0e24007 add designate_rootwrap_config in designate::config
this path aims to add designate_rootwrap_config
in designate::config.

use designate config resources to manage
custom configurations in rootwrap config files.

Change-Id: Iee8aa66ff6464f387664d2a0571f6e6ad685dc2b
2015-08-07 20:12:25 -07:00
Clayton O'Neill c0650b1d7b Add puppet-lint param docs check
This ensures that all parameters are documented and includes fixes to
existing undocumented parameters or incorrectly formatted docs.

Change-Id: I14c093214e45ad3b14123e16ee8ccf309ba45978
2015-02-17 16:03:46 +00:00
Xingchao Yu c444ca0989 Introduce designate:config to manage custom options
This designate::config is aim to use designate config resources
to manage custom configurations in designate config files.

This will make end user easy to add their own custom options
in Hiera data.

Fully implements blueprint designate-custom-config

Change-Id: I11a4cd53ae68113341e8b0851c68c9d09c362e86
2014-09-24 04:18:25 +00:00