Skip to content

Cant manage/configure redhat SCL mariadb rh-mariadb105 #1494

Open
@nandha027

Description

@nandha027

Describe the Bug

Module not supported to install redhat SCL (rh-mariadb105) as we cant make service unit(rh-mariadb105) managed by module.
If i enable service_manage true , it throws error with root password .
agent_error

Expected Behavior

I expect to manage/configure redhat SCL mariadb as its already installed

Steps to Reproduce

Hi Team,

I was trying to manage Redhat SCL mariadb ( rh-mariadb105 ) via puppet module ( https://github.com/puppetlabs/puppetlabs-mysql ) and was trying to configure with different options but still cant get it done.
Please someone help me on this.

Puppetserver:

hostname - puppet.mylabserver.com

puppetserver version - puppetserver-6.19.0-1.el7.noarch

/etc/puppetlabs/code/environments/production/modules/mysql/metadata.json

"name": "puppetlabs-mysql",
"version": "13.0.0",

site.pp:

node '9a67a918185c.mylabserver.com' {
class { 'mysql::server':
package_name => 'rh-mariadb105-mariadb',
package_ensure => '10.5.16-2.el7.x86_64',
service_name => 'rh-mariadb105-mariadb',
service_provider => 'systemd',
root_password => 'UNSET',
options => {
'mysqld' => {
'datadir' => '/etc/opt/rh/rh-mariadb105/',
'general_log_file' => '/var/log/mariadb/mariadb.log',
'socket' => '/var/run/mariadb/mariadb.sock',
'log-error' => '/var/log/mariadb/mariadb.log',
'pid-file' => '/var/run/mariadb/mariadb.pid',
},
}

}
}

Puppet agent:

hostname

9a67a918185c.mylabserver.com

uname -an

Linux 9a67a918185c.mylabserver.com 3.10.0-1160.66.1.el7.x86_64 #1 SMP Wed Apr 27 20:34:34 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

puppet agent -tv

Info: Using environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Info: Caching catalog for 9a67a918185c.mylabserver.com
Info: Applying configuration version '1664899320'
Notice: /Stage[main]/Mysql::Server::Service/Service[mysqld]: Dependency Mysql_datadir[/etc/opt/rh/rh-mariadb105/] has failures: true
Warning: /Stage[main]/Mysql::Server::Service/Service[mysqld]: Skipping because of failed dependencies
Warning: /Stage[main]/Mysql::Server::Service/Exec[wait_for_mysql_socket_to_open]: Skipping because of failed dependencies
Warning: /Stage[main]/Mysql::Server::Root_password/Exec[remove install pass]: Skipping because of failed dependencies
Warning: /Stage[main]/Mysql::Server/Anchor[mysql::server::end]: Skipping because of failed dependencies
Error: Could not find a suitable provider for mysql_datadir
Notice: Applied catalog in 0.23 seconds

Environment

  • Puppetserver Platform
    • OS: Red Hat Enterprise Linux Server release 7.9 (Maipo)
    • kernel: 3.10.0-1160.66.1.el7.x86_64
  • Agent Platform
    • OS : Red Hat Enterprise Linux Server release 7.9 (Maipo)
    • kernel: 3.10.0-1160.66.1.el7.x86_64

Additional Context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions