Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hpc-team
HPCasCode
Merge requests
!369
Disable interface
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Disable interface
disable_interface
into
master
Overview
0
Commits
2
Pipelines
1
Changes
3
Merged
Simon Michnowicz
requested to merge
disable_interface
into
master
4 years ago
Overview
0
Commits
2
Pipelines
1
Changes
3
Expand
Disables a network interface via a systemd startup file. See Readme.md for details.
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
0b94df22
2 commits,
4 years ago
3 files
+
42
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
roles/disable_interface/tasks/main.yml
0 → 100644
+
16
−
0
Options
---
# This role adds a sytemd services file and enables it
# It disables the {{ interface_name }} interface (Management port) on Baremetal nodes
-
set_fact
:
interface_name="e1p1"
when
:
interface_name is undefined
-
name
:
Create service file for turning off interace name
template
:
src=disable_interface.service.j2 dest=/etc/systemd/system/disable_interface.service mode="u=rw,g=r,o=r"
become
:
true
become_user
:
root
-
name
:
enable and start device_off service
service
:
name=disable_interface.service state=started enabled=yes
become
:
true
become_user
:
root
Loading