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
abb324ff
Commit
abb324ff
authored
7 years ago
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playbook: enable hotplugged CPU and Memory automatically in VM
parent
454e88c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
playbook/roles/vm-bootstrap/tasks/main.yml
playbook/roles/vm-bootstrap/tasks/main.yml
+7
-0
No files found.
playbook/roles/vm-bootstrap/tasks/main.yml
View file @
abb324ff
...
...
@@ -45,6 +45,13 @@
when
:
is_playbook_ok in [False, "False"]
-
include
:
ssh.yml
-
name
:
Enable hotplugged CPU and Memory automatically
lineinfile
:
dest=/lib/udev/rules.d/80-hotplug-cpu-mem.rules state=present create=yes line="{{ item }}"
with_items
:
-
'
SUBSYSTEM=="cpu",
ACTION=="add",
TEST=="online",
ATTR{online}=="0",
ATTR{online}="1"'
-
'
SUBSYSTEM=="memory",
ACTION=="add",
TEST=="state",
ATTR{state}=="offline",
ATTR{state}="online"'
when
:
ansible_distribution == "Ubuntu" or ansible_distribution == "Debian"
-
file
:
path=/opt/upgrader state=directory
-
stat
:
path=/opt/upgrader/last-upgrade
...
...
This diff is collapsed.
Click to expand it.
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