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

docs: describe how to deploy systemd templates #512

Merged
merged 2 commits into from
Jan 17, 2025
Merged
Changes from 1 commit
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
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,22 @@ systemd::unit_file { 'foo.service':
}
```

If you're using "template" units (those with a `@` in it), you can
simply enable it with a `service` resource. This, for example, will
anarcat marked this conversation as resolved.
Show resolved Hide resolved
enable the `foo@bar` service unit, based on the `foo@` template:

```puppet
systemd::unit_file { '[email protected]':
content => file("${module_name}/[email protected]"),
enable => false,
active => false,
}
service { '[email protected]':
ensure => true,
enable => true,
}
```

### unit files from parameters

Create a unit file from parameters
Expand Down
Loading