Releases: fretlink/ansible-clever
Dhall 1.26.1 bindings
This release updates dhall binding to 1.26.1
The main change is that now types and terms can be bundled together.
Breaking changes
- you need dhall 1.26.1
- the import is now
package.dhall
instead oftypes.dhall
andfunctions.dhall
- The new structure is:
Addon.Type
: the addon typeAddon.postgresql
: the postgresql addon valueConfig.Type
: the config typeConfig.mkConfig
: the config builder functionVault
: the vault type
Compatibility release
This release makes the scripts used in the role compatible with simplified version of grep
(I.e. busybox's one which does not have long options in CLI commands)
Revert back to manual polling instead of 'clever deploy' command
in v1.10 we started using the clever deploy
command to launch deployments.
It seems the command is not always reliable (sometimes stuck for ever, sometimes returning even when deployment is not finished...) this is why we are back to a manual script to poll clever activity
to get the deployment status.
The ansible tasks now waits for up to 40 minutes (as opposed to 10 minutes back in the days of polling system).
It should help to have a better CI status more in sync with Clever deployment status.
(+ upgrade to latest 1.4.2 clever cli tools)
Fix metrics setup and remove sshKey
v1.23
introduced a regression in metrics support. It has been fixed.
The sshKeys
value in the dhall interface has been removed as it's not used directly by the role. It has been moved to ci-commons.
Dhall interface rework & metrics setup update
The main part is an update of the dhall interface. The builder function now creates a minimal record that the caller can use as base, instead of taking all arguments. Optional fields are now optional and not nonified
. org_id
is not part of the vault anymore, as it's not confidential info.
The vault now stores a SSH private key. It may move to ci-commons
at some point, or at least turn optional.
Metrics management is now done with CC_DISABLE_METRICS
, instead of the deprecated ENABLE_METRICS
).
Fix shell command for addons broken on some systems since 1.20
Merge pull request #44 from gaetanfl/fix_shell_pipefail use bash with -o pipefail
Bugfix release on deployment errors
Bugfix release
- deployment failures where not properly detected. This is fixed with a more robust condition of failure done in PR #42
Dhall interface upgrade
⚠️ this release has non compatible changes in the dhall interface code ⚠️
The dhall code functions to generate a correct ansible configuration for this role has been update to be compatible with the latest Dhall-lang version (v6.0.0 of the language)
You will thus need to check your dhall code using this interface for compatibility
Always change the clever.json file and link the correct application
Before this release the .clever.json
(the link to the correct Clever application) was only created if the file was not present. In some cases it is interesting to version this .clever.json
(to target the test application for instance) directly in a project's repository. Doing so led to deployment problems in other environment.
This release thus forces the creation of the .clever.json
file no matter what.
Happy deploy 🚀
Use full path for clever helper
When we use nix for deploying path is somehow complicated. This PR use absolute path to call helpers.