Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support management of Swap unit files #502

Merged
merged 2 commits into from
Nov 26, 2024
Merged

Commits on Nov 26, 2024

  1. Support management of Swap unit files

    Let `.swap` unit files be managed with `systemd::manage_dropin`
    and `systemd::manage_unit`.
    
    For example:
    
    ```puppet
    systemd::manage_unit{'swapfile.swap':
      ensure        => 'present',
      active        => true,
      enable        => true,
      unit_entry    => {
        'Description' => 'Enable a swapfile at /swapfile',
      }
      swap_entry    => {
        'What' => '/swapfile',
      }
      install_entry => {
        'WantedBy' => 'multi-user.target',
      },
    }
    ```
    
    * https://www.freedesktop.org/software/systemd/man/latest/systemd.swap.html
    traylenator committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    10a4f1c View commit details
    Browse the repository at this point in the history
  2. Put Install section last

    Traditionally the `Install` section is always last
    in a unit file.
    traylenator committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    1000422 View commit details
    Browse the repository at this point in the history