~andrewjbeach/juju-ci-tools/make-local-patcher

1336.1.2 by seman.said at canonical
Remove bundle assertion from run_deployer.py
1
#!/usr/bin/env python
2
from __future__ import print_function
3
4
import logging
5
import sys
6
1341.1.1 by seman.said at canonical
Ignore SSL cert verification.
7
8
from utility import configure_logging
1336.1.2 by seman.said at canonical
Remove bundle assertion from run_deployer.py
9
from verify_mediawiki_bundle import (
10
    parse_args,
11
    verify_services,
12
)
13
14
15
__metaclass__ = type
16
17
18
def assess_landscape_bundle(client):
19
    logging.info('Assessing landscaple bundle.')
20
    expected_services = ['haproxy', 'landscape-server', 'postgresql',
21
                         'rabbitmq-server']
22
    verify_services(client, expected_services, scheme='https',
1355.2.1 by Seman
Updated landscape bundle verification to support haproxy being exposed by default.
23
                    text='Landscape', haproxy_exposed=True)
1336.1.2 by seman.said at canonical
Remove bundle assertion from run_deployer.py
24
25
26
def main(argv=None):
27
    args = parse_args(argv)
1341.1.1 by seman.said at canonical
Ignore SSL cert verification.
28
    configure_logging(args.verbose)
1336.1.2 by seman.said at canonical
Remove bundle assertion from run_deployer.py
29
    assess_landscape_bundle(args.client)
30
31
32
if __name__ == '__main__':
33
    sys.exit(main())