Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added support + docstrings for setting FQDN on server launch

  • Loading branch information...
commit 451251b631a3cef7b4c9cb0766674d820da5e607 1 parent 4948a28
Alon Swartz alonswartz authored

Showing 2 changed files with 13 additions and 6 deletions. Show diff stats Hide diff stats

  1. +5 1 cmd_launch.py
  2. +8 5 hub/servers.py
6 cmd_launch.py
@@ -30,6 +30,9 @@
30 30 --app-email Admin email address for application
31 31 --app-domain Domain for application
32 32
  33 + --fqdn Fully qualified domain name to associate
  34 + e.g., www.tklapp.com. | www.example.com.
  35 +
33 36 Environment variables:
34 37
35 38 HUB_APIKEY Displayed in your Hub account's user profile
@@ -60,7 +63,7 @@ def main():
60 63 try:
61 64 opts, args = getopt.gnu_getopt(sys.argv[1:], "h",
62 65 ["help", "region=", "type=", "label=", "root-pass=", "db-pass=",
63   - "app-pass=", "app-email=", "app-domain="])
  66 + "app-pass=", "app-email=", "app-domain=", "fqdn="])
64 67 except getopt.GetoptError, e:
65 68 usage(e)
66 69
@@ -73,6 +76,7 @@ def main():
73 76 'app_pass': "",
74 77 'app_email': "",
75 78 'app_domain': "",
  79 + 'fqdn': "",
76 80 }
77 81 for opt, val in opts:
78 82 if opt in ('-h', '--help'):
13 hub/servers.py
@@ -67,13 +67,16 @@ def launch(self, name, region="us-east-1", type="m1.small", label="", **kwargs):
67 67 region - region for instance launch (e.g., us-east-1)
68 68 type - instance size (e.g., m1.small)
69 69
70   - kwargs (optional depending on appliance):
  70 + kwargs (optional, * is required depending on appliance):
71 71
72 72 root_pass - root password to set (random if not specified)
73   - db_pass - database password
74   - app_pass - admin password for application
75   - app_email - admin email for application
76   - app_domain - domain for application
  73 + db_pass* - database password
  74 + app_pass* - admin password for application
  75 + app_email* - admin email for application
  76 + app_domain* - domain for application
  77 +
  78 + fqdn - fully qualified domain name to associate
  79 + e.g., www.tklapp.com. | www.example.com.
77 80
78 81 backup_id - automatically restore backup to new cloud server
79 82 note: backup key cannot be passphrase protected

0 comments on commit 451251b

Please sign in to comment.
Something went wrong with that request. Please try again.