diff options
author | paulrbr-fl <43074087+paulrbr-fl@users.noreply.github.com> | 2019-09-27 18:17:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-27 18:17:21 +0200 |
commit | a7dd06f0cc90aaa8c81f5243e74e83f22c3119f4 (patch) | |
tree | 3fe48c47e7a942bd4c86152ad50ce5693b5e056a | |
parent | ccb3f886e72c9b315e064678387f0cbd59920c1e (diff) | |
parent | 592f1948b452394fec3d7c6e776d760ba16b231b (diff) | |
download | ansible-rundeck-jobs-0.5.tar.gz ansible-rundeck-jobs-0.5.tar.zst ansible-rundeck-jobs-0.5.zip |
Merge pull request #6 from paulrbr-fl/add-dhall-configv0.5
dhall: Add a basic dhall type to be able to configure the role
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | dhall/Config.dhall | 15 | ||||
-rw-r--r-- | dhall/Types.dhall | 1 | ||||
-rw-r--r-- | dhall/Vault.dhall | 1 |
4 files changed, 19 insertions, 0 deletions
@@ -19,6 +19,8 @@ Role Variables | |||
19 | * `rundeck_remove_missing` Whether to delete jobs present in rundeck and not in file. Defaults to true. | 19 | * `rundeck_remove_missing` Whether to delete jobs present in rundeck and not in file. Defaults to true. |
20 | * `rundeck_jobs_group` the group of job to check for removal | 20 | * `rundeck_jobs_group` the group of job to check for removal |
21 | 21 | ||
22 | 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. | ||
23 | |||
22 | Dependencies | 24 | Dependencies |
23 | ------------ | 25 | ------------ |
24 | 26 | ||
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 @@ | |||
1 | { rundeck_jobs_path : | ||
2 | Text | ||
3 | , rundeck_project : | ||
4 | Text | ||
5 | , rundeck_api_url : | ||
6 | Text | ||
7 | , rundeck_api_token : | ||
8 | Text | ||
9 | , rundeck_api_version : | ||
10 | Optional Natural | ||
11 | , rundeck_remove_missing : | ||
12 | Optional Bool | ||
13 | , rundeck_jobs_group : | ||
14 | Optional Text | ||
15 | } | ||
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 } | |||