~le-charmers/charms/trusty/swift-proxy/leadership-election

« back to all changes in this revision

Viewing changes to hooks/swift_utils.py

  • Committer: Chad Smith
  • Date: 2013-02-27 23:29:40 UTC
  • mto: (35.1.6 swift-proxy)
  • mto: This revision was merged to the branch mainline in revision 41.
  • Revision ID: chad.smith@canonical.com-20130227232940-rqvk6qwqtk3v2tyb
initial health and cluster charm scripts for landscape-client

Show diffs side-by-side

added added

removed removed

Lines of Context:
167
167
        import multiprocessing
168
168
        workers = multiprocessing.cpu_count()
169
169
 
 
170
    env_vars = {'OPENSTACK_SERVICE_SWIFT': 'proxy-server',
 
171
                'OPENSTACK_PORT_API': bind_port,
 
172
                'OPENSTACK_PORT_MEMCACHED': 11211}
 
173
    openstack.save_script_rc(**env_vars)
 
174
 
170
175
    ctxt = {
171
176
        'proxy_ip': utils.get_host_ip(),
172
177
        'bind_port': bind_port,