nm
: Manage NetworkManager
nm::install
nm::service
nm::connection
: Create a .nmconnection file
Manage NetworkManager
The following parameters are available in the nm
class:
Data type: Optional[Variant[String[1], Hash[String, Hash]]]
If a String:
Verbatim content of NetworkManager.conf
.
If a Hash:
Hash of data to serialize to NetworkManager.conf
.
See: https://networkmanager.dev/docs/api/latest/nm-settings-keyfile.html
Default value: undef
Data type: Optional[Hash[String, Hash]]
Hash of nm::connection resources to create
Default value: undef
Data type: Boolean
If true
unmanaged connections will be purged.
Default value: true
Create a .nmconnection file
The following parameters are available in the nm::connection
defined type:
Data type: Optional[Variant[String[1], Hash[String, Hash]]]
If a String: Verbatim content of .nmconnection "keyfile".
If a Hash: Hash of data to serialize to a .nmconnection "keyfile".
See: https://networkmanager.dev/docs/api/latest/nm-settings-keyfile.html
Default value: undef
Data type: Enum['present', 'absent']
If connection file should be present or absent.
Default value: 'present'