Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register DNS hostname with Dynamic DNS before deploying MinIO with Compose #169

Merged
merged 2 commits into from
Jul 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 34 additions & 32 deletions templates/minio_compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,38 @@ topology_template:

node_templates:

nsupdate_minio_api:
type: tosca.nodes.ec3.Application
interfaces:
Standard:
configure:
implementation: https://raw.githubusercontent.com/grycap/tosca/main/artifacts/dydns_egi_update.yml
inputs:
dydns_hostname:
get_input: minio_dns_api
dydns_secret:
get_input: nsupdate_secret_api
new_ip:
get_attribute: [ simple_node, public_address, 0 ]
requirements:
- host: simple_node

nsupdate_minio_console:
type: tosca.nodes.ec3.Application
interfaces:
Standard:
configure:
implementation: https://raw.githubusercontent.com/grycap/tosca/main/artifacts/dydns_egi_update.yml
inputs:
dydns_hostname:
get_input: minio_dns_console
dydns_secret:
get_input: nsupdate_secret_console
new_ip:
get_attribute: [ simple_node, public_address, 0 ]
requirements:
- host: simple_node

minio:
type: tosca.nodes.ec3.Application
artifacts:
Expand Down Expand Up @@ -117,38 +149,8 @@ topology_template:
get_input: minio_release
requirements:
- host: simple_node

nsupdate_minio_api:
type: tosca.nodes.ec3.Application
interfaces:
Standard:
configure:
implementation: https://raw.githubusercontent.com/grycap/tosca/main/artifacts/dydns_egi_update.yml
inputs:
dydns_hostname:
get_input: minio_dns_api
dydns_secret:
get_input: nsupdate_secret_api
new_ip:
get_attribute: [ simple_node, public_address, 0 ]
requirements:
- host: simple_node

nsupdate_minio_console:
type: tosca.nodes.ec3.Application
interfaces:
Standard:
configure:
implementation: https://raw.githubusercontent.com/grycap/tosca/main/artifacts/dydns_egi_update.yml
inputs:
dydns_hostname:
get_input: minio_dns_console
dydns_secret:
get_input: nsupdate_secret_console
new_ip:
get_attribute: [ simple_node, public_address, 0 ]
requirements:
- host: simple_node
- dependency: nsupdate_minio_console
- dependency: nsupdate_minio_api

outputs:
minio_console:
Expand Down
Loading