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
Guillaume Hervier
slapos.package
Commits
0573118b
Commit
0573118b
authored
Jan 25, 2016
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: Drop re6stnet-legacy usage.
parent
5a4db980
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
14 deletions
+22
-14
playbook/gnet-re6stnet.yml
playbook/gnet-re6stnet.yml
+3
-7
playbook/re6stnet.yml
playbook/re6stnet.yml
+5
-3
playbook/roles/re6stnet/tasks/main.yml
playbook/roles/re6stnet/tasks/main.yml
+10
-2
playbook/settings/vifib.yml
playbook/settings/vifib.yml
+3
-1
playbook/vifib-shuttle.yml
playbook/vifib-shuttle.yml
+1
-1
No files found.
playbook/gnet-re6stnet.yml
View file @
0573118b
...
@@ -5,18 +5,14 @@
...
@@ -5,18 +5,14 @@
vars_files
:
vars_files
:
-
settings/gnet.yml
-
settings/gnet.yml
vars
:
-
computer_name
:
noname
vars_prompt
:
vars_prompt
:
-
name
:
"
re6sttoken"
-
name
:
"
re6sttoken"
prompt
:
"
If
you
have
re6st
token
if
you
have
(ignore
if
you
already
have
a
configured
re6st):"
prompt
:
"
If
you
have
re6st
token
if
you
have
(ignore
if
you
already
have
a
configured
re6st):"
private
:
no
private
:
no
default
:
"
notoken"
default
:
"
notoken"
-
name
:
"
computer_name"
prompt
:
"
What
is
this
computer
name?
(ignore
if
you
already
have
a
configured
re6st):"
private
:
no
default
:
"
noname"
roles
:
roles
:
-
re6stnet
-
re6stnet
-
{
role
:
package
,
package_name
:
ntp
,
package_state
:
present
}
playbook/re6stnet.yml
View file @
0573118b
...
@@ -5,13 +5,15 @@
...
@@ -5,13 +5,15 @@
vars_files
:
vars_files
:
-
settings/vifib.yml
-
settings/vifib.yml
vars
:
-
re6sttoken
:
noname
vars_prompt
:
vars_prompt
:
-
name
:
"
computer_name"
-
name
:
"
computer_name"
prompt
:
"
What
is
this
computer
name?
(ignore
if
you
already
have
a
configured
re6st
and
slapos)
:"
prompt
:
"
Please
insert
your
email
or
a
name
of
this
computer
:"
private
:
no
private
:
no
default
:
"
noname"
default
:
"
noname"
roles
:
roles
:
-
{
role
:
re6stnet-legacy
,
package_state
:
present
}
-
{
role
:
re6stnet
,
package_state
:
present
}
-
{
role
:
package
,
package_name
:
ntp
,
package_state
:
present
}
playbook/roles/re6stnet/tasks/main.yml
View file @
0573118b
...
@@ -5,7 +5,15 @@
...
@@ -5,7 +5,15 @@
-
name
:
Configure Re6st with re6st-conf
-
name
:
Configure Re6st with re6st-conf
shell
:
"
re6st-conf
--registry
{{
re6st_registry_url
}}
--token
{{
re6sttoken
}}
-r
title
{{
computer_name
}}
-d
/etc/re6stnet"
shell
:
"
re6st-conf
--registry
{{
re6st_registry_url
}}
--token
{{
re6sttoken
}}
-r
title
{{
computer_name
}}
-d
/etc/re6stnet"
when
:
re6stnet_conf.stat.exists == False and "{{ re6sttoken }}" != "notoken" and "{{ computer_name }}" != "noname"
when
:
re6st_annon == False and re6stnet_conf.stat.exists == False and "{{ re6sttoken }}" != "notoken" 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 "{{ computer_name }}" == "noname"
-
name
:
Configure Re6st with re6st-conf
shell
:
"
re6st-conf
--registry
{{
re6st_registry_url
}}
-r
title
{{
computer_name
}}
-d
/etc/re6stnet
--anonymous"
when
:
re6st_annon == True and re6stnet_conf.stat.exists == False and "{{ computer_name }}" != "noname"
-
name
:
Check if configuration exists already
-
name
:
Check if configuration exists already
stat
:
path=/etc/re6stnet/re6stnet.conf
stat
:
path=/etc/re6stnet/re6stnet.conf
...
@@ -24,5 +32,5 @@
...
@@ -24,5 +32,5 @@
when
:
ansible_distribution == 'CentOS' and ansible_distribution_version >= '7' and re6stnet.stat.exists == True and re6stnode.stat.exists == False
when
:
ansible_distribution == 'CentOS' and ansible_distribution_version >= '7' and re6stnet.stat.exists == True and re6stnode.stat.exists == False
-
name
:
Start re6st-node service
-
name
:
Start re6st-node service
service
:
name=re6st
-node
state=started enabled=yes
service
:
name=re6st
net
state=started enabled=yes
when
:
recheck_re6stnet_conf.stat.exists == True
when
:
recheck_re6stnet_conf.stat.exists == True
playbook/settings/vifib.yml
View file @
0573118b
...
@@ -3,3 +3,5 @@ re6st_registry_url: http://re6stnet.nexedi.com/
...
@@ -3,3 +3,5 @@ re6st_registry_url: http://re6stnet.nexedi.com/
slapos_master_url
:
https://slap.vifib.com/
slapos_master_url
:
https://slap.vifib.com/
slapos_web_master_url
:
https://slapos.vifib.com/
slapos_web_master_url
:
https://slapos.vifib.com/
interface_name
:
lo
interface_name
:
lo
re6st_annon
:
True
re6sttoken
:
noname
playbook/vifib-shuttle.yml
View file @
0573118b
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
default
:
"
notoken"
default
:
"
notoken"
roles
:
roles
:
-
{
role
:
re6stnet
-legacy
,
package_state
:
present
}
-
{
role
:
re6stnet
,
package_state
:
present
}
-
{
role
:
slapos
,
package_state
:
present
}
-
{
role
:
slapos
,
package_state
:
present
}
-
{
role
:
package
,
package_name
:
ntp
,
package_state
:
present
}
-
{
role
:
package
,
package_name
:
ntp
,
package_state
:
present
}
-
vifib-team-ssh-key
-
vifib-team-ssh-key
...
...
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