16 changes: 13 additions & 3 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,19 +131,29 @@ You can install all needed gems for spec tests into the modules directory by
running:

```sh
bundle install --path .vendor/ --without development system_tests release --jobs "$(nproc)"
bundle config set --local path '.vendor/'
bundle config set --local without 'development system_tests release'
bundle install --jobs "$(nproc)"
```

If you also want to run acceptance tests:

```sh
bundle install --path .vendor/ --with system_tests --without development release --jobs "$(nproc)"
bundle config set --local path '.vendor/'
bundle config set --local without 'development release'
bundle config set --local with 'system_tests'
bundle install --jobs "$(nproc)"
```

Our all in one solution if you don't know if you need to install or update gems:

```sh
bundle install --path .vendor/ --with system_tests --without development release --jobs "$(nproc)"; bundle update; bundle clean
bundle config set --local path '.vendor/'
bundle config set --local without 'development release'
bundle config set --local with 'system_tests'
bundle install --jobs "$(nproc)"
bundle update
bundle clean
```

As an alternative to the `--jobs "$(nproc)` parameter, you can set an
Expand Down
2 changes: 1 addition & 1 deletion .msync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Managed by modulesync - DO NOT EDIT
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/

modulesync_config_version: '7.3.0'
modulesync_config_version: '7.5.0'
45 changes: 45 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,51 @@ All notable changes to this project will be documented in this file.
Each new release typically also includes the latest modulesync defaults.
These should not affect the functionality of the module.

## [v7.0.0](https://github.com/voxpupuli/puppet-systemd/tree/v7.0.0) (2024-04-23)

