-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rearranging config to not require ansible
- Loading branch information
Showing
8 changed files
with
61 additions
and
59 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,5 @@ | ||
## Name of the node | ||
-name switchboard@{{ host|default:"127.0.0.1" }} | ||
|
||
## Cookie for distributed erlang | ||
-setcookie {{ cookie|default:"switchboard" }} |
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,18 +1,6 @@ | ||
--- | ||
- name: template out vm.args file | ||
template: src=vm.args.j2 dest="{{switchboard_root}}/etc/vm.args" mode=700 | ||
tags: | ||
- vmargs | ||
- configure | ||
|
||
- name: template out the vars.config file | ||
template: src=vars.config.j2 dest="{{switchboard_root}}/etc/vars.config" mode=700 | ||
tags: | ||
- vars | ||
- configure | ||
|
||
- name: template out the app.config file | ||
template: src=app.config.j2 dest="{{switchboard_root}}/etc/app.config" mode=700 | ||
tags: | ||
- appconfig | ||
- configure | ||
- configure |
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,3 +1,9 @@ | ||
%% -*- mode: erlang -*- | ||
{cowboy_port_variable, 8080}. | ||
{logs_dir, "{{switchboard_logs}}"}. | ||
%% Switchboard Config. | ||
|
||
{host, "{{ switchboard_host }}"}. | ||
{cookie, "{{ switchboard_cookie }}"}. | ||
{http_port, {{ switchboard_http_port }}}. | ||
{log_dir, "{{ switchboard_logs}}"}. | ||
{google_client_id, "{{ switchboard_google_client_id }}"}. | ||
{google_client_secret, "{{switchboard_google_client_secret }}"}. |
This file was deleted.
Oops, something went wrong.
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,32 @@ | ||
%% -*- mode: erlang -*- | ||
%% Switchboard Config. | ||
%% | ||
%% Configure switchboard by uncommenting configuration lines and customizing | ||
%% the value. | ||
%% | ||
%% These variables are overlaid against configuration files when the | ||
%% release is built. To refresh the release's configuration, it must | ||
%% be rebuilt. | ||
|
||
|
||
%% The node name is set to `switchboard@{{ host }}'. | ||
% {host, "127.0.0.1"}. | ||
|
||
%% The distributed erlang cookie. | ||
% {cookie, "switchboard"}. | ||
|
||
%% The API's HTTP listener port. | ||
% {http_port, 8080}. | ||
|
||
%% The directory to save logs under. | ||
% {log_dir, "log"}. | ||
|
||
|
||
%% Google OAuth: To OAuth using Google, both the `google_client_id' and | ||
%% `google_client_secret' must be set. | ||
|
||
%% Google OAuth client id [string]. | ||
% {google_client_id, false}. | ||
|
||
%% Google OAuth client secret [string]. | ||
% {google_client_secret, false}. |