-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add acceptance test #109
base: master
Are you sure you want to change the base?
Add acceptance test #109
Conversation
With no experience with this module, fixing acceptance tests might be tricky… I feel like somebody used to the module can quickly manage to fix these tests so that we can have more coverage during tests. @FlorentPoinsaut maybe wink wink wink 😉 ? The idea would be to adjust |
I take a look. |
There are a problem with dependency packages ( |
Okay, if I follow correctly the package lists are OS dependent and dependent on the usage of external repos. Maybe me can have for each OS the list of packages by repo in $system_director_packages = ['foo']
$bareos_director_packages = ['python2-foo'] And for another OS: $system_director_packages = ['python-foo']
$bareos_director_packages = ['python3-foo'] Then depending on the repo used we use the suited variable in the main manifest: class bareos (
# ...
$director_package_name = undef, # change to undef so we can pick later
) inherits bareos::params {
# Get the right packages for fallback if not provided
$default_director_packages = $manage_repo ? {
true => $bareos_director_packages,
false => $system_director_packages,
}
# pick the right package
$director_packages = pick($director_package_name, $default_director_packages)
# use it
package { $director_packages:
# ...
}
} That way we don't change the interface for end users of the module and all the actual data is in Probably not the only way to do it? |
Rebased on current master. |
It looks like this is failing because the |
Rebased on current master. |
bc389ec
to
a6fa3de
Compare
226696e
to
0dae182
Compare
As of bareos 21, the only supported db is `postgres` and the `DB Driver` configuration directive itself is deprecated. The puppet parameter is being left in place "for the moment" to catch existing users of this module which may have been setting a different DB backend via hiera. See: https://docs.bareos.org/Configuration/Director.html#config-Dir_Catalog_DbDriver
Resolves these warnings: Notice: /Stage[main]/Bareos/File[/etc/bareos/bareos-dir-export]: Not removing directory; use 'force' to override
We have an example in this project and can run acceptance tests against it. Will it work?