We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6429d6e commit fcdc5c0Copy full SHA for fcdc5c0
README.md
@@ -58,6 +58,22 @@ systemd::unit_file { 'foo.service':
58
}
59
```
60
61
+If you're using "template" units (those with a `@` in it), you can
62
+simply enable it with a `service` resource. This, for example, will
63
+enable the `foo@bar` service unit, based on the `foo@` template:
64
+
65
+```puppet
66
+systemd::unit_file { 'foo@.service':
67
+ content => file("${module_name}/foo@.service"),
68
+ enable => false,
69
+ active => false,
70
+}
71
+service { 'foo@bar.service':
72
+ ensure => true,
73
+ enable => true,
74
75
+```
76
77
### unit files from parameters
78
79
Create a unit file from parameters
0 commit comments