~corey.bryant/charms/trusty/quantum-gateway/use-stable

« back to all changes in this revision

Viewing changes to hooks/charmhelpers/contrib/openstack/context.py

  • Committer: Liam Young
  • Date: 2014-09-25 15:52:47 UTC
  • mfrom: (60.3.3 quantum-gateway)
  • Revision ID: liam.young@canonical.com-20140925155247-71hz7u55teb6s8vz
[corey.bryant,r=gnuoy] This patch turns on metadata caching in the metadata config file from Icehouse on. To test this, boot an instance and run 'for i in {0..2}; do time ec2metadata; done'. Also charmhelper sync and Turn off implicit save.

Show diffs side-by-side

added added

removed removed

Lines of Context:
421
421
            'units': cluster_hosts,
422
422
        }
423
423
 
 
424
        if config('haproxy-server-timeout'):
 
425
            ctxt['haproxy-server-timeout'] = config('haproxy-server-timeout')
 
426
        if config('haproxy-client-timeout'):
 
427
            ctxt['haproxy-client-timeout'] = config('haproxy-client-timeout')
 
428
 
424
429
        if config('prefer-ipv6'):
425
430
            ctxt['local_host'] = 'ip6-localhost'
426
431
            ctxt['haproxy_host'] = '::'