48
39
# Generate a basic config for all PostgreSQL charm deploys.
49
40
# Tests may add or change options.
50
41
self.pg_config = {'version': self.VERSION}
42
# If we are not using the default version of PostgreSQL for
43
# the Ubuntu release we are testing on, add the PostgreSQL
44
# Global Development Group APT archive to make the official
45
# backports available.
51
46
if SERIES == 'precise' and self.VERSION == '9.1':
47
self.pg_config['pgdg'] = False
53
48
elif SERIES == 'trusty' and self.VERSION == '9.3':
49
self.pg_config['pgdg'] = False
56
# If we are not using the default version of PostgreSQL for
57
# the Ubuntu release we are testing on, add the PostgreSQL
58
# Global Development Group APT archive to make the official
59
# backports available.
60
self.pg_config['install_sources'] = yaml.safe_dump([
61
'deb {} {}-pgdg main'.format(
62
'http://apt.postgresql.org/pub/repos/apt/', SERIES)],
63
default_flow_style=False)
64
self.pg_config['install_keys'] = yaml.safe_dump(
65
['ACCC4CF8'], default_flow_style=False)
51
self.pg_config['pgdg'] = True
67
53
self.juju = self.useFixture(JujuFixture(
68
54
reuse_machines=True,