Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
notebooks-operations
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
702
Projekty
notebooks-operations
Commits
577e6982
Commit
577e6982
authored
5 months ago
by
František Dvořák
Browse files
Options
Downloads
Patches
Plain Diff
EGI devel - hostnames
parent
683aa6c9
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
egi-devel/deploy.sh
+10
-10
10 additions, 10 deletions
egi-devel/deploy.sh
egi-devel/inventory/99-all.yaml
+2
-2
2 additions, 2 deletions
egi-devel/inventory/99-all.yaml
with
12 additions
and
12 deletions
egi-devel/deploy.sh
+
10
−
10
View file @
577e6982
...
...
@@ -10,16 +10,16 @@ cp -pv terraform/inventory.yaml inventory/1-cesnet.yaml
# dynamic DNS
ip
=
"
$(
head
-n
1 <terraform/fip.txt
)
"
#
shellstate=$(shopt -po xtrace)
#
set +o xtrace
#
# https://nsupdate.fedcloud.eu
#
vault_prefix=secrets/users/e1662e20-e34b-468c-b0ce-d899bc878364@egi.eu/egi-devel
#
FEDCLOUD_DYNAMIC_DNS=$(vault read -field data $vault_prefix/FEDCLOUD_DYNAMIC_DNS | grep ^map | head -n 1 | sed 's/map\[\(.*\)\]/\1/')
#
for auth in $FEDCLOUD_DYNAMIC_DNS; do
#
echo "curl -i -X GET -u $(echo "$auth" | cut -d: -f1):XXX https://nsupdate.fedcloud.eu/nic/update?myip=$ip"
#
curl -i -X GET -u "$auth" https://nsupdate.fedcloud.eu/nic/update?myip="$ip"
#
done
#
eval "$shellstate"
shellstate
=
$(
shopt
-po
xtrace
)
set
+o xtrace
# https://nsupdate.fedcloud.eu
vault_prefix
=
secrets/users/e1662e20-e34b-468c-b0ce-d899bc878364@egi.eu/egi-devel
FEDCLOUD_DYNAMIC_DNS
=
$(
vault
read
-field
data
$vault_prefix
/FEDCLOUD_DYNAMIC_DNS |
grep
^map |
head
-n
1 |
sed
's/map\[\(.*\)\]/\1/'
)
for
auth
in
$FEDCLOUD_DYNAMIC_DNS
;
do
echo
"curl -i -X GET -u
$(
echo
"
$auth
"
|
cut
-d
:
-f1
)
:XXX https://nsupdate.fedcloud.eu/nic/update?myip=
$ip
"
curl
-i
-X
GET
-u
"
$auth
"
https://nsupdate.fedcloud.eu/nic/update?myip
=
"
$ip
"
done
eval
"
$shellstate
"
echo
"Terraform finished. Check terraform/docker-volume.sh. Continue? (CTRL-C to quit)"
read
-r
_
...
...
This diff is collapsed.
Click to expand it.
egi-devel/inventory/99-all.yaml
+
2
−
2
View file @
577e6982
...
...
@@ -19,5 +19,5 @@ all:
site_name
:
egi-devel
vault_mount_point
:
secrets/users/e1662e20-e34b-468c-b0ce-d899bc878364@egi.eu/egi-devel
notebooks_hostname
:
notebooks.egi.zcu.cz
grafana_hostname
:
grafana.notebooks.egi.zcu.cz
notebooks_hostname
:
notebooks
-dev
.egi.zcu.cz
grafana_hostname
:
grafana.notebooks
-dev
.egi.zcu.cz
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment