puppet-heat/examples/site.pp
Javier Pena f70d5d5f31 Support of PyMySQL driver for MySQL backend
Add the ability to use python-pymysql library as backend for MySQL
connections.

Update acceptance tests to use pyMySQL.

Change-Id: Id27afb52428a50ec889e8ae77f3509e1ca956538
Docs: https://wiki.openstack.org/wiki/PyMySQL_evaluation
2015-12-03 10:11:31 +01:00

30 lines
608 B
Puppet

node default {
Exec {
path => ['/usr/bin', '/bin', '/usr/sbin', '/sbin']
}
# First, install a mysql server
class { '::mysql::server': }
# And create the database
class { '::heat::db::mysql':
password => 'heat',
}
# Common class
class { '::heat':
# The keystone_password parameter is mandatory
keystone_password => 'password',
sql_connection => 'mysql+pymysql://heat:heat@localhost/heat'
}
# Install heat-engine
class { '::heat::engine':
auth_encryption_key => 'whatever-key-you-like',
}
# Install the heat-api service
class { '::heat::api': }
}