[Full Changelog](https://github.com/voxpupuli/puppet-systemd/compare/v6.6.0...v7.0.0)

**Breaking changes:**

- remove `systemd::escape` usage for `timer_wrapper` [\#452](https://github.com/voxpupuli/puppet-systemd/pull/452) ([TheMeier](https://github.com/TheMeier))
- Drop EoL Debian 10 support [\#448](https://github.com/voxpupuli/puppet-systemd/pull/448) ([bastelfreak](https://github.com/bastelfreak))
- Use Stdlib::CreateResources type for hiera expansions [\#438](https://github.com/voxpupuli/puppet-systemd/pull/438) ([traylenator](https://github.com/traylenator))
- Deprecate `systemd::service_limits` [\#437](https://github.com/voxpupuli/puppet-systemd/pull/437) ([traylenator](https://github.com/traylenator))
- Don't allow ensure=file anymore for systemd::unit\_file [\#434](https://github.com/voxpupuli/puppet-systemd/pull/434) ([baurmatt](https://github.com/baurmatt))

**Implemented enhancements:**

- Add `NetworkNamespacePath` to unit service [\#440](https://github.com/voxpupuli/puppet-systemd/issues/440)
- Add hiera-friendly option to manage dropins [\#435](https://github.com/voxpupuli/puppet-systemd/issues/435)
- Manage units running under `systemd --user` instance [\#446](https://github.com/voxpupuli/puppet-systemd/pull/446) ([traylenator](https://github.com/traylenator))
- New parameters to manage systemd-nspawn [\#444](https://github.com/voxpupuli/puppet-systemd/pull/444) ([traylenator](https://github.com/traylenator))
- Support reload of instances of systemd --user [\#443](https://github.com/voxpupuli/puppet-systemd/pull/443) ([traylenator](https://github.com/traylenator))
- Add NetworkNamespacePath as a valid unit service configuration [\#441](https://github.com/voxpupuli/puppet-systemd/pull/441) ([Valantin](https://github.com/Valantin))
- Create manage\_unit, manage\_dropin types from hiera [\#436](https://github.com/voxpupuli/puppet-systemd/pull/436) ([traylenator](https://github.com/traylenator))
- Make service restart upon unit file change optional [\#433](https://github.com/voxpupuli/puppet-systemd/pull/433) ([schustersv](https://github.com/schustersv))
- remove resolved settings from config when changed to `absent` [\#429](https://github.com/voxpupuli/puppet-systemd/pull/429) ([TheMeier](https://github.com/TheMeier))
- Add parameter to manage /etc/udev/rules.d directory [\#428](https://github.com/voxpupuli/puppet-systemd/pull/428) ([TheMeier](https://github.com/TheMeier))
- `systemd::unit_file`: Ensure link gets removed on `ensure => absent` [\#405](https://github.com/voxpupuli/puppet-systemd/pull/405) ([baurmatt](https://github.com/baurmatt))

**Fixed bugs:**

- IODeviceWeight, IOReadIOPSMax, .. do not work in systemd::manage\_unit or systemd::dropin\_file [\#424](https://github.com/voxpupuli/puppet-systemd/issues/424)
- Correctly interpolate variables in `service_limits` [\#449](https://github.com/voxpupuli/puppet-systemd/pull/449) ([ekohl](https://github.com/ekohl))
- Correct typing for IOReadIOPSMax, IOWriteIOPSMax,... in systemd::manage\_dropin [\#430](https://github.com/voxpupuli/puppet-systemd/pull/430) ([traylenator](https://github.com/traylenator))

**Closed issues:**

- Service not enabled on systemd::timer [\#391](https://github.com/voxpupuli/puppet-systemd/issues/391)
- Add documentation about user services [\#381](https://github.com/voxpupuli/puppet-systemd/issues/381)
- create systemd::path [\#370](https://github.com/voxpupuli/puppet-systemd/issues/370)
- create services/timers for users [\#328](https://github.com/voxpupuli/puppet-systemd/issues/328)

**Merged pull requests:**

- Fix typo [\#455](https://github.com/voxpupuli/puppet-systemd/pull/455) ([deric](https://github.com/deric))
- Add test case for interpolation bug in name of used types [\#450](https://github.com/voxpupuli/puppet-systemd/pull/450) ([traylenator](https://github.com/traylenator))
- `init`: `service_limits` param: don't refer to `create_resources` [\#439](https://github.com/voxpupuli/puppet-systemd/pull/439) ([kenyon](https://github.com/kenyon))

## [v6.6.0](https://github.com/voxpupuli/puppet-systemd/tree/v6.6.0) (2024-03-08)

[Full Changelog](https://github.com/voxpupuli/puppet-systemd/compare/v6.5.0...v6.6.0)
Expand Down
24 changes: 0 additions & 24 deletions Dockerfile

This file was deleted.

32 changes: 31 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,17 @@ systemd::manage_unit { 'myrunner.service':
The parameters `unit_entry`, `service_entry` and `install_entry` populate the
`[Unit]`, `[Service]` and `[Install]` sections of the generated unit file.

Similarly units can be created from hiera yaml files

```yaml
systemd::manage_units:
myservice.service:
unit_entry:
Description: My Customisation
service_entry:
CPUWeight: 2000
```
### drop-in files
Drop-in files are used to add or alter settings of a unit without modifying the
Expand Down Expand Up @@ -141,6 +152,20 @@ systemd::manage_dropin { 'myconf.conf':
}
```

Dropins can also be created similarly via yaml

```yaml
systemd::manage_dropins:
myconf.conf:
ensure: present
unit: myservice.service
service_entry:
Type: oneshot
ExecStart:
- ''
- '/usr/bin/doit.sh'
```
The filename of the drop in. The full path is determined using the path, unit and this filename.
### modules-load.d
Expand Down Expand Up @@ -417,7 +442,7 @@ systemd::udev::rule:
ensure: present
path: /etc/udev/rules.d
selinux_ignore_defaults: false
notify: "Service[systemd-udevd']"
notify: "Service[systemd-udevd]"
rules:
- 'ACTION=="add", KERNEL=="sda", RUN+="/bin/raw /dev/raw/raw1 %N"'
- 'ACTION=="add", KERNEL=="sdb", RUN+="/bin/raw /dev/raw/raw2 %N"',
Expand Down Expand Up @@ -561,6 +586,11 @@ Finished on controller-0:
}
```

## Deprecation Notices

The type `systemd::service_limits` is deprecated and `systemd::manage_dropin` or `systemd::dropin_file` should
be used instead.

## Transfer Notice

This plugin was originally authored by [Camptocamp](http://www.camptocamp.com).
Expand Down
Loading