-
-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
systemd service: Switch erb to epp template
- Loading branch information
1 parent
10fc593
commit 5c4a9d2
Showing
3 changed files
with
49 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<%- | Sensitive[Hash] $config_hash, | ||
String[1] $user, | ||
String[1] $group, | ||
Stdlib::Absolutepath $bin_dir, | ||
Stdlib::Absolutepath $config_dir, | ||
Optional[String] $extra_options, | ||
Boolean $allow_binding_to_root_ports, | ||
Boolean $enable_beta_ui | ||
| -%> | ||
# THIS FILE IS MANAGED BY PUPPET | ||
[Unit] | ||
Description=Consul Agent | ||
After=network-online.target | ||
Wants=network-online.target | ||
|
||
[Service] | ||
<% if $config_hash['retry_join'] == undef or $config_hash['retry_join'].length < 2 { -%> | ||
Type=exec | ||
<% } else { -%> | ||
Type=notify | ||
<% } -%> | ||
<% if $allow_binding_to_root_ports == true { -%> | ||
AmbientCapabilities=CAP_NET_BIND_SERVICE | ||
<% } -%> | ||
<% if $enable_beta_ui == true { -%> | ||
Environment=CONSUL_UI_BETA=true | ||
<% } -%> | ||
User=<%= $user %> | ||
Group=<%= $group %> | ||
ExecStart=<%= $bin_dir %>/consul agent \ | ||
-config-dir <%= $config_dir %> <%= $extra_options %> | ||
ExecReload=/bin/kill -HUP $MAINPID | ||
Restart=on-failure | ||
LimitNOFILE=131072 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file was deleted.
Oops, something went wrong.