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
Rafael Monnerat
slapos.package
Commits
e00c818f
Commit
e00c818f
authored
Dec 18, 2020
by
Lu Xu
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: conditional prompt for installing slapos node
parent
12902ec9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
playbook/slapos.yml
playbook/slapos.yml
+15
-8
No files found.
playbook/slapos.yml
View file @
e00c818f
...
@@ -2,9 +2,6 @@
...
@@ -2,9 +2,6 @@
hosts
:
127.0.0.1
hosts
:
127.0.0.1
connection
:
local
connection
:
local
vars
:
-
interface_name
:
lo
vars_prompt
:
vars_prompt
:
-
name
:
"
slapos_master_url"
-
name
:
"
slapos_master_url"
prompt
:
"
What
is
the
url
to
the
SlapOS
Master
API?
(ignore
if
you
already
have
a
configured
re6st
and
slapos):"
prompt
:
"
What
is
the
url
to
the
SlapOS
Master
API?
(ignore
if
you
already
have
a
configured
re6st
and
slapos):"
...
@@ -17,14 +14,24 @@
...
@@ -17,14 +14,24 @@
default
:
"
https://slapos.vifib.com/"
default
:
"
https://slapos.vifib.com/"
-
name
:
"
computer_name"
-
name
:
"
computer_name"
prompt
:
"
What
is
this
computer
name?
(ignore
if
you
already
have
a
configured
re6st
and
slapos
):"
prompt
:
"
Name
your
computer
(ignore
if
you
already
have
a
configured
re6st
and
slapos
or
if
you
don't
want
to
register
your
computer
to
SlapOS
Master
):"
private
:
no
private
:
no
default
:
"
noname"
default
:
"
noname"
-
name
:
"
slapostoken"
pre_tasks
:
prompt
:
"
If
you
have
slapos
token
if
you
have
(ignore
if
you
already
have
a
configured
slapos):"
-
pause
:
private
:
no
prompt
:
"
Input
your
slapos
token
(ignore
if
you
already
have
a
configured
slapos)
[notoken]"
default
:
"
notoken"
when
:
computer_name != "noname"
register
:
prompt
-
set_fact
:
slapostoken
:
"
{{
prompt.user_input
|
default('notoken',
true)
}}"
-
pause
:
prompt
:
"
Which
network
interface
are
you
using?
(ignore
if
you
already
have
a
configured
re6st)
[lo]"
when
:
slapostoken != "notoken"
register
:
prompt
-
set_fact
:
interface_name
:
"
{{
prompt.user_input
|
default('lo',
true)
}}"
roles
:
roles
:
-
{
role
:
slapos
,
package_state
:
present
}
-
{
role
:
slapos
,
package_state
:
present
}
...
...
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