Commit Graph

21 Commits

Author SHA1 Message Date
Takashi Kajinami 0791fbb26c validate maxdelay for cron job
The parameter descriptions says the value should be a positive integer
(or 0). Validate the given value to reject invalid values such as
strings or even negative values.

Change-Id: I63719129644e3723b86d0b63b78c36e151724473
2024-04-08 16:44:42 +09:00
Takashi Kajinami bb44895619 Allow customizing status of cron job
... so that users can even remove the job. This follows what was added
to puppet-nova by [1].

[1] https://review.opendev.org/c/openstack/puppet-nova/+/877096

Change-Id: I1f6ff0d39998695d2c69fd0cfc0bcf08e2cafe4a
2023-03-13 23:00:44 +09:00
Takashi Kajinami 43735fb127 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: Iebdb33dd18a8f8d18840ff3e5f4608f021a78bfa
2023-03-02 10:54:36 +09:00
Takashi Kajinami 21c95657ef Add sleep in cache cron jobs
... so that users can avoid executing the same cron command at the same
time in multiple nodes.

Technically this can be done without this change by setting a different
cron job schedule in each node but it requires complicated parameter
setting.

Change-Id: I596879d5d46f23e54fe344d5bf93a57837a6d287
2022-06-20 22:26:06 +09:00
Takashi Kajinami 8deb04fca2 Avoid hard-coding OS user/group in each manifest
and replace hard-codes by definition in params.pp .

Change-Id: I8a124223168556a6e733628d97151a79bc191c86
2022-02-20 19:53:45 +09:00
ZhongShengping 3dd0c3018f Add watch_log_file option
Add support for Using logging handler designed to watch file system.

Change-Id: I73e721e28155e090585ce4513c11e0949257c6c9
Closes-Bug: #1943212
2021-09-14 16:02:08 +08:00
Tobias Urdin ed9298e996 Convert all class usage to relative names
Change-Id: I9ff8d888e367a46ab89e3668bf4ba76c4c7c127c
2019-12-08 23:06:03 +01:00
Tobias Urdin f09800121b Remove deprecated logging
Change-Id: Id33a11d8eb74bc4685b7c1e88de9f73df1404e03
2019-01-05 22:12:27 +01:00
Juan Antonio Osorio Robles 03dd353f34 Expose use_json logging option
It enables JSON-formatted logging from oslo.log.

Change-Id: I11d3084fa679c8cf400f1215d098c7a1c90db602
2017-11-27 14:42:27 +02:00
Iury Gregory Melo Ferreira 8684c85d12 Remove verbose
Since we are in Ocata we should remove the
verbose option that was deprecated

Change-Id: I454aa625c5b0c4139309962dd4c1088dd52ef749
2016-10-25 20:01:14 -03:00
Mykyta Karpin 88713c96f7 Fix documentation for log_dir parameter
Change-Id: I280409ece958a0b2c5e25cc6ad511834b8cec47c
Partial-Bug: #1600294
2016-10-18 17:23:55 +03:00
Clayton O'Neill 18b010975c 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: If683fbd098e701a3c4da91941cf818b18b41b209
2016-06-17 13:17:34 +00:00
Iury Gregory Melo Ferreira cf604fc6a6 Deprecate verbose option in logging
Option "verbose" from group "DEFAULT" is deprecated for removal.
The parameter has no effect.
-Deprecated verbose for logging and init
-Remove verbose in README
-Remove verbose from tests.

If this option is not set explicitly, there is no such warning

Change-Id: I7e58412fe26962337845b3cb9d67679bac0709d8
2016-05-18 01:12:46 -03:00
Denis Egorenko af8da24358 Totally drop Qpid support
Qpid was removed in Mitaka from Oslo Messaging, so now we can
drop it in manifests.

Change-Id: I336c99b7709f061734ca09128a366361f13a934e
2016-04-18 14:15:28 +03:00
iberezovskiy 558fa4d212 Configure oslo related parameters using puppet-oslo module
Database, logging and policy parameters for api, registry
and glare services are configured from oslo defines now.

Change-Id: Iee5ee3adfaf9cef1dd3f634806d47c3c52c648fb
2016-04-14 14:20:18 +03:00
Yanis Guenane 72fbeed3dc Create glance::cache::logging class
This review creates the glance::cache::logging class to be in feature
parity with glance::api and glance::registry.

Change-Id: Ia3f27e991b1e525ee3604502d6afc6dc7d45247c
2016-01-11 16:10:16 +03:00
luyuan 9989505da6 Update CHANGELOG.md and other files
Notice:
  Add terminator
    - CHANGELOG.md
  Remove spaces
    - glance::cache::cleaner
    - glance::cache::pruner
    - glance::client
    - glance::policy
Fix bug 1485160

Change-Id: I3e7a6fb13aade5ca3f886029f1f4e96a1c606ac6
2015-08-15 19:51:04 +08:00
Clayton O'Neill d72e768a10 Add Puppet 4.x lint checks
This changes the puppet-lint requirement to 1.1.x, so that we can use
puppet-lint plugins.  Most of these plugins are for 4.x compat, but some
just catch common errors.

Change-Id: I3d21236d5bf3b0b6c625e38e20492d35aaa13307
2015-02-09 17:02:48 +00:00
Benedikt Trefzer b8a59c7706 add command_options to glance::cache::[cleaner|pruner]
The parameter command_options allows to add options
(like config file to use) to the cron job command.
This makes it also possible to redirect the output.

Extend tests, to support different operating systems
and test parameters.

Change-Id: I12a76e742db7279eafa3f3ec3c92947ff551b782
2014-09-23 08:17:29 +02:00
Dan d620ff6b1c Set dep from glance cron jobs to api package
Currently there is no dependency between the
glance cron jobs and the glance api package.

This dependency needs to exist b/c the cron jobs
cannot even be created by Puppet until the
glance user exists on the system (which in
the case of package installation is installed
via the installation of the glance package)

This patch adds the dependency.

Change-Id: Ib0a42cf171d4fcabaab616c880aad2d0c4db4424
2014-07-17 13:28:14 -07:00
Mathieu Gagné 7da1f3bf2d Add glance-cache-cleaner and glance-cache-pruner
* glance::cache::cleaner: Installs a cron job to remove stalled and
  invalid cached images.
* glance::cache::pruner: Installs a cron job to keep the image cache
  at or below the maximum cache size.

Change-Id: I99cb1809446f1a1126454ff5fa5bdceb8044ee28
2013-07-24 18:11:29 -04:00