You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am seeing the following error due to the .my.cnf file not being created in the /root/ folder on a Rocky Linux 9 host.
Info: /Stage[main]/Mysql::Server::Service/Service[mysqld]: Unscheduling refresh on Service[mysqld]
Error: Could not prefetch mysql_user provider 'mysql': Execution of '/usr/bin/mysql -NBe SELECT CONCAT(User, '@',Host) AS User FROM mysql.user' returned 1: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Warning: /Stage[main]/Mysql::Server::Root_password/Mysql_user[root@localhost]: Skipping because provider prefetch failed
Notice: /Stage[main]/Mysql::Server::Root_password/File[/root/.my.cnf]: Dependency Mysql_user[root@localhost] has failures:
true
Expected Behavior
The .my.cnf file should be created in the /root/ folder to allow subsequent tasks to be executed after connecting to the MySQL instance.
Steps to Reproduce
Install the eyaml module if required on the Puppet server.
Generate keys for eyaml and define in your environment hiera.yaml: eyaml createkeys --pkcs7-private-key=/etc/puppetlabs/puppet/keys/private_key.pkcs7.pem --pkcs7-public-key=/etc/puppetlabs/puppet/keys/public_key.pkcs7.pem
Encrypt the password: eyaml encrypt -s 'mypassword' --pkcs7-private-key=/etc/puppetlabs/puppet/keys/private_key.pkcs7.pem --pkcs7-public-key=/etc/puppetlabs/puppet/keys/public_key.pkcs7.pem
Store the encrypted password in your emvironments data/common.yaml file
Describe the Bug
I am seeing the following error due to the .my.cnf file not being created in the /root/ folder on a Rocky Linux 9 host.
Expected Behavior
The .my.cnf file should be created in the /root/ folder to allow subsequent tasks to be executed after connecting to the MySQL instance.
Steps to Reproduce
eyaml createkeys --pkcs7-private-key=/etc/puppetlabs/puppet/keys/private_key.pkcs7.pem --pkcs7-public-key=/etc/puppetlabs/puppet/keys/public_key.pkcs7.pem
eyaml encrypt -s 'mypassword' --pkcs7-private-key=/etc/puppetlabs/puppet/keys/private_key.pkcs7.pem --pkcs7-public-key=/etc/puppetlabs/puppet/keys/public_key.pkcs7.pem
puppet agent -t
to apply the configuration.Environment
The text was updated successfully, but these errors were encountered: