add managing of services using Hiera
This commit is contained in:
@@ -44,7 +44,7 @@ base::pkg_group::java:
|
||||
|
||||
### Install Latest Package Version
|
||||
|
||||
Puppet by default only checks if a package is installed and only installs it if missing.
|
||||
Puppet by default only checks if a package is installed and only installs it if missing.
|
||||
To ensure that always the latest available package version is installed, append the `:latest` tag to the package name in the package group:
|
||||
|
||||
```
|
||||
@@ -101,7 +101,7 @@ Please migrate them to the equivalent `base::*` list. You can have both of them
|
||||
|
||||
Hiera can also be used to manage services and to automate reoccuring tasks with timers.
|
||||
|
||||
### Enabling/Starting a Service
|
||||
### Enabling/Starting a Service
|
||||
|
||||
If the software already comes with an systemd unit file, then it is sufficient to just enable it in Hiera by using the `base::services` key:
|
||||
|
||||
@@ -110,7 +110,7 @@ base::services:
|
||||
netdata:
|
||||
enable: true
|
||||
```
|
||||
The key inside is the `systemd` service name without the `.service` suffix.
|
||||
The key inside is the `systemd` service name without the `.service` suffix.
|
||||
|
||||
### Disabling/Stopping a Service
|
||||
|
||||
|
||||
Reference in New Issue
Block a user