Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from gossiperl/lager-setup
Add lager setup, add ability to launch vagrant box from release. Ensu…
- Loading branch information
Showing
9 changed files
with
73 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
*.beam | ||
.rebar | ||
.eunit | ||
bin/releases/*.deb | ||
bin/rebar-src | ||
deps/** | ||
ebin/** | ||
|
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,10 @@ | ||
[ | ||
{lager, [ | ||
{handlers, [ | ||
{lager_console_backend, info}, | ||
{lager_file_backend, [{file, "/var/log/gossiperl/error.log"}, {level, error}, {size, 10485760}, {date, "$D0"}, {count, 5}]}, | ||
{lager_file_backend, [{file, "/var/log/gossiperl/console.log"}, {level, info}, {size, 10485760}, {date, "$D0"}, {count, 5}]} | ||
]}, | ||
{crash_log, "/var/log/gossiperl/crash.log"} | ||
]} | ||
]. |
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
Empty file.
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,19 @@ | ||
#!/bin/bash | ||
|
||
SCRIPT_DIRECTORY=$(dirname "${BASH_SOURCE[0]}") | ||
RELEASE=1.3.5 | ||
|
||
mkdir -p /var/log/gossiperl | ||
mkdir -p /etc/gossiperl | ||
|
||
if [ ! -f /etc/gossiperl/multicast ]; then | ||
echo "Enabling multicast" | ||
ifconfig eth1 multicast | ||
route add -net 224.0.0.0 netmask 224.0.0.0 eth1 | ||
echo $(date) >> /etc/gossiperl/multicast | ||
else | ||
echo "Multicast already enabled" | ||
fi | ||
|
||
apt-get update && apt-get install -y curl jq | ||
dpkg -i $SCRIPT_DIRECTORY/releases/gossiperl-${RELEASE}_all.deb |
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 |
---|---|---|
@@ -1,11 +1,15 @@ | ||
[ | ||
%% SASL config | ||
{sasl, [ | ||
{sasl_error_logger, {file, "log/sasl-error.log"}}, | ||
{errlog_type, error}, | ||
{error_logger_mf_dir, "log/sasl"}, % Log directory | ||
{error_logger_mf_maxbytes, 10485760}, % 10 MB max file size | ||
{error_logger_mf_maxfiles, 5} % 5 files max | ||
]} | ||
{sasl_error_logger, false} | ||
]}, | ||
{lager, [ | ||
{handlers, [ | ||
{lager_console_backend, info}, | ||
{lager_file_backend, [{file, "/var/log/gossiperl/error.log"}, {level, error}, {size, 10485760}, {date, "$D0"}, {count, 5}]}, | ||
{lager_file_backend, [{file, "/var/log/gossiperl/console.log"}, {level, info}, {size, 10485760}, {date, "$D0"}, {count, 5}]} | ||
]}, | ||
{crash_log, "/var/log/gossiperl/crash.log"} | ||
]} | ||
]. | ||
|
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