install:
# Install ansible
- nix-env -i python2.7-ansible python2.7-ansible-lint
- - nix-env -if ./dhall-1.21.0.nix
+ - nix-env -if ./dhall-1.26.1.nix
# Check ansible version
- ansible --version
'';
};
in
- mkVersion "1.21.0" "0x7q6v1y62fq6724kx1hcfp1fcqv3lbv33ji6jzfd5y316a31r77"
+ mkVersion "1.26.1" "0sl4r3mfairgd6kn26hs1r1lkh8rn992grd73078rhqf5w90ag05"
-let Server = ./server/Server.dhall in { kong_servers : List Server }
+let Server = ./server/package.dhall in { kong_servers : List Server.Type }
+
--- /dev/null
+{ Vault = ./Vault.dhall
+, Config = ./Config.dhall
+, Server = ./server/package.dhall
+}
+++ /dev/null
- let Service = ./service/Service.dhall
-
-in { kong_app_admin_url :
- Text
- , kong_app_admin_apikey :
- Text
- , services :
- List Service
- }
+++ /dev/null
-{ Service = ./service/functions.dhall, mkServer = ./mkServer.dhall }
+++ /dev/null
- let Server = ./Server.dhall
-
-in let Service = ./service/Service.dhall
-
-in let Vault = ./../Vault.dhall
-
-in λ(vault : Vault)
- → λ(adminUrl : Text)
- → λ(services : List Service)
- → { kong_app_admin_url =
- adminUrl
- , kong_app_admin_apikey =
- vault.appAdminApiKey
- , services =
- services
- }
- : Server
--- /dev/null
+let Service = ./service/package.dhall
+
+let Server =
+ { kong_app_admin_url : Text
+ , kong_app_admin_apikey : Text
+ , services : List Service.Type
+ }
+
+let Vault = ./../Vault.dhall
+
+let mkServer =
+ λ(vault : Vault)
+ → λ(adminUrl : Text)
+ → λ(services : List Service.Type)
+ → { kong_app_admin_url = adminUrl
+ , kong_app_admin_apikey = vault.appAdminApiKey
+ , services = services
+ }
+ : Server
+
+in { Service = Service, Type = Server, mkServer = mkServer }
- let Plugin = ./plugin/Plugin.dhall
+let Plugin = ./plugin/Plugin.dhall
-in let Route = ./route/Route.dhall
+let Route = ./Route.dhall
in { name : Text, url : Text, plugins : List Plugin, routes : List Route }
+++ /dev/null
-{ Plugin = ./plugin/functions.dhall }
--- /dev/null
+let Plugin = ./plugin/package.dhall
+
+let Route = ./Route.dhall
+
+let Service =
+ { name : Text
+ , url : Text
+ , plugins : List Plugin.Type
+ , routes : List Route
+ }
+
+in { Type = Service, Route = Route, Plugin = Plugin }
+++ /dev/null
-let Plugin = ./Plugin.dhall
-
-let config = ./Config.dhall
-
-in λ(generator : Optional Text)
- → { name =
- "correlation-id"
- , config =
- config.CorrelationId
- { header_name =
- "X-correl"
- , echo_downstream =
- True
- , generator =
- Optional/fold
- Text
- generator
- Text
- (λ(t : Text) → t)
- "uuid#counter"
- }
- }
- : Plugin
--- /dev/null
+let Plugin = ./Plugin.dhall
+
+let config = ./Config.dhall
+
+in λ(generator : Optional Text)
+ → { name =
+ "correlation-id"
+ , config =
+ config.CorrelationId
+ { header_name =
+ "X-correl"
+ , echo_downstream =
+ True
+ , generator =
+ Optional/fold
+ Text
+ generator
+ Text
+ (λ(t : Text) → t)
+ "uuid#counter"
+ }
+ }
+ : Plugin
+++ /dev/null
-{ mkRequestTermination =
- ./mkRequestTermination.dhall
-, mkRequestTransformer =
- ./mkRequestTransformer.dhall
-, mkIPRestriction =
- ./mkIPRestriction.dhall
-, CorrelationId =
- ./CorrelationId.dhall
-}
--- /dev/null
+{ Type = ./Plugin.dhall
+, mkRequestTermination = ./mkRequestTermination.dhall
+, mkRequestTransformer = ./mkRequestTransformer.dhall
+, mkIPRestriction = ./mkIPRestriction.dhall
+, correlationId = ./correlationId.dhall
+}