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

do not deploy all database packages #132

Open
jdreffein opened this issue Feb 6, 2023 · 0 comments
Open

do not deploy all database packages #132

jdreffein opened this issue Feb 6, 2023 · 0 comments

Comments

@jdreffein
Copy link

jdreffein commented Feb 6, 2023

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet:
  • Ruby:
  • Distribution:
  • Module version:

How to reproduce (e.g Puppet code you use)

take any distribution with configured own repository management or subscription (like via Katello or RHEL satellite).
Set used database for director to postgresql (should be default) and assure required postgresql repos are presented by subscription.

What are you seeing

There are errors showing up while trying mysql and sqlite3 packages.

What behaviour did you expect instead

only include postgresql packages (default) unless other db_driver is configured for module

Output log

Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install bareos-database-mysql' returned 1: Error: Nothing to do
Loaded plugins: product-id, subscription-manager
Error: /Stage[main]/Bareos::Director/Package[bareos-database-mysql]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install bareos-database-mysql' returned 1: Error: Nothing to do
Loaded plugins: product-id, subscription-manager
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install bareos-database-sqlite3' returned 1: Error: Nothing to do
Loaded plugins: product-id, subscription-manager
Error: /Stage[main]/Bareos::Director/Package[bareos-database-sqlite3]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install bareos-database-sqlite3' returned 1: Error: Nothing to do
Loaded plugins: product-id, subscription-manager

Any additional information you'd like to impart

class ptx_bareos::config {
  $password = 'xxx'
  $name_dir = 'bareos-dir'
  $catalogs = {
    'MyCatalog' => {
      'db_driver'   => 'postgresql',
      'db_name'     => 'bareos_catalog',
      'db_address'  => 'localhost',
      'db_port'     => 5432,
      'db_user'     => 'bareos',
      'db_password' => 'xyz',
    },
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant