-
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
031f152
commit df44284
Showing
46 changed files
with
224 additions
and
79 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 |
---|---|---|
|
@@ -23,6 +23,9 @@ artifact_types: | |
docker.image: | ||
derived_from: container.image | ||
description: expects image reference in "file" | ||
mysql.dbms.image: | ||
derived_from: artifact | ||
description: expects image reference in "file" | ||
zip.archive: | ||
derived_from: source.archive | ||
tar.archive: | ||
|
@@ -401,9 +404,6 @@ node_types: | |
type: string | ||
default: | ||
eval: .::dbms_name | ||
dbms_version: | ||
type: string | ||
default: '5.7' | ||
dbms_password: | ||
type: string | ||
dbms_ssl_mode: | ||
|
@@ -7086,7 +7086,7 @@ node_types: | |
- sudo bash /tmp/stop-docker.engine.sh | ||
- sudo bash /tmp/delete-docker.engine.sh | ||
when: destroy | ||
mysql.dbms~mysql.dbms::[email protected]>virtual.machine: | ||
mysql.dbms~mysql.dbms#mysql.dbms.image::[email protected]>virtual.machine: | ||
derived_from: mysql.dbms | ||
metadata: | ||
vintner_generated: 'true' | ||
|
@@ -7131,7 +7131,7 @@ node_types: | |
- name: start container | ||
community.docker.docker_container: | ||
name: '{{ SELF.dbms_name }}' | ||
image: mysql:{{ SELF.dbms_version }} | ||
image: mysql:{{ ".artifacts::mysql_dbms_image::file" | eval }} | ||
network_mode: host | ||
env: | ||
MYSQL_ROOT_PASSWORD: '{{ SELF.dbms_password | string }}' | ||
|
@@ -7140,7 +7140,7 @@ node_types: | |
- '--key-file={{ SELF.os_ssh_key_file }}' | ||
- '--user={{ SELF.os_ssh_user }}' | ||
delete: exit 0 | ||
mysql.dbms~mysql.dbms::[email protected]: | ||
mysql.dbms~mysql.dbms#mysql.dbms.image::[email protected]: | ||
derived_from: mysql.dbms | ||
metadata: | ||
vintner_generated: 'true' | ||
|
@@ -7191,7 +7191,7 @@ node_types: | |
register: instance_info | ||
google.cloud.gcp_sql_instance: | ||
name: '{{ SELF.dbms_name }}' | ||
database_version: MYSQL_{{ SELF.dbms_version | replace(".", "_") }} | ||
database_version: MYSQL_{{ ".artifacts::mysql_dbms_image::file" | eval | replace(".", "_") }} | ||
settings: | ||
tier: db-f1-micro | ||
availability_type: REGIONAL | ||
|
@@ -7234,7 +7234,7 @@ node_types: | |
ansible.builtin.shell: gcloud sql instances delete {{ SELF.dbms_name }} --quiet | ||
args: | ||
executable: /bin/bash | ||
mysql.dbms~mysql.dbms::[email protected]: | ||
mysql.dbms~mysql.dbms#mysql.dbms.image::[email protected]: | ||
derived_from: mysql.dbms | ||
metadata: | ||
vintner_generated: 'true' | ||
|
@@ -7310,7 +7310,7 @@ node_types: | |
app: '{{ SELF.dbms_name }}' | ||
spec: | ||
containers: | ||
- image: mysql:{{ SELF.dbms_version }} | ||
- image: mysql:{{ ".artifacts::mysql_dbms_image::file" | eval }} | ||
name: '{{ SELF.dbms_name }}' | ||
env: | ||
- name: MYSQL_ROOT_PASSWORD | ||
|
@@ -7335,7 +7335,7 @@ node_types: | |
app: '{{ SELF.dbms_name }}' | ||
type: ClusterIP | ||
delete: exit 0 | ||
mysql.dbms~mysql.dbms::[email protected]: | ||
mysql.dbms~mysql.dbms#mysql.dbms.image::[email protected]: | ||
derived_from: mysql.dbms | ||
metadata: | ||
vintner_generated: 'true' | ||
|
@@ -7736,7 +7736,6 @@ node_types: | |
content: |- | ||
DBMS_NAME="{{ SELF.dbms_name }}" | ||
APPLICATION_NAME="{{ SELF.application_name }}" | ||
DBMS_VERSION="{{ SELF.dbms_version }}" | ||
DBMS_PASSWORD="{{ SELF.dbms_password }}" | ||
DBMS_SSL_MODE="{{ SELF.dbms_ssl_mode }}" | ||
- name: copy management operation | ||
|
@@ -7961,7 +7960,6 @@ node_types: | |
content: |- | ||
DBMS_NAME="{{ SELF.dbms_name }}" | ||
APPLICATION_NAME="{{ SELF.application_name }}" | ||
DBMS_VERSION="{{ SELF.dbms_version }}" | ||
DBMS_PASSWORD="{{ SELF.dbms_password }}" | ||
DBMS_SSL_MODE="{{ SELF.dbms_ssl_mode }}" | ||
- name: copy management operation | ||
|
@@ -8120,7 +8118,7 @@ node_types: | |
- '--become' | ||
- '--key-file={{ SELF.os_ssh_key_file }}' | ||
- '--user={{ SELF.os_ssh_user }}' | ||
mysql.dbms~mysql.dbms::[email protected]>virtual.machine: | ||
mysql.dbms~mysql.dbms#mysql.dbms.image::[email protected]>virtual.machine: | ||
derived_from: mysql.dbms | ||
metadata: | ||
vintner_generated: 'true' | ||
|
@@ -8200,8 +8198,8 @@ node_types: | |
- MYSQL_ROOT_PASSWORD={{ SELF.dbms_password }} | ||
docker_image: | ||
image: | ||
- name: mysql:{{ SELF.dbms_version }} | ||
mysql.dbms~mysql.dbms::[email protected]: | ||
- name: mysql:{{ ".artifacts::mysql_dbms_image::file" | eval }} | ||
mysql.dbms~mysql.dbms#mysql.dbms.image::[email protected]: | ||
derived_from: mysql.dbms | ||
metadata: | ||
vintner_generated: 'true' | ||
|
@@ -8264,7 +8262,7 @@ node_types: | |
resource: | ||
google_sql_database_instance: | ||
dbms: | ||
- database_version: MYSQL_{{ SELF.dbms_version | replace(".", "_") }} | ||
- database_version: MYSQL_{{ ".artifacts::mysql_dbms_image::file" | eval | replace(".", "_") }} | ||
deletion_protection: false | ||
name: '{{ SELF.dbms_name }}' | ||
root_password: '{{ SELF.dbms_password }}' | ||
|
@@ -8285,7 +8283,7 @@ node_types: | |
instance: ${google_sql_database_instance.dbms.name} | ||
name: root | ||
password: ${google_sql_database_instance.dbms.root_password} | ||
mysql.dbms~mysql.dbms::[email protected]: | ||
mysql.dbms~mysql.dbms#mysql.dbms.image::[email protected]: | ||
derived_from: mysql.dbms | ||
metadata: | ||
vintner_generated: 'true' | ||
|
@@ -8363,7 +8361,7 @@ node_types: | |
spec: | ||
- container: | ||
- name: '{{ SELF.dbms_name }}' | ||
image: mysql:{{ SELF.dbms_version }} | ||
image: mysql:{{ ".artifacts::mysql_dbms_image::file" | eval }} | ||
env: | ||
- name: MYSQL_ROOT_PASSWORD | ||
value: '{{ SELF.dbms_password }}' | ||
|
@@ -8382,7 +8380,7 @@ node_types: | |
selector: | ||
app: '{{ SELF.dbms_name }}' | ||
type: ClusterIP | ||
mysql.dbms~mysql.dbms::[email protected]: | ||
mysql.dbms~mysql.dbms#mysql.dbms.image::[email protected]: | ||
derived_from: mysql.dbms | ||
metadata: | ||
vintner_generated: 'true' | ||
|
@@ -8571,7 +8569,6 @@ node_types: | |
cat <<EOF > {{ SELF.application_directory }}/.env | ||
DBMS_NAME="{{ SELF.dbms_name }}" | ||
APPLICATION_NAME="{{ SELF.application_name }}" | ||
DBMS_VERSION="{{ SELF.dbms_version }}" | ||
DBMS_PASSWORD="{{ SELF.dbms_password }}" | ||
DBMS_SSL_MODE="{{ SELF.dbms_ssl_mode }}" | ||
EOF>> | ||
|
@@ -8749,7 +8746,6 @@ node_types: | |
cat <<EOF > {{ SELF.application_directory }}/.env | ||
DBMS_NAME="{{ SELF.dbms_name }}" | ||
APPLICATION_NAME="{{ SELF.application_name }}" | ||
DBMS_VERSION="{{ SELF.dbms_version }}" | ||
DBMS_PASSWORD="{{ SELF.dbms_password }}" | ||
DBMS_SSL_MODE="{{ SELF.dbms_ssl_mode }}" | ||
EOF>> | ||
|
@@ -8936,7 +8932,6 @@ node_types: | |
cat <<EOF > {{ SELF.application_directory }}/.env | ||
DBMS_NAME="{{ SELF.dbms_name }}" | ||
APPLICATION_NAME="{{ SELF.application_name }}" | ||
DBMS_VERSION="{{ SELF.dbms_version }}" | ||
DBMS_PASSWORD="{{ SELF.dbms_password }}" | ||
DBMS_SSL_MODE="{{ SELF.dbms_ssl_mode }}" | ||
EOF>> | ||
|
@@ -9062,7 +9057,7 @@ node_types: | |
- sudo bash /tmp/stop-mysql.dbms.sh | ||
- sudo bash /tmp/delete-mysql.dbms.sh | ||
when: destroy | ||
mysql.dbms~mysql.dbms::[email protected]: | ||
mysql.dbms~mysql.dbms#mysql.dbms.image::[email protected]: | ||
derived_from: mysql.dbms | ||
metadata: | ||
vintner_generated: 'true' | ||
|
@@ -9138,7 +9133,7 @@ node_types: | |
app: '{{ SELF.dbms_name }}' | ||
spec: | ||
containers: | ||
- image: mysql:{{ SELF.dbms_version }} | ||
- image: mysql:{{ ".artifacts::mysql_dbms_image::file" | eval }} | ||
name: '{{ SELF.dbms_name }}' | ||
env: | ||
- name: MYSQL_ROOT_PASSWORD | ||
|
@@ -9171,7 +9166,7 @@ node_types: | |
ansible.builtin.pause: | ||
seconds: 10 | ||
delete: exit 0 | ||
mysql.dbms~mysql.dbms::[email protected]>virtual.machine: | ||
mysql.dbms~mysql.dbms#mysql.dbms.image::[email protected]>virtual.machine: | ||
derived_from: mysql.dbms | ||
metadata: | ||
vintner_generated: 'true' | ||
|
@@ -9234,7 +9229,7 @@ node_types: | |
services: | ||
application: | ||
container_name: '{{ SELF.dbms_name }}' | ||
image: mysql:{{ SELF.dbms_version }} | ||
image: mysql:{{ ".artifacts::mysql_dbms_image::file" | eval }} | ||
network_mode: host | ||
environment: | ||
MYSQL_ROOT_PASSWORD: '{{ SELF.dbms_password }}' | ||
|
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 |
---|---|---|
|
@@ -213,12 +213,16 @@ topology_template: | |
- host: cart_dbms | ||
|
||
cart_dbms: | ||
type: mysql.dbms~mysql.dbms::[email protected] | ||
type: mysql.dbms~mysql.dbms#mysql.dbms.image::[email protected] | ||
properties: | ||
dbms_name: unfurl-technology-boutique-cart-dbms | ||
dbms_password: {get_input: dbms_password} | ||
requirements: | ||
- host: gcp_cloudsql | ||
artifacts: | ||
mysql_dbms_image: | ||
type: mysql.dbms.image | ||
file: 5.7 | ||
|
||
################################################### | ||
# | ||
|
Oops, something went wrong.