Skip to content

do not deploy all database packages #132

@jdreffein

Description

@jdreffein

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',
    },
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions