Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
I made this change as recommended yesterday on the #puppet-openstack channel:
openstack/manifests/init.pp --
+ Class['mysql'] -> Class['keystone:Db::mysql']
- class { 'mysql': }
-----
Error: Could not retrieve catalog from remote server:
Error 400 on SERVER: Could not find resource
'Class[Keystone:db::Mysql]' for relationship
from 'Class[Mysql]' on node
yet:
git:/etc/puppet/modules/ymd_ng# grep class keystone/manifests/db/mysql.pp
# This class can be used to create tables, users and grant
class keystone::db::mysql(
?????
-----
root@dessalines-003:~# puppet agent -t
Error: Could not retrieve catalog from remote server:
Error 400 on SERVER: Could not find resource 'Class[Mysql::Config]'
for relationship on 'Mysql::Db[keystone]'
on node dessalines-003.yourmessagedelivered.com
-----
git:/etc/puppet/modules/ymd_ng# puppet parser validate mysql/manifests/config.pp
git:/etc/puppet/modules/ymd_ng#
git:/etc/puppet/modules/ymd_ng# grep class mysql/manifests/config.pp
# class mysql::server
# class { 'mysql::config':
class mysql::config(
-----
openstack/manifests/init.pp --
# Author: Hugh Esco <hesco@yourmessagedelivered.com>
# note that this module is now calling out to the
# puppet forge module, trying to learn how to use it.
class openstack {
# Duplicate declaration: Class[Mysql] is already declared;
# cannot redeclare at /etc/puppet/modules/ymd_ng/openstack/manifests/init.pp:10
# include mysql::config
class { 'mysql': }
# attempt_compatibility_mode => 1,
class { 'keystone::db::mysql':
password => $hesco_openstack::params::mysql_root_password,
allowed_hosts => '%',
}
keystone_user { 'openstack':
ensure => present,
enabled => 'True'
}
class { 'openstack::keystone':
verbose => true,
debug => true,
public_address => $hesco_openstack::params::public_address,
admin_token => $hesco_openstack::params::keystone_admin_token,
admin_email => 'hesco@yourmessagedelivered.com',
admin_password => $hesco_openstack::params::keystone_admin_password,
glance_user_password => $hesco_openstack::params::glance_user_password,
nova_user_password => $hesco_openstack::params::nova_user_password,
cinder_user_password => $hesco_openstack::params::cinder_user_password,
quantum_user_password => $hesco_openstack::params::quantum_user_password,
db_type => $hesco_openstack::params::keystone_db_type,
db_host => $hesco_openstack::params::keystone_db_host,
db_name => $hesco_openstack::params::keystone_db_name,
db_user => $hesco_openstack::params::keystone_db_user,
db_password => $hesco_openstack::params::keystone_db_pass,
public_protocol => $hesco_openstack::params::public_protocol,
admin_address => $hesco_openstack::params::admin_real_address,
internal_address => $hesco_openstack::params::internal_real_address,
region => $hesco_openstack::params::region,
}
# db_password => $hesco_openstack::params::mysql_root_password,
# public_address => '68.168.146.150',
# sql_connection => $hesco_openstack::params::sql_connection,
# catalog_type => 'sql',
# admin_token => 'random_uuid',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment