From 592f1948b452394fec3d7c6e776d760ba16b231b Mon Sep 17 00:00:00 2001 From: Paul Bonaud Date: Fri, 27 Sep 2019 17:27:42 +0200 Subject: dhall: Add a basic dhall type to be able to configure the role This commit adds a basic Dhall type for an easier usage of this role. --- README.md | 2 ++ dhall/Config.dhall | 15 +++++++++++++++ dhall/Types.dhall | 1 + dhall/Vault.dhall | 1 + 4 files changed, 19 insertions(+) create mode 100644 dhall/Config.dhall create mode 100644 dhall/Types.dhall create mode 100644 dhall/Vault.dhall diff --git a/README.md b/README.md index 71d4acc..5a99be8 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,8 @@ Role Variables * `rundeck_remove_missing` Whether to delete jobs present in rundeck and not in file. Defaults to true. * `rundeck_jobs_group` the group of job to check for removal +A [dhall](https://dhall-lang.org/) Type representing the roles' variables is available in the `./dhall/Config.dhall` file to help you configure your projects with some type checking. + Dependencies ------------ diff --git a/dhall/Config.dhall b/dhall/Config.dhall new file mode 100644 index 0000000..1c6202c --- /dev/null +++ b/dhall/Config.dhall @@ -0,0 +1,15 @@ +{ rundeck_jobs_path : + Text +, rundeck_project : + Text +, rundeck_api_url : + Text +, rundeck_api_token : + Text +, rundeck_api_version : + Optional Natural +, rundeck_remove_missing : + Optional Bool +, rundeck_jobs_group : + Optional Text +} diff --git a/dhall/Types.dhall b/dhall/Types.dhall new file mode 100644 index 0000000..2a6fa6e --- /dev/null +++ b/dhall/Types.dhall @@ -0,0 +1 @@ +{ Vault = ./Vault.dhall, Config = ./Config.dhall } diff --git a/dhall/Vault.dhall b/dhall/Vault.dhall new file mode 100644 index 0000000..089da4e --- /dev/null +++ b/dhall/Vault.dhall @@ -0,0 +1 @@ +{ apiToken : Text } -- cgit v1.2.3