Foreman-installer MySQL not working as expected

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

  1. Enable/disable foreman module, current value: true
  2. Set db_username, current value: foreman
  3. Set repo, current value: stable
  4. Set version, current value: present
  5. Set locations_enabled, current value:
    false
  6. Set oauth_consumer_key, current value:
    bBjryDHSyMLS7UmvXLXusZnUVcwExC9C
  7. Set db_adapter, current value: mysql
  8. Set db_sslmode, current value:
  9. Set app_root, current value:
    /usr/share/foreman
  10. Set custom_repo, current value: true
  11. Set db_type, current value: mysql
  12. Set db_port, current value:
  13. Set db_password, current value: songbird
  14. Set environment, current value:
    production
  15. Set puppet_home, current value:
    /var/lib/puppet
  16. Set foreman_url, current value:
    https://server01
  17. Set authentication, current value: true
  18. Set ssl, current value: true
  19. Set group, current value: foreman
  20. Set organizations_enabled, current value:
    false
  21. Set oauth_map_users, current value: true
  22. Set db_host, current value: localhost
  23. Set db_database, current value: foreman
  24. Set passenger_interface, current value:
  25. Set gpgcheck, current value: true
  26. Set db_manage, current value: true
  27. Set apache_conf_dir, current value:
    /etc/httpd/conf.d
  28. Set oauth_active, current value: true
  29. Set unattended, current value: true
  30. Set use_vhost, current value: true
  31. Set selinux, current value:
  32. Set user_groups, current value: puppet
  33. Set passenger, current value: true
  34. Set passenger_scl, current value:
    ruby193
  35. Set user, current value: foreman
  36. Set oauth_consumer_secret, current value:
    ob6vMNZeuVDRbdLruornEGaai4wHvoqx
  37. 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. >