Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Trust and Identity Incubator
mdx-saas-config
Commits
4fdc018a
Commit
4fdc018a
authored
Mar 30, 2022
by
Martin van Es
Browse files
WIP
parent
cf9556f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
roles/geodns/files/geoconfig.py
View file @
4fdc018a
...
...
@@ -34,7 +34,7 @@ with open(f"{sys.argv[1]}.yaml", "r") as yaml_doc:
new_config
[
'data'
][
host
]
=
{
record
:
[
address_config
]}
try
:
with
open
(
"revision"
,
"r"
)
as
r
:
with
open
(
"
/tmp/mdx-saas-
revision"
,
"r"
)
as
r
:
revision
=
r
.
read
().
strip
()
new_config
[
'data'
][
''
][
'txt'
]
=
[{
'txt'
:
f
'
{
revision
}
'
}]
except
FileNotFoundError
:
...
...
roles/local/tasks/main.yml
View file @
4fdc018a
...
...
@@ -14,5 +14,5 @@
-
name
:
Write MDX-SAAS repo version
ansible.builtin.shell
:
cmd
:
"
git
rev-parse
HEAD
>
{{
geodns_config
}}/
revision"
cmd
:
"
git
rev-parse
HEAD
>
/tmp/mdx-saas-
revision"
chdir
:
"
{{
mdxsaas_dir
}}"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment