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
Thomas Gambier
slapos.package
Commits
c05ad416
Commit
c05ad416
authored
Mar 22, 2019
by
Alain Takoudjou
Committed by
Thomas Gambier
Mar 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skip not needed tasks
parent
626fd7c7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
playbook/imt-startup.yml
playbook/imt-startup.yml
+1
-1
playbook/roles/imt-slapos/tasks/main.yml
playbook/roles/imt-slapos/tasks/main.yml
+6
-4
No files found.
playbook/imt-startup.yml
View file @
c05ad416
...
...
@@ -5,4 +5,4 @@
-
settings/imt.yml
roles
:
-
{
role
:
imt-slapos
,
post_config
:
True
}
\ No newline at end of file
-
{
role
:
imt-slapos
,
post_config
:
True
,
startup
:
True
}
playbook/roles/imt-slapos/tasks/main.yml
View file @
c05ad416
...
...
@@ -33,6 +33,8 @@
shell
:
/usr/local/bin/slapcache-download --destination=/opt/upgrader/archive.tar.gz
when
:
playbook.stat.exists == False
-
file
:
path=/opt/upgrader/playbook state=directory mode=0755
-
name
:
Copy slapos.playbook
unarchive
:
src=/opt/upgrader/archive.tar.gz dest=/opt/upgrader/playbook
when
:
playbook.stat.exists == False
...
...
@@ -52,7 +54,7 @@
-
{
regexp
:
'
^tap_gateway_interface\s*='
,
line
:
'
tap_gateway_interface
=
re6stnet-tcp'
}
-
{
regexp
:
'
^partition_amount\s*='
,
line
:
'
partition_amount
=
126'
}
-
{
regexp
:
'
^tap_ipv6\s*='
,
line
:
'
tap_ipv6
=
False'
}
when
:
post_config is defined and slapos_cfg.stat.exists == True
when
:
post_config is defined and slapos_cfg.stat.exists == True
and startup is not defined
-
name
:
update slapos.cfg configuration storage/network
lineinfile
:
dest=/etc/opt/slapos/slapos.cfg regexp="{{ item.regexp }}" line="{{ item.line }}" backup=yes insertafter="^instance_root ="
...
...
@@ -60,7 +62,7 @@
-
{
regexp
:
'
^ipv4_global_network\s*='
,
line
:
'
ipv4_global_network
=
10.32.0.0/13'
}
-
{
regexp
:
'
^instance_storage_home\s*='
,
line
:
'
instance_storage_home
=
/data'
}
-
{
regexp
:
'
^manager_list\s*='
,
line
:
'
manager_list
=
prerm'
}
when
:
post_config is defined and slapos_cfg.stat.exists == True
when
:
post_config is defined and slapos_cfg.stat.exists == True
and startup is not defined
-
name
:
Check whether firewall is enabled
shell
:
grep -Fxq "[firewall]" /etc/opt/slapos/slapos.cfg
...
...
@@ -81,7 +83,7 @@
-
{
regexp
:
'
^log_file\s*=*firewalld*'
,
line
:
'
log_file
=
/opt/slapos/log/firewalld.log'
}
-
{
regexp
:
'
^dbus_log_file\s*='
,
line
:
'
dbus_log_file
=
/opt/slapos/log/dbus.log'
}
-
{
regexp
:
'
^reload_config_cmd\s*='
,
line
:
'
reload_config_cmd
=
slapos
node
restart
firewall'
}
when
:
post_config is defined and slapos_cfg.stat.exists == True
when
:
post_config is defined and slapos_cfg.stat.exists == True
and startup is not defined
-
modprobe
:
name=kvm state=present
when
:
post_config is defined
...
...
@@ -97,4 +99,4 @@
-
name
:
Run slapos format for update configs
shell
:
"
slapos
node
format
-v
--now"
when
:
post_config is defined and slapos_cfg.stat.exists == True
when
:
post_config is defined and slapos_cfg.stat.exists == True
and startup is not defined
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