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
Ivan Tyagov
slapos.package
Commits
76b94485
Commit
76b94485
authored
Jun 16, 2016
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: Include sysctl and modprobes
/reviewed-on
!20
parent
ab79c235
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
49 additions
and
6 deletions
+49
-6
playbook/roles/re6stnet/tasks/main.yml
playbook/roles/re6stnet/tasks/main.yml
+2
-0
playbook/roles/re6stnet/tasks/sysctl.yml
playbook/roles/re6stnet/tasks/sysctl.yml
+3
-0
playbook/roles/vifib-server/tasks/kvm.yml
playbook/roles/vifib-server/tasks/kvm.yml
+13
-0
playbook/roles/vifib-server/tasks/main.yml
playbook/roles/vifib-server/tasks/main.yml
+21
-6
playbook/roles/vifib-server/tasks/shuttle-modprobe.yml
playbook/roles/vifib-server/tasks/shuttle-modprobe.yml
+10
-0
No files found.
playbook/roles/re6stnet/tasks/main.yml
View file @
76b94485
...
...
@@ -3,6 +3,8 @@
stat
:
path=/etc/re6stnet/re6stnet.conf
register
:
re6stnet_conf
-
include
:
sysctl.yml
-
name
:
Configure Re6st with re6st-conf
shell
:
"
re6st-conf
--registry
{{
re6st_registry_url
}}
--token
{{
re6sttoken
}}
-r
title
{{
computer_name
}}
-d
/etc/re6stnet"
when
:
re6st_annon == False and re6stnet_conf.stat.exists == False and "{{ re6sttoken }}" != "notoken" and "{{ computer_name }}" != "noname"
...
...
playbook/roles/re6stnet/tasks/sysctl.yml
0 → 100644
View file @
76b94485
---
-
sysctl
:
name="net.ipv6.conf.all.disable_ipv6" value=0 sysctl_set=yes state=present reload=yes
playbook/roles/vifib-server/tasks/kvm.yml
0 → 100644
View file @
76b94485
---
-
modprobe
:
name=kvm_intel state=present
ignore_errors
:
True
-
pause
:
seconds=2
-
stat
:
path=/dev/kvm
register
:
dev_kvm
-
name
:
Set 666 on /dev/kvm
shell
:
chmod 666 /dev/kvm
when
:
dev_kvm.stat.exists == True
playbook/roles/vifib-server/tasks/main.yml
View file @
76b94485
---
-
name
:
Set kernel.panic for force reboot after kernel panic
sysctl
:
name="kernel.panic" value=120 sysctl_set=yes state=present reload=yes
-
name
:
Set fs.aio-max-nr for increase default aio-max-nr for sql servers
sysctl
:
name="fs.aio-max-nr" value=16777216 sysctl_set=yes state=present reload=yes
-
name
:
Set kernel.sem for increase semaphore limits
sysctl
:
name="kernel.sem" value="1250 256000 100 1024" sysctl_set=yes state=present reload=yes
-
sysctl
:
name="net.ipv4.neigh.default.gc_thresh1" value=512 sysctl_set=yes state=present reload=yes
-
sysctl
:
name="net.ipv4.neigh.default.gc_thresh2" value=1024 sysctl_set=yes state=present reload=yes
-
sysctl
:
name="net.ipv4.neigh.default.gc_thresh3" value=2048 sysctl_set=yes state=present reload=yes
-
sysctl
:
name="net.ipv6.neigh.default.gc_thresh1" value=512 sysctl_set=yes state=present reload=yes
-
sysctl
:
name="net.ipv6.neigh.default.gc_thresh2" value=1024 sysctl_set=yes state=present reload=yes
-
sysctl
:
name="net.ipv6.neigh.default.gc_thresh3" value=2048 sysctl_set=yes state=present reload=yes
-
include
:
kvm.yml
-
include
:
shuttle-modprobe.yml
-
name
:
Include table 0 on re6st
shell
:
echo "TODO"
-
name
:
interface on re6st
shell
:
echo "TODO"
-
name
:
Load kvm_intel
shell
:
echo "TODO if machine has support."
-
name
:
Set 666 on /dev/kvm
shell
:
echo "TODO if machine has support."
-
name
:
Increase ulimit
shell
:
echo "TODO"
playbook/roles/vifib-server/tasks/shuttle-modprobe.yml
0 → 100644
View file @
76b94485
---
-
modprobe
:
name=acpi_cpufreq state=present
ignore_errors
:
True
-
modprobe
:
name=coretemp state=present
ignore_errors
:
True
-
modprobe
:
name=f71882fg state=present
ignore_errors
:
True
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