Skip to content

Instantly share code, notes, and snippets.

@allomov
Created April 10, 2014 17:16
Show Gist options
  • Save allomov/10403552 to your computer and use it in GitHub Desktop.
Save allomov/10403552 to your computer and use it in GitHub Desktop.
#!/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('..')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment