forked from kbrebanov/ansible-vault
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Trevor Robinson
committed
Aug 18, 2016
1 parent
c4364c0
commit 773e92e
Showing
7 changed files
with
110 additions
and
26 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
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
File renamed without changes.
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,14 @@ | ||
# RHEL/CentOS 6 compatible Upstart configuration | ||
description "Vault Service" | ||
|
||
start on (local-filesystems and net-device-up IFACE!=lo) | ||
stop on runlevel [016] | ||
|
||
respawn | ||
respawn limit 10 10 | ||
kill timeout 10 | ||
|
||
script | ||
exec su -s /bin/sh -c 'exec "$0" "$@" &>>{{ vault_log_file }}' {{ vault_user }} -- \ | ||
{{ vault_install_dir }}/vault server -config {{ vault_config_dir }}/vault.hcl | ||
end script |
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,17 @@ | ||
[Unit] | ||
Description=Vault Server | ||
Requires=network-online.target | ||
After=network-online.target | ||
|
||
[Service] | ||
Environment="GOMAXPROCS=`nproc`" | ||
Restart=on-failure | ||
User={{ vault_user }} | ||
Group={{ vault_group }} | ||
PIDFile={{ vault_pid_file }} | ||
ExecStart={{ vault_install_dir }}/vault server -config {{ vault_config_dir }}/vault.hcl > {{ vault_log_file }} 2>&1 | ||
ExecReload=/bin/kill -HUP $MAINPID | ||
KillSignal=SIGINT | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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