Skip to content

Commit

Permalink
Merge pull request #82 from jordiprats/master
Browse files Browse the repository at this point in the history
added more install section options
  • Loading branch information
jordiprats authored Mar 9, 2018
2 parents 6062fe6 + 3e2a970 commit 43aa820
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 0.1.40

* added **Alias**, **Also** and **DefaultInstance** for **systemd::service** and **systemd::service::dropin**

## 0.1.39

* logind.conf is now managed via **systemd::logind** with a lot of new options - thanks to [cedef](https://github.com/cedef) for this [PR-59](https://github.com/NTTCom-MS/eyp-systemd/pull/59), it have been marged with some changes using [PR-81](https://github.com/NTTCom-MS/eyp-systemd/pull/81)
Expand Down
3 changes: 3 additions & 0 deletions manifests/service.pp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
$killmode = undef,
$successexitstatus = [],
$killsignal = undef,
$alias = [],
$also = [],
$default_instance = undef,
) {

if ($env_vars != undef )
Expand Down
3 changes: 3 additions & 0 deletions manifests/service/dropin.pp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
$killsignal = undef,
$syslogidentifier = undef,
$purge_dropin_dir = true,
$alias = [],
$also = [],
$default_instance = undef,
) {
if ($env_vars != undef )
{
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eyp-systemd",
"version": "0.1.39",
"version": "0.1.40",
"author": "eyp",
"summary": "management of systemd services, services dropins, sockets and timers",
"license": "Apache-2.0",
Expand Down
9 changes: 9 additions & 0 deletions templates/service.erb
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,12 @@ WantedBy=<%= @wantedby.join(' ') %>
<% if @requiredby.any? -%>
RequiredBy=<%= @requiredby.join(' ') %>
<% end -%>
<% if @alias.any? -%>
Alias=<%= @alias.join(' ') %>
<% end -%>
<% if defined?(@default_instance) -%>
DefaultInstance=<%= @default_instance %>
<% end -%>
<% if @also.any? -%>
Also=<%= @also.join(' ') %>
<% end -%>

0 comments on commit 43aa820

Please sign in to comment.