~james-page/charms/trusty/glance/fixup-allowedunits-migration

« back to all changes in this revision

Viewing changes to hooks/glance_contexts.py

  • Committer: Liam Young
  • Date: 2015-01-08 10:02:48 UTC
  • mfrom: (80.2.6 glance)
  • Revision ID: liam.young@canonical.com-20150108100248-ypdi60e32y2tcbiq
[gnuoy, r=jamespage] Enable haproxy for when there is a single unit in a deployment

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
        Also used to extend glance-api.conf context with correct bind_port
76
76
        '''
77
77
        haproxy_port = 9292
78
 
        apache_port = determine_apache_port(9292)
79
 
        api_port = determine_api_port(9292)
 
78
        apache_port = determine_apache_port(9292, singlenode_mode=True)
 
79
        api_port = determine_api_port(9292, singlenode_mode=True)
80
80
 
81
81
        ctxt = {
82
82
            'service_ports': {'glance_api': [haproxy_port, apache_port]},