Ensure pymysql is installed

PyMySQL was/will be removed from requirements.txt in refstack as it
is not an explicit dependency. It's an optional DB driver that is only
necessary if it is specified in the refstack configuration database URL.
Since pymysql is specified as the driver here, it is necessary to ensure
it is installed.

Change-Id: I336aa8ef196526601c16b165d8200b63ff11825d
This commit is contained in:
Paul Van Eck 2017-02-03 16:10:40 -08:00
parent 4336f5fb05
commit fb115601b3
1 changed files with 7 additions and 0 deletions

View File

@ -66,6 +66,13 @@ class refstack::app () {
}
}
if !defined(Package['pymysql']) {
package { 'pymysql':
ensure => present,
provider => 'pip'
}
}
# Create the RefStack configuration directory.
file { '/etc/refstack':
ensure => directory,