aboutsummaryrefslogtreecommitdiffhomepage
path: root/dhall/mkConfig.dhall
diff options
context:
space:
mode:
authorHussein A <44173825+haitlahcen@users.noreply.github.com>2018-11-20 16:44:40 +0100
committerGitHub <noreply@github.com>2018-11-20 16:44:40 +0100
commit5485dbc4db3e141673457475bcda5fc88057739f (patch)
treeda805be5a35221b8818581b404048999363b7291 /dhall/mkConfig.dhall
parentb570ba036adb74095c712705d686f630d41f4ed0 (diff)
parentd1f83c592b92a68f7f968eac0323ee7d7fd0ee47 (diff)
downloadansible-clever-5485dbc4db3e141673457475bcda5fc88057739f.tar.gz
ansible-clever-5485dbc4db3e141673457475bcda5fc88057739f.tar.zst
ansible-clever-5485dbc4db3e141673457475bcda5fc88057739f.zip
Merge pull request #18 from haitlahcen/dhall-interfacev1.9
add dhall interface
Diffstat (limited to 'dhall/mkConfig.dhall')
-rw-r--r--dhall/mkConfig.dhall44
1 files changed, 44 insertions, 0 deletions
diff --git a/dhall/mkConfig.dhall b/dhall/mkConfig.dhall
new file mode 100644
index 0000000..5040f1c
--- /dev/null
+++ b/dhall/mkConfig.dhall
@@ -0,0 +1,44 @@
1 let Config = ./Config.dhall
2
3in let Vault = ./Vault.dhall
4
5in let Addon = ./addon/Addon.dhall
6
7in let Environment = ./environment/Environment.dhall
8
9in let nonifyEmpty =
10 λ(opt : Optional Text)
11 → Optional/fold Text opt Text (λ(x : Text) → x) "None"
12
13in λ(vault : Vault)
14 → λ(app : Text)
15 → λ(entryPoint : Text)
16 → λ(metrics : Bool)
17 → λ(syslogServer : Optional Text)
18 → λ(domain : Optional Text)
19 → λ(tasksFile : Optional Text)
20 → λ(addons : List Addon)
21 → { clever_app =
22 app
23 , clever_orga =
24 vault.organization
25 , clever_secret =
26 vault.secret
27 , clever_token =
28 vault.token
29 , clever_syslog_server =
30 nonifyEmpty syslogServer
31 , clever_domain =
32 nonifyEmpty domain
33 , clever_app_tasks_file =
34 nonifyEmpty tasksFile
35 , clever_entry_point =
36 entryPoint
37 , clever_metrics =
38 metrics
39 , clever_addons =
40 addons
41 , clever_env =
42 { FORCE_HTTPS = True }
43 }
44 : Config Environment