Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit heartbeat_interval variable to accept integer instead of time #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aaronreay
Copy link
Contributor

Within /etc/bareos/bareos-dir.d/director/bareos-dir.conf, Heartbeat Interval accepts a value of an integer E.G 60. However, when attempting to set a value of 60 within the bareos director configuration, the below error is shown during rspec testing

Value '60' does not match regex (?i-mx:^(\d+|(\d+\W+(seconds|sec|s|minutes|min|hours|h|days|d|weeks|w|months|m|quarters|q|years|y)\W*)+)$)
class { 'bareos::director::director':
  heartbeat_interval      => 60
...
}

Where 60 is a valid value for the bareos-dir.conf heartbeat_interval. The values matched by Puppet's timestamp will not work here.

In our testing, time format does not deploy correctly as unable to add an integer, fails during rspec testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants