forked from project-sunbird/sunbird-devops
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'cbrelease-4.8.14' into cbrelease-4.8.14
- Loading branch information
Showing
1,172 changed files
with
162,787 additions
and
88,025 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,6 @@ | |
- role: es5-snapshot-purge | ||
tags: | ||
- es_backup | ||
run_once: true | ||
|
||
- hosts: log-es-backup | ||
become: yes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
- name: Set GCP environment variables | ||
set_fact: | ||
gcp_environment: | ||
GOOGLE_APPLICATION_CREDENTIALS: "/tmp/gcp_service_account.json" | ||
|
||
- name: Create temporary directory for GCP service account file | ||
file: | ||
path: /tmp/gcp_service_account.json | ||
state: touch | ||
|
||
- name: Write GCP service account file | ||
copy: | ||
content: "{{ service_account }}" | ||
dest: /tmp/gcp_service_account.json | ||
mode: "0600" | ||
|
||
- name: Authenticate gcloud login | ||
shell: gcloud auth activate-service-account --key-file /tmp/gcp_service_account.json | ||
|
||
- name: Ensure Google Cloud Storage bucket exists | ||
shell: gsutil mb gs://{{ artifacts_container }} || true | ||
environment: "{{ gcp_environment }}" | ||
|
||
- name: Upload to Google Cloud Storage | ||
shell: gsutil cp -r {{ artifact_path }} gs://{{ artifacts_container }}/{{ artifact }} | ||
async: 3600 | ||
poll: 10 | ||
|
||
- name: Remove temporary GCP service account file | ||
file: | ||
path: /tmp/gcp_service_account.json | ||
state: absent |
Oops, something went wrong.