Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arnaud Véron
slapos.package
Commits
326de975
Commit
326de975
authored
Nov 06, 2019
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
re6stnet-install: don't put token in the title of the certificate
parent
7964c931
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
13 deletions
+25
-13
playbook/roles/re6stnet-install/tasks/main.yml
playbook/roles/re6stnet-install/tasks/main.yml
+25
-13
No files found.
playbook/roles/re6stnet-install/tasks/main.yml
View file @
326de975
...
...
@@ -5,25 +5,37 @@
-
include
:
sysctl.yml
-
name
:
Configure Re6st with re6st-conf
-
name
:
Configure Re6st with re6st-conf
(with computer_name, fingerprint, no token)
shell
:
"
re6st-conf
--registry
{{
re6st_registry_url
}}
-r
title
{{
computer_name
}}
--fingerprint
{{
re6st_fingerprint
}}
-d
/etc/re6stnet
--anonymous"
when
:
re6st_annon ==
True and re6stnet_conf.stat.exists == False
and "{{ computer_name }}" != "noname"
when
:
re6st_annon ==
False and re6stnet_conf.stat.exists == False and "{{ re6sttoken }}" == "notoken" and "{{ re6st_fingerprint }}" != "nofingerprint"
and "{{ computer_name }}" != "noname"
-
name
:
Update Facts
set_fact
:
computer_name
:
"
{{
re6sttoken
}}"
when
:
computer_name == "noname"
-
name
:
Configure Re6st with re6st-conf (with computer_name, fingerprint, token)
shell
:
"
re6st-conf
--registry
{{
re6st_registry_url
}}
-r
title
{{
computer_name
}}
--fingerprint
{{
re6st_fingerprint
}}
-d
/etc/re6stnet
--token
{{
re6sttoken
}}"
when
:
re6st_annon == False and re6stnet_conf.stat.exists == False and "{{ re6sttoken }}" != "notoken" and "{{ re6st_fingerprint }}" != "nofingerprint" and "{{ computer_name }}" != "noname"
-
debug
:
msg="{{ computer_name }}"
-
name
:
Configure Re6st with re6st-conf (with computer_name, no fingerprint, no token)
shell
:
"
re6st-conf
--registry
{{
re6st_registry_url
}}
-r
title
{{
computer_name
}}
-d
/etc/re6stnet
--anonymous"
when
:
re6st_annon == False and re6stnet_conf.stat.exists == False and "{{ re6sttoken }}" == "notoken" and "{{ re6st_fingerprint }}" == "nofingerprint" and "{{ computer_name }}" != "noname"
-
name
:
Configure Re6st with re6st-conf (with computer_name, no fingerprint, token)
shell
:
"
re6st-conf
--registry
{{
re6st_registry_url
}}
-r
title
{{
computer_name
}}
-d
/etc/re6stnet
--token
{{
re6sttoken
}}"
when
:
re6st_annon == False and re6stnet_conf.stat.exists == False and "{{ re6sttoken }}" != "notoken" and "{{ re6st_fingerprint }}" == "nofingerprint" and "{{ computer_name }}" != "noname"
-
name
:
Configure Re6st with re6st-conf
shell
:
"
re6st-conf
--registry
{{
re6st_registry_url
}}
--
token
{{
re6sttoken
}}
-r
title
{{
computer_name
}}
--fingerprint
{{
re6st_fingerprint
}}
-d
/etc/re6stnet
"
when
:
re6st_annon == False and re6stnet_conf.stat.exists == False and "{{ re6sttoken }}"
!= "notoken" and "{{ re6st_fingerprint }}" != "nofingerprint
"
-
name
:
Configure Re6st with re6st-conf
(with no computer_name, fingerprint, no token)
shell
:
"
re6st-conf
--registry
{{
re6st_registry_url
}}
--
fingerprint
{{
re6st_fingerprint
}}
-d
/etc/re6stnet
--anonymous
"
when
:
re6st_annon == False and re6stnet_conf.stat.exists == False and "{{ re6sttoken }}"
== "notoken" and "{{ re6st_fingerprint }}" != "nofingerprint" and "{{ computer_name }}" == "noname
"
-
name
:
Configure Re6st with re6st-conf
shell
:
"
re6st-conf
--registry
{{
re6st_registry_url
}}
--token
{{
re6sttoken
}}
-r
title
{{
re6sttoken
}}
-d
/etc/re6stnet"
when
:
re6st_annon == False and re6stnet_conf.stat.exists == False and "{{ re6sttoken }}" != "notoken" and "{{ re6st_fingerprint }}" == "nofingerprint"
-
name
:
Configure Re6st with re6st-conf (with no computer_name, fingerprint, token)
shell
:
"
re6st-conf
--registry
{{
re6st_registry_url
}}
--fingerprint
{{
re6st_fingerprint
}}
-d
/etc/re6stnet
--token
{{
re6sttoken
}}"
when
:
re6st_annon == False and re6stnet_conf.stat.exists == False and "{{ re6sttoken }}" != "notoken" and "{{ re6st_fingerprint }}" != "nofingerprint" and "{{ computer_name }}" == "noname"
-
name
:
Configure Re6st with re6st-conf (with no computer_name, no fingerprint, no token)
shell
:
"
re6st-conf
--registry
{{
re6st_registry_url
}}
-d
/etc/re6stnet
--anonymous"
when
:
re6st_annon == False and re6stnet_conf.stat.exists == False and "{{ re6sttoken }}" == "notoken" and "{{ re6st_fingerprint }}" == "nofingerprint" and "{{ computer_name }}" == "noname"
-
name
:
Configure Re6st with re6st-conf (with no computer_name, no fingerprint, token)
shell
:
"
re6st-conf
--registry
{{
re6st_registry_url
}}
-d
/etc/re6stnet
--token
{{
re6sttoken
}}"
when
:
re6st_annon == False and re6stnet_conf.stat.exists == False and "{{ re6sttoken }}" != "notoken" and "{{ re6st_fingerprint }}" == "nofingerprint" and "{{ computer_name }}" == "noname"
-
name
:
Recheck if configuration already exists (after running re6st-conf)
stat
:
path=/etc/re6stnet/re6stnet.conf
...
...
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