Skip to content

Commit

Permalink
Allow default inclusion of .conf files beneath conf.d
Browse files Browse the repository at this point in the history
  • Loading branch information
lrascao committed Nov 5, 2020
1 parent 5f6b740 commit 056fe3e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cuttlefish_conf.erl
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ generate_file(Mappings, Filename) ->
_ = [ begin
io:format(S, "~s~n", [lists:flatten(Line)])
end || Line <- ConfFileLines],
% add an include directive at the end that will allow
% other conf files in `conf.d` and have them get picked up
% in order to override settings
% example use case is a k8s configMap that is mapped as a file
% to conf.d/erlang_vm.conf
io:format(S, "include conf.d/*.conf~n~n"),
_ = file:close(S),
ok.

Expand Down

0 comments on commit 056fe3e

Please sign in to comment.