allomov
4/10/2014 - 5:16 PM

deploy_all_to_single_node.py

#!/usr/bin/env python
import os
import subprocess

charms = {'cf-nats': 'nats',
          'cf-go-router': 'router',
          'cf-cloud-controller': 'cc',
          'cf-dea': 'dea',
          'cf-uaa': 'uaa'}

machine_number = 4

for charm_name in charms.keys():
    service_name = charms[charm_name]
    os.chdir(charm_name)
    os.system('juju deploy --to 4 --repository=../../. '
              'local:trusty/%s %s --show-log' % (charm_name, service_name))
    os.chdir('..')