diff options
author | Hussein Ait-Lahcen <hussein.ait-lahcen@fretlink.com> | 2018-11-19 15:50:51 +0100 |
---|---|---|
committer | Hussein Ait-Lahcen <hussein.ait-lahcen@fretlink.com> | 2018-11-19 18:58:43 +0100 |
commit | 50a9e710f9cff8be9d85d7161bb454a46c3f5734 (patch) | |
tree | 8b566d127eb719a0c3f458f8f80b91a6d75040bc /dhall/mkConfig.dhall | |
parent | b570ba036adb74095c712705d686f630d41f4ed0 (diff) | |
download | ansible-clever-50a9e710f9cff8be9d85d7161bb454a46c3f5734.tar.gz ansible-clever-50a9e710f9cff8be9d85d7161bb454a46c3f5734.tar.zst ansible-clever-50a9e710f9cff8be9d85d7161bb454a46c3f5734.zip |
add dhall interface
Diffstat (limited to 'dhall/mkConfig.dhall')
-rw-r--r-- | dhall/mkConfig.dhall | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dhall/mkConfig.dhall b/dhall/mkConfig.dhall new file mode 100644 index 0000000..a904332 --- /dev/null +++ b/dhall/mkConfig.dhall | |||
@@ -0,0 +1,43 @@ | |||
1 | let Config = ./Config.dhall | ||
2 | |||
3 | in let Vault = ./Vault.dhall | ||
4 | |||
5 | in let Addon = ./addon/Addon.dhall | ||
6 | |||
7 | in let Environment = ./environment/Environment.dhall | ||
8 | |||
9 | in let nonifyEmpty = | ||
10 | λ(opt : Optional Text) | ||
11 | → Optional/fold Text opt Text (λ(x : Text) → x) "None" | ||
12 | |||
13 | in λ(vault : Vault) | ||
14 | → λ(app : Text) | ||
15 | → λ(entryPoint : Text) | ||
16 | → λ(syslogServer : Optional Text) | ||
17 | → λ(domain : Optional Text) | ||
18 | → λ(tasksFile : Optional Text) | ||
19 | → λ(addons : List Addon) | ||
20 | → { clever_app = | ||
21 | app | ||
22 | , clever_orga = | ||
23 | vault.organization | ||
24 | , clever_secret = | ||
25 | vault.secret | ||
26 | , clever_token = | ||
27 | vault.token | ||
28 | , clever_syslog_server = | ||
29 | nonifyEmpty syslogServer | ||
30 | , clever_domain = | ||
31 | nonifyEmpty domain | ||
32 | , clever_app_tasks_file = | ||
33 | nonifyEmpty tasksFile | ||
34 | , clever_entry_point = | ||
35 | entryPoint | ||
36 | , clever_metrics = | ||
37 | True | ||
38 | , clever_addons = | ||
39 | addons | ||
40 | , clever_env = | ||
41 | { FORCE_HTTPS = True } | ||
42 | } | ||
43 | : Config Environment | ||