HOSTNAME: server01
OS: redhat
RELEASE: CentOS release 6.4 (Final)
FOREMAN: 1.3.1
RUBY: ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
PUPPET: 2.7.23
I run the following:
foreman-installer --foreman-db-adapter=mysql --foreman-db-type=mysql
–foreman-db-database=foreman --foreman-db-host=localhost
–foreman-db-username=foreman --foreman-db-password=songbird
These are the errors I get:
/Stage[main]/Mysql::Client::Install/Package[mysql_client]/ensure: change
from absent to present failed: Could not find package mysql
/Stage[main]/Mysql::Server/Package[mysql-server]/ensure: change from absent
to present failed: Could not find package mysql-server
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)
Could not prefetch mysql_database provider 'mysql': Execution of
'/usr/bin/mysql -NBe show databases' returned 1: ERROR 1045 (28000): Access
denied for user 'root'@'localhost' (using password: NO)
Could not prefetch mysql_grant 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)
It's like the script doesn't actually use my MySQL parameters.
Also - here is the foreman config:
Module foreman configuration
- Enable/disable foreman module, current value: true
- Set db_username, current value: foreman
- Set repo, current value: stable
- Set version, current value: present
- Set locations_enabled, current value:
false
- Set oauth_consumer_key, current value:
bBjryDHSyMLS7UmvXLXusZnUVcwExC9C
- Set db_adapter, current value: mysql
- Set db_sslmode, current value:
- Set app_root, current value:
/usr/share/foreman
- Set custom_repo, current value: true
- Set db_type, current value: mysql
- Set db_port, current value:
- Set db_password, current value: songbird
- Set environment, current value:
production
- Set puppet_home, current value:
/var/lib/puppet
- Set foreman_url, current value:
https://server01
- Set authentication, current value: true
- Set ssl, current value: true
- Set group, current value: foreman
- Set organizations_enabled, current value:
false
- Set oauth_map_users, current value: true
- Set db_host, current value: localhost
- Set db_database, current value: foreman
- Set passenger_interface, current value:
- Set gpgcheck, current value: true
- Set db_manage, current value: true
- Set apache_conf_dir, current value:
/etc/httpd/conf.d
- Set oauth_active, current value: true
- Set unattended, current value: true
- Set use_vhost, current value: true
- Set selinux, current value:
- Set user_groups, current value: puppet
- Set passenger, current value: true
- Set passenger_scl, current value:
ruby193
- Set user, current value: foreman
- Set oauth_consumer_secret, current value:
ob6vMNZeuVDRbdLruornEGaai4wHvoqx
- Back to main menu
···
On Thursday, December 19, 2013 12:17:55 PM UTC-6, Drew Decker wrote:
>
> HOSTNAME: server01
> OS: redhat
> RELEASE: CentOS release 6.4 (Final)
> FOREMAN: 1.3.1
> RUBY: ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
> PUPPET: 2.7.23
>
> *I run the following:*
> foreman-installer --foreman-db-adapter=mysql --foreman-db-type=mysql
> --foreman-db-database=foreman --foreman-db-host=localhost
> --foreman-db-username=foreman --foreman-db-password=songbird
>
> *These are the errors I get:*
> /Stage[main]/Mysql::Client::Install/Package[mysql_client]/ensure: change
> from absent to present failed: Could not find package mysql
> /Stage[main]/Mysql::Server/Package[mysql-server]/ensure: change from
> absent to present failed: Could not find package mysql-server
> 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)
> Could not prefetch mysql_database provider 'mysql': Execution of
> '/usr/bin/mysql -NBe show databases' returned 1: ERROR 1045 (28000): Access
> denied for user 'root'@'localhost' (using password: NO)
> Could not prefetch mysql_grant 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)
>
> It's like the script doesn't actually use my MySQL parameters.
>