Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion network-formula/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ Currently only [Wicked](https://github.com/openSUSE/wicked) is supported, howeve

`network`

Configures all possible aspects using either the pillar specified or the default backend (Wicked).
Configures all the pillar specified or the default backend (Wicked).

### Wicked

`network.wicked`

Expand All @@ -30,6 +32,22 @@ Configures routes using Wicked (`/etc/sysconfig/network/routes`).

Configures netconfig (`/etc/sysconfig/network/config`).

### NetworkManager

`network.NetworkManager`

Configures all aspects using NetworkManager.

`network.NetworkManager.packages`

Installs NetworkManager and removes Wicked (TODO).

`network.NetworkManager.connections`

Configures NetworkManager connection profiles (`/etc/NetworkManager/system-connections/`).

### systemd

`network.systemd.link`

Configures network devices using `systemd.link(5)` (`/etc/systemd/network/*.link`).
20 changes: 20 additions & 0 deletions network-formula/network/NetworkManager/common.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{%- from 'network/NetworkManager/map.jinja' import base, base_backup, script -%}

network_nm_backup_directory:
file.directory:
- name: {{ base_backup }}
- mode: '0750'
- user: root
- group: root

network_nm_script:
file.managed:
- name: {{ script }}
- source: salt://{{ slspath }}/files/saltsafe_nm
- mode: '0750'
- user: root
- group: root
- template: jinja
- context:
base: {{ base }}
base_backup: {{ base_backup }}
Loading