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
11
Merge Requests
11
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.package
Commits
6561a7e1
Commit
6561a7e1
authored
Feb 04, 2021
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: allow user to change partition number during installation
parent
48311248
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
playbook/roles/slapos/tasks/main.yml
playbook/roles/slapos/tasks/main.yml
+2
-2
playbook/slapos.yml
playbook/slapos.yml
+10
-3
No files found.
playbook/roles/slapos/tasks/main.yml
View file @
6561a7e1
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
register
:
slapos_cfg
register
:
slapos_cfg
-
name
:
Configure SlapOS with slapos node register
-
name
:
Configure SlapOS with slapos node register
shell
:
"
slapos
node
register
--token
{{
slapostoken
}}
--master-url
{{
slapos_master_url
}}
--master-url-web
{{
slapos_web_master_url
}}
--interface-name
{{
interface_name
}}
{{
computer_name
}}"
shell
:
"
slapos
node
register
--token
{{
slapostoken
}}
--master-url
{{
slapos_master_url
}}
--master-url-web
{{
slapos_web_master_url
}}
--interface-name
{{
interface_name
}}
--partition-number
{{
partition_number
}}
{{
computer_name
}}"
when
:
slapos_cfg.stat.exists == False and slapostoken != "notoken" and computer_name != "noname"
when
:
slapos_cfg.stat.exists == False and slapostoken != "notoken" and computer_name != "noname"
-
name
:
Check if configuration exists already
-
name
:
Check if configuration exists already
...
...
playbook/slapos.yml
View file @
6561a7e1
...
@@ -27,12 +27,19 @@
...
@@ -27,12 +27,19 @@
slapostoken
:
"
{{
prompt.user_input
|
default('notoken',
true)
}}"
slapostoken
:
"
{{
prompt.user_input
|
default('notoken',
true)
}}"
-
pause
:
-
pause
:
prompt
:
"
Which
network
interface
are
you
using
?
(ignore
if
you
already
have
a
configured
re6st)
[lo]"
prompt
:
"
Which
interface
will
provide
IPv6
?
(ignore
if
you
already
have
a
configured
re6st)
[lo]"
when
:
slapostoken != "notoken"
when
:
slapostoken != "notoken"
register
:
prompt
register
:
prompt
-
set_fact
:
-
set_fact
:
interface_name
:
"
{{
prompt.user_input
|
default('lo',
true)
}}"
interface_name
:
"
{{
prompt.user_input
|
default('lo',
true)
}}"
-
pause
:
prompt
:
"
How
many
SlapOS
computer
partitions
would
you
like?
[10]"
when
:
slapostoken != "notoken"
register
:
prompt
-
set_fact
:
partition_number
:
"
{{
prompt.user_input
|
default('10',
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