-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0df0fa3
commit f104b82
Showing
28 changed files
with
171 additions
and
88 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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
TEMPLATE_NAME="motivation" | ||
VINTNER="yarn vintner" | ||
DEPLOYMENT_VARIANT="prod" | ||
DEPLOYMENT_VARIANT="dev" |
48 changes: 30 additions & 18 deletions
48
examples/xopera-motivation/lib/gcp/appengine/engine/playbooks/create.yaml
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 |
---|---|---|
@@ -1,22 +1,34 @@ | ||
--- | ||
- name: Create GCP App Engine | ||
hosts: all | ||
gather_facts: false | ||
tasks: | ||
- name: active service account | ||
shell: 'gcloud auth activate-service-account --key-file {{ service_account_file }} --project {{ project }}' | ||
- name: Create GCP App Engine | ||
hosts: all | ||
gather_facts: false | ||
tasks: | ||
- name: Activate service account | ||
shell: 'gcloud auth activate-service-account --key-file {{ service_account_file }} --project {{ project }}' | ||
|
||
# https://cloud.google.com/sql/docs/mysql/connect-instance-cloud-shell | ||
- name: Enable Cloud Build API | ||
shell: 'gcloud services enable cloudbuild.googleapis.com' | ||
# https://cloud.google.com/sql/docs/mysql/connect-instance-cloud-shell | ||
- name: Enable Cloud Build API | ||
shell: | | ||
GCP_SERVICE=cloudbuild.googleapis.com | ||
GCP_SERVICE_ENABLED=$(gcloud services list --filter ${GCP_SERVICE} --format json --enabled | jq length) | ||
if [ ${GCP_SERVICE_ENABLED} == 0 ]; then | ||
gcloud services enable ${GCP_SERVICE} | ||
fi | ||
- name: Enable appengine.googleapis.com | ||
shell: 'gcloud services enable appengine.googleapis.com' | ||
- name: Enable appengine.googleapis.com | ||
shell: | | ||
GCP_SERVICE=appengine.googleapis.com | ||
GCP_SERVICE_ENABLED=$(gcloud services list --filter ${GCP_SERVICE} --format json --enabled | jq length) | ||
if [ ${GCP_SERVICE_ENABLED} == 0 ]; then | ||
gcloud services enable ${GCP_SERVICE} | ||
fi | ||
# https://cloud.google.com/sdk/gcloud/reference/app/create | ||
- name: Create App | ||
shell: 'gcloud app create --region {{ region }}' | ||
register: app_create_command | ||
failed_when: | ||
- "'Created' not in app_create_command.stderr" | ||
- "'already contains' not in app_create_command.stderr" | ||
# https://cloud.google.com/sdk/gcloud/reference/app/create | ||
- name: Create App | ||
shell: 'gcloud app create --region {{ region }}' | ||
register: app_create_command | ||
failed_when: | ||
- "'Created' not in app_create_command.stderr" | ||
- "'already contains' not in app_create_command.stderr" |
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
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
48 changes: 30 additions & 18 deletions
48
examples/xopera-pruning-consistent-loose/lib/gcp/runtime/create.yaml
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 |
---|---|---|
@@ -1,22 +1,34 @@ | ||
--- | ||
- name: Create GCP App Engine | ||
hosts: all | ||
gather_facts: false | ||
tasks: | ||
- name: active service account | ||
shell: 'gcloud auth activate-service-account --key-file {{ service_account_file }} --project {{ project }}' | ||
- name: Create GCP App Engine | ||
hosts: all | ||
gather_facts: false | ||
tasks: | ||
- name: Activate service account | ||
shell: 'gcloud auth activate-service-account --key-file {{ service_account_file }} --project {{ project }}' | ||
|
||
# https://cloud.google.com/sql/docs/mysql/connect-instance-cloud-shell | ||
- name: Enable Cloud Build API | ||
shell: 'gcloud services enable cloudbuild.googleapis.com' | ||
# https://cloud.google.com/sql/docs/mysql/connect-instance-cloud-shell | ||
- name: Enable Cloud Build API | ||
shell: | | ||
GCP_SERVICE=cloudbuild.googleapis.com | ||
GCP_SERVICE_ENABLED=$(gcloud services list --filter ${GCP_SERVICE} --format json --enabled | jq length) | ||
if [ ${GCP_SERVICE_ENABLED} == 0 ]; then | ||
gcloud services enable ${GCP_SERVICE} | ||
fi | ||
- name: Enable appengine.googleapis.com | ||
shell: 'gcloud services enable appengine.googleapis.com' | ||
- name: Enable appengine.googleapis.com | ||
shell: | | ||
GCP_SERVICE=appengine.googleapis.com | ||
GCP_SERVICE_ENABLED=$(gcloud services list --filter ${GCP_SERVICE} --format json --enabled | jq length) | ||
if [ ${GCP_SERVICE_ENABLED} == 0 ]; then | ||
gcloud services enable ${GCP_SERVICE} | ||
fi | ||
# https://cloud.google.com/sdk/gcloud/reference/app/create | ||
- name: Create App | ||
shell: 'gcloud app create --region {{ region }}' | ||
register: app_create_command | ||
failed_when: | ||
- "'Created' not in app_create_command.stderr" | ||
- "'already contains' not in app_create_command.stderr" | ||
# https://cloud.google.com/sdk/gcloud/reference/app/create | ||
- name: Create App | ||
shell: 'gcloud app create --region {{ region }}' | ||
register: app_create_command | ||
failed_when: | ||
- "'Created' not in app_create_command.stderr" | ||
- "'already contains' not in app_create_command.stderr" |
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
Oops, something went wrong.