summaryrefslogtreecommitdiffstats
path: root/README_GCE.txt
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2014-09-16 13:15:48 -0400
committerKenny Woodson <kwoodson@redhat.com>2014-09-16 13:15:48 -0400
commit5994dee9a8b3b1ee97f9e3b3529fd32ffb896187 (patch)
tree4c17abdd1e5b39e845d33d7d970ac216a82d766d /README_GCE.txt
downloadopenshift-5994dee9a8b3b1ee97f9e3b3529fd32ffb896187.tar.gz
openshift-5994dee9a8b3b1ee97f9e3b3529fd32ffb896187.tar.bz2
openshift-5994dee9a8b3b1ee97f9e3b3529fd32ffb896187.tar.xz
openshift-5994dee9a8b3b1ee97f9e3b3529fd32ffb896187.zip
Initial Commit. Sharing is caring
Diffstat (limited to 'README_GCE.txt')
-rw-r--r--README_GCE.txt45
1 files changed, 45 insertions, 0 deletions
diff --git a/README_GCE.txt b/README_GCE.txt
new file mode 100644
index 000000000..b2f6aec21
--- /dev/null
+++ b/README_GCE.txt
@@ -0,0 +1,45 @@
+
+GCE Setup Instructions
+
+Get a gce service key
+---------------------
+1. ping twiest and ask for a GCE service key
+
+
+Convert a GCE service key into a pem (for ansible)
+--------------------------------------------------
+1. The gce service key looks something like this: os302gce-ef83bd90f261.p12
+2. the ef83bd90f261 part is the public hash
+3. Be in the same directory as the p12 key file.
+4. The commands below should be copy / paste-able
+5. Run these commands:
+ # Temporarily set hash variable
+ export GCE_KEY_HASH=ef83bd90f261
+
+ # Convert the service key (note: 'notasecret' is literally what we want here)
+ openssl pkcs12 -in os302gce-${GCE_KEY_HASH}.p12 -passin pass:notasecret -nodes -nocerts | openssl rsa -out os302gce-${GCE_KEY_HASH}.pem
+
+ # Move the converted service key to the .ssh dir
+ mv os302gce-${GCE_KEY_HASH}.pem ~/.ssh
+
+ # Set a sym link so it's easy to reference
+ ln -s ~/.ssh/os302gce-${GCE_KEY_HASH}.pem ~/.ssh/os302gce_priv_key.pem
+
+6. Once this is done, put the original service key file (os302gce-ef83bd90f261.p12) somewhere safe, or delete it (your call, I don't know what else we'll use it for, and we can always regen it if needed)
+
+
+
+Install Dependencies (not needed for ctl1)
+------------------------------------------
+1. Ansible requires libcloud for gce operations:
+ yum install -y ansible python-libcloud
+
+
+Test The Setup
+--------------
+1. cd li-ops/cloud
+2. Try to list all instances:
+ ./cloud.rb gce list
+
+3. Try to create an instance:
+ ./cloud.rb gce launch -n ${USER}-minion1 -e int --type os3-minion