Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
systemd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
webarch
systemd
Commits
8a2fae7f
Verified
Commit
8a2fae7f
authored
6 months ago
by
Chris Croome
Browse files
Options
Downloads
Patches
Plain Diff
Add network interfaces names note
parent
304a8f40
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#34590
passed
6 months ago
Stage: bookworm
Stage: jammy
Stage: noble
Stage: trixie
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+4
-4
4 additions, 4 deletions
.gitlab-ci.yml
.pre-commit-config.yaml
+1
-1
1 addition, 1 deletion
.pre-commit-config.yaml
README.md
+51
-0
51 additions, 0 deletions
README.md
with
56 additions
and
5 deletions
.gitlab-ci.yml
+
4
−
4
View file @
8a2fae7f
...
...
@@ -36,28 +36,28 @@ stages:
-
noble
-
trixie
bookworm
:
image
:
registry.git.coop/webarch/containers/images/bookworm:20240
721
image
:
registry.git.coop/webarch/containers/images/bookworm:20240
814
stage
:
bookworm
script
:
-
pre-commit install
-
pre-commit run --all-files
-
molecule test --all
jammy
:
image
:
registry.git.coop/webarch/containers/images/jammy:20240
721
image
:
registry.git.coop/webarch/containers/images/jammy:20240
814
stage
:
jammy
script
:
-
pre-commit install
-
pre-commit run --all-files
-
molecule test --all
noble
:
image
:
registry.git.coop/webarch/containers/images/noble:20240
721
image
:
registry.git.coop/webarch/containers/images/noble:20240
814
stage
:
noble
script
:
-
pre-commit install
-
pre-commit run --all-files
-
molecule test --all
trixie
:
image
:
registry.git.coop/webarch/containers/images/trixie:20240
721
image
:
registry.git.coop/webarch/containers/images/trixie:20240
814
stage
:
trixie
script
:
-
pre-commit install
...
...
This diff is collapsed.
Click to expand it.
.pre-commit-config.yaml
+
1
−
1
View file @
8a2fae7f
...
...
@@ -25,7 +25,7 @@ repos:
-
templates
# https://github.com/jackdewinter/pymarkdown/releases
-
repo
:
https://github.com/jackdewinter/pymarkdown.git
rev
:
v0.9.2
1
rev
:
v0.9.2
2
hooks
:
-
id
:
pymarkdown
name
:
Markdown Lint
...
...
This diff is collapsed.
Click to expand it.
README.md
+
51
−
0
View file @
8a2fae7f
...
...
@@ -289,6 +289,57 @@ Time:
-
0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org
```
### Network interface names
For upgrading older Debian servers see the ["Predictable Names" Migration HOWTO](https://wiki.debian.org/NetworkInterfaceNames#migration).
Check the existing name:
```
bash
ls /sys/class/net/ | grep -v ^lo$
eth0
```
For each result ask `udevadm` what `NET_ID`s it knows:
```
bash
udevadm test-builtin net_id /sys/class/net/eth0 2>/dev/null
ID_NET_NAMING_SCHEME=v253
ID_NET_NAME_MAC=enx00163ee9dd05
ID_OUI_FROM_DATABASE=Xensource, Inc.
ID_NET_NAME_SLOT=enX0
```
Remove `/etc/systemd/network/99-default.link` and rebuild `initd`:
```
bash
mv /etc/systemd/network/99-default.link /etc/systemd/network/.99-default.link.bak
update-initramfs -u
```
Run this role with a config like this:
```
yaml
systemd_units:
-
name: systemd-networkd
files:
-
path: /etc/systemd/network/enX0.link
conf:
Match:
MACAddress: "00:16:3e:e9:dd:05"
Link:
Name: enX0
-
path: /etc/systemd/network/enX0.network
conf:
Match:
Name: enX0
Type: ether
Network:
Address:
-
81.95.52.71/25
Gateway: 81.95.52.3
```
## Dependencies
This role requires Ansible `2.13` or newer, [JC](https://pypi.org/project/jc/) and [JMESPath](https://pypi.org/project/jmespath/) to be installed using `pip3` on the Ansible controller.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment