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
15
Merge Requests
15
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
b1e129d9
Commit
b1e129d9
authored
Apr 12, 2023
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: remove useless post_config variable
This variabe was always True.
parent
4adefd89
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
16 deletions
+15
-16
playbook/imt-server.yml
playbook/imt-server.yml
+1
-1
playbook/imt-startup.yml
playbook/imt-startup.yml
+1
-1
playbook/roles/imt-slapos/tasks/main.yml
playbook/roles/imt-slapos/tasks/main.yml
+13
-14
No files found.
playbook/imt-server.yml
View file @
b1e129d9
...
@@ -18,4 +18,4 @@
...
@@ -18,4 +18,4 @@
roles
:
roles
:
-
{
role
:
slapos
,
package_state
:
present
}
-
{
role
:
slapos
,
package_state
:
present
}
-
{
role
:
imt-slapos
,
post_config
:
True
}
-
{
role
:
imt-slapos
}
playbook/imt-startup.yml
View file @
b1e129d9
...
@@ -5,4 +5,4 @@
...
@@ -5,4 +5,4 @@
-
settings/imt.yml
-
settings/imt.yml
roles
:
roles
:
-
{
role
:
imt-slapos
,
post_config
:
True
,
startup
:
True
}
-
{
role
:
imt-slapos
,
startup
:
True
}
playbook/roles/imt-slapos/tasks/main.yml
View file @
b1e129d9
...
@@ -20,8 +20,7 @@
...
@@ -20,8 +20,7 @@
-
name
:
stat slapos.cfg file
-
name
:
stat slapos.cfg file
stat
:
path=/etc/opt/slapos/slapos.cfg
stat
:
path=/etc/opt/slapos/slapos.cfg
register
:
slapos_cfg
register
:
slapos_cfg
when
:
post_config is defined
-
name
:
update slapos.cfg configuration
-
name
:
update slapos.cfg configuration
lineinfile
:
dest=/etc/opt/slapos/slapos.cfg regexp="{{ item.regexp }}" line="{{ item.line }}" backup=yes insertafter="^interface_name ="
lineinfile
:
dest=/etc/opt/slapos/slapos.cfg regexp="{{ item.regexp }}" line="{{ item.line }}" backup=yes insertafter="^interface_name ="
with_items
:
with_items
:
...
@@ -29,41 +28,41 @@
...
@@ -29,41 +28,41 @@
-
{
regexp
:
'
^tap_gateway_interface\s*='
,
line
:
'
tap_gateway_interface
=
re6stnet-tcp'
}
-
{
regexp
:
'
^tap_gateway_interface\s*='
,
line
:
'
tap_gateway_interface
=
re6stnet-tcp'
}
-
{
regexp
:
'
^partition_amount\s*='
,
line
:
'
partition_amount
=
125'
}
-
{
regexp
:
'
^partition_amount\s*='
,
line
:
'
partition_amount
=
125'
}
-
{
regexp
:
'
^tap_ipv6\s*='
,
line
:
'
tap_ipv6
=
False'
}
-
{
regexp
:
'
^tap_ipv6\s*='
,
line
:
'
tap_ipv6
=
False'
}
when
:
post_config is defined and
slapos_cfg.stat.exists == True and startup is not defined
when
:
slapos_cfg.stat.exists == True and startup is not defined
-
name
:
update slapos.cfg configuration storage/network
-
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 ="
lineinfile
:
dest=/etc/opt/slapos/slapos.cfg regexp="{{ item.regexp }}" line="{{ item.line }}" backup=yes insertafter="^instance_root ="
with_items
:
with_items
:
-
{
regexp
:
'
^ipv4_global_network\s*='
,
line
:
'
ipv4_global_network
=
10.32.0.0/13'
}
-
{
regexp
:
'
^ipv4_global_network\s*='
,
line
:
'
ipv4_global_network
=
10.32.0.0/13'
}
-
{
regexp
:
'
^manager_list\s*='
,
line
:
'
manager_list
=
prerm'
}
-
{
regexp
:
'
^manager_list\s*='
,
line
:
'
manager_list
=
prerm'
}
when
:
post_config is defined and
slapos_cfg.stat.exists == True and startup is not defined
when
:
slapos_cfg.stat.exists == True and startup is not defined
-
name
:
allow firewall in slapos.cfg configuration
-
name
:
allow firewall in slapos.cfg configuration
lineinfile
:
dest=/etc/opt/slapos/slapos.cfg regexp="{{ item.regexp }}" line="{{ item.line }}" backup=yes backrefs=true
lineinfile
:
dest=/etc/opt/slapos/slapos.cfg regexp="{{ item.regexp }}" line="{{ item.line }}" backup=yes backrefs=true
with_items
:
with_items
:
-
{
regexp
:
'
^\[.*firewall\]$'
,
line
:
'
[firewall]'
}
-
{
regexp
:
'
^\[.*firewall\]$'
,
line
:
'
[firewall]'
}
when
:
post_config is defined and slapos_cfg.stat.exists == True and startup is not defined
when
:
slapos_cfg.stat.exists == True and startup is not defined
-
name
:
Run slapos format for update configs
shell
:
"
slapos
node
format
-v
--now"
when
:
slapos_cfg.stat.exists == True and startup is not defined
-
name
:
Insert kvm module
-
name
:
Insert kvm module
modprobe
:
name=kvm state=present
modprobe
:
name=kvm state=present
when
:
post_config is defined
-
name
:
Insert kvm_intel module
-
name
:
Insert kvm_intel module
modprobe
:
name=kvm_intel state=present
modprobe
:
name=kvm_intel state=present
when
:
post_config is defined
-
name
:
Insert vhost-net module
-
name
:
Insert vhost-net module
modprobe
:
name=vhost-net state=present
modprobe
:
name=vhost-net state=present
when
:
post_config is defined
-
name
:
chmod 666 /dev/kvm
-
name
:
chmod 666 /dev/kvm
file
:
path=/dev/kvm mode=0666
file
:
path=/dev/kvm mode=0666
when
:
post_config is defined
-
name
:
chmod 666 /dev/vhost-net
-
name
:
chmod 666 /dev/vhost-net
file
:
path=/dev/vhost-net mode=0666
file
:
path=/dev/vhost-net mode=0666
when
:
post_config is defined
-
name
:
chmod 666 /dev/net/tun
-
name
:
chmod 666 /dev/net/tun
file
:
path=/dev/net/tun mode=0666
file
:
path=/dev/net/tun mode=0666
when
:
post_config is defined
-
name
:
Run slapos format for update configs
shell
:
"
slapos
node
format
-v
--now"
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