Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mdx-saas-config
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Trust and Identity Incubator
mdx-saas-config
Commits
74ae0158
Commit
74ae0158
authored
3 years ago
by
Martin van Es
Browse files
Options
Downloads
Patches
Plain Diff
WIP
parent
a26bd66e
No related branches found
No related tags found
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/geodns/files/geoconfig.py
+7
-0
7 additions, 0 deletions
roles/geodns/files/geoconfig.py
roles/geodns/tasks/main.yml
+1
-1
1 addition, 1 deletion
roles/geodns/tasks/main.yml
with
8 additions
and
1 deletion
roles/geodns/files/geoconfig.py
+
7
−
0
View file @
74ae0158
...
@@ -33,5 +33,12 @@ with open(f"{sys.argv[1]}.yaml", "r") as yaml_doc:
...
@@ -33,5 +33,12 @@ with open(f"{sys.argv[1]}.yaml", "r") as yaml_doc:
except
KeyError
:
except
KeyError
:
new_config
[
'
data
'
][
host
]
=
{
record
:
[
address_config
]}
new_config
[
'
data
'
][
host
]
=
{
record
:
[
address_config
]}
try
:
with
open
(
"
revision
"
,
"
r
"
)
as
r
:
revision
=
r
.
read
().
strip
()
new_config
[
'
data
'
][
''
][
'
txt
'
]
=
[{
'
txt
'
:
f
'
{
revision
}
'
}]
except
FileNotFoundError
:
pass
with
open
(
f
"
{
sys
.
argv
[
1
]
}
.json
"
,
"
w
"
)
as
geodns_config
:
with
open
(
f
"
{
sys
.
argv
[
1
]
}
.json
"
,
"
w
"
)
as
geodns_config
:
json
.
dump
(
new_config
,
geodns_config
,
indent
=
2
)
json
.
dump
(
new_config
,
geodns_config
,
indent
=
2
)
This diff is collapsed.
Click to expand it.
roles/geodns/tasks/main.yml
+
1
−
1
View file @
74ae0158
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
-
name
:
Write MDX-SAAS repo version
-
name
:
Write MDX-SAAS repo version
ansible.builtin.shell
:
ansible.builtin.shell
:
cmd
:
"
git
rev-parse
HEAD
>
revision"
cmd
:
"
git
rev-parse
HEAD
>
{{
geodns_config
}}/
revision"
chdir
:
"
{{
mdxsaas_dir
}}"
chdir
:
"
{{
mdxsaas_dir
}}"
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