Skip to content

Commit

Permalink
Update ansible-deployToGcp.md
Browse files Browse the repository at this point in the history
removed dependency from branch and owner of repository
  • Loading branch information
ksraj123 authored Apr 29, 2020
1 parent 549d313 commit 388305a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/ansible-deployToGcp.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,22 @@ Sugarizer server can be deloyed easily on Google Cloud Platform(GCP) with ansibl

**Step 1 -** Execute the following command, it will get the package (creates a deploy-to-gcp folder in current directory) and installs ansible if not already installed

Right click on this [link](../ansible/deploy-to-gcp/get-package.sh) and copy the link address then replace `github` with `raw.githubusercontent` and paste into the command below

curl <Paste the copied link after required replacement here> -o - | sh

For exmaple -

if the copied link looks like this
https://github.com/ksraj123/sugarizer-server/blob/patch-1/ansible/deploy-to-gcp/get-package.sh

then after replacement it will look like this
https://raw.githubusercontent.com/ksraj123/sugarizer-server/patch-1/ansible/deploy-to-gcp/get-package.sh

and the command to be execute will look like this
curl https://raw.githubusercontent.com/ksraj123/sugarizer-server/patch-1/ansible/deploy-to-gcp/get-package.sh -o - | sh


**Step 2 -** Create a service account with project owner role and download the service account key file as json and move it inside deploy-to-gcp folder directory. Please follow instructions on creating a service account at the bottom if you are new to GCP.

**Step 3 -** edit deploy-to-gcp/host-var/localhost.yml
Expand Down

0 comments on commit 388305a

Please sign in to comment.