From 317d20d2cd7847ac295e63015c540a882f77964e Mon Sep 17 00:00:00 2001 From: Thomas Wiest Date: Thu, 30 Oct 2014 16:40:52 -0400 Subject: cleaned up unused GCE host types, changed back to using gce.ini, and added a better ssh detection on launch. --- README_GCE.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'README_GCE.md') diff --git a/README_GCE.md b/README_GCE.md index bac3f58b5..88f9f3a7c 100644 --- a/README_GCE.md +++ b/README_GCE.md @@ -34,18 +34,20 @@ Convert a GCE service key into a pem (for ansible) 1. Once this is done, put the original service key file (projectname-ef83bd90f261.p12) somewhere safe, or delete it (your call, I don not know what else we will use it for, and we can always regen it if needed). -Create a secrets.py file for GCE +Create a gce.ini file for GCE -------------------------------- -1. vi ~/.gce/secrets.py +1. vi ~/.gce/gce.ini 1. make the contents look like this: ``` - GCE_PARAMS = ('long...@developer.gserviceaccount.com', '/full/path/to/projectname_priv_key.pem') - GCE_KEYWORD_PARAMS = {'project': 'my_project_id'} +[gce] +gce_service_account_email_address = long...@developer.gserviceaccount.com +gce_service_account_pem_file_path = /full/path/to/projectname_priv_key.pem +gce_project_id = my_project_id ``` -1. Setup a sym link so that gce.py will pick it up (must be in same dir as gce.py) +1. Setup a sym link so that gce.py will pick it up (link must be in same dir as gce.py) ``` cd openshift-online-ansible/inventory/gce - ln -s ~/.gce/secrets.py secrets.py + ln -s ~/.gce/gce.ini gce.ini ``` -- cgit v1.2.1