]> git.immae.eu Git - github/fretlink/ansible-clever.git/log
github/fretlink/ansible-clever.git
4 years agoQuote env vars to support multiline values 57/head
Clement Delafargue [Mon, 25 Nov 2019 12:51:24 +0000 (13:51 +0100)] 
Quote env vars to support multiline values

clever-tools now supports multiline env vars. It did so by supporting
quotes in the formats it reads from.
This commit quotes the exported values using the `tojson` filter.

Of course, a better solution would be for clever env to directly read
json value, but it's not there yet

4 years agoMerge pull request #58 from paulrbr-fl/fix-ci
paulrbr-fl [Tue, 26 Nov 2019 16:49:49 +0000 (17:49 +0100)] 
Merge pull request #58 from paulrbr-fl/fix-ci

ci: fix nix version and nix channel version

4 years agoci: fix nix version and nix channel version 58/head
Paul Bonaud [Mon, 25 Nov 2019 14:05:51 +0000 (15:05 +0100)] 
ci: fix nix version and nix channel version

In order to avoid having bad surprises with automatic updates let's
fix the nix channel version. For now the default travis behavior is to
use `nixpkgs-unstable` (see
https://docs.travis-ci.com/user/languages/nix#overview).

5 years agoMerge pull request #56 from paulrbr-fl/moar-compat v2.1
paulrbr-fl [Fri, 11 Oct 2019 16:08:03 +0000 (18:08 +0200)] 
Merge pull request #56 from paulrbr-fl/moar-compat

fix: addon environment variables fetch for clever >= 1.5.0

5 years agofix: addon environment variables fetch for clever >= 1.5.0 56/head
Paul Bonaud [Fri, 11 Oct 2019 15:44:42 +0000 (17:44 +0200)] 
fix: addon environment variables fetch for clever >= 1.5.0

It seems the output of `clever env` has changed and now env values are
surrounded by quotes with the latest 1.5.0 clever tools version.

We used to add quotes ourselves because they were missing in the
output. So this commit is adapting its parsing depending of the clever
tools' version.

5 years agoMerge pull request #54 from clementd-fretlink/polykinds v2.0
Clément Delafargue [Mon, 7 Oct 2019 07:55:09 +0000 (09:55 +0200)] 
Merge pull request #54 from clementd-fretlink/polykinds

Migrate to dhall 1.26.1 and merge types and terms

5 years agoMigrate to dhall 1.26.1 and merge types and terms polykinds 54/head v2.0-test-clementd
Clement Delafargue [Wed, 2 Oct 2019 09:02:54 +0000 (11:02 +0200)] 
Migrate to dhall 1.26.1 and merge types and terms

5 years agoMerge pull request #53 from paulrbr-fl/moar-compat v1.26
paulrbr-fl [Fri, 6 Sep 2019 09:16:58 +0000 (11:16 +0200)] 
Merge pull request #53 from paulrbr-fl/moar-compat

scripts: use short options instead of long ones

5 years agoci: fix nix packages due to Travis nix update to 19.09 packages 53/head
Paul Bonaud [Fri, 6 Sep 2019 09:09:52 +0000 (11:09 +0200)] 
ci: fix nix packages due to Travis nix update to 19.09 packages

5 years agoscripts: use short options instead of long ones
Paul Bonaud [Fri, 6 Sep 2019 08:53:58 +0000 (10:53 +0200)] 
scripts: use short options instead of long ones

In order to be compatible with more `grep` versions (notably busybox
ones which don't have long option names in our new CI environments) we
need to use short cli options.

5 years agoMerge pull request #51 from paulrbr-fl/clever-deploy-back-to-polling v1.25
paulrbr-fl [Mon, 5 Aug 2019 15:21:57 +0000 (17:21 +0200)] 
Merge pull request #51 from paulrbr-fl/clever-deploy-back-to-polling

clevertools: upgrade to latest stable version as default

5 years agoclevertools: upgrade to latest stable version as default 51/head
Paul Bonaud [Mon, 5 Aug 2019 15:16:41 +0000 (17:16 +0200)] 
clevertools: upgrade to latest stable version as default

Upgrade to 1.4.2 as default version installed by the role

5 years agoMerge pull request #50 from paulrbr-fl/clever-deploy-back-to-polling
paulrbr-fl [Thu, 1 Aug 2019 15:59:08 +0000 (17:59 +0200)] 
Merge pull request #50 from paulrbr-fl/clever-deploy-back-to-polling

deploy: add a timeout in the polling waiting script

5 years agodeploy: add a timeout in the polling waiting script 50/head
Paul Bonaud [Thu, 1 Aug 2019 08:38:53 +0000 (10:38 +0200)] 
deploy: add a timeout in the polling waiting script

5 years agoMerge pull request #49 from paulrbr-fl/clever-deploy-back-to-polling
paulrbr-fl [Wed, 31 Jul 2019 12:28:10 +0000 (14:28 +0200)] 
Merge pull request #49 from paulrbr-fl/clever-deploy-back-to-polling

deploy: revert back to git push + polling

5 years agolint(scripts): apply shellcheck suggestions on dhall checking script 49/head
Paul Bonaud [Wed, 31 Jul 2019 08:49:36 +0000 (10:49 +0200)] 
lint(scripts): apply shellcheck suggestions on dhall checking script

5 years agoci: add shellcheck to lint shell scripts in automatic tests
Paul Bonaud [Wed, 31 Jul 2019 08:37:00 +0000 (10:37 +0200)] 
ci: add shellcheck to lint shell scripts in automatic tests

5 years agodeploy: revert back to git push + polling
Paul Bonaud [Tue, 30 Jul 2019 15:57:55 +0000 (17:57 +0200)] 
deploy: revert back to git push + polling

In #19 we removed the polling script to rely on the clever cli's
ability to wait on `clever deploy` command.

After more than 6 months of experimentation it seems the command is
still not reliable (sometimes the command never returns, sometimes it
returns even when the deployment has finished..).

Thus we are reverting back to our manual process of polling `clever
activity` every 5 seconds.

The timeout for this polling is set at the Ansible level (not in the
bash script) and set for 40 minutes. This should give enough time for
any of our applications to deploy.

5 years agoMerge pull request #48 from clementd-fretlink/remove-ssh-key v1.24
Clément Delafargue [Thu, 4 Jul 2019 08:11:36 +0000 (10:11 +0200)] 
Merge pull request #48 from clementd-fretlink/remove-ssh-key

Remove `sshKey` from the vault type

5 years agoRemove `sshKey` from the vault type 48/head
Clement Delafargue [Thu, 4 Jul 2019 08:00:16 +0000 (10:00 +0200)] 
Remove `sshKey` from the vault type

It's not actually used by the role, but by code that uses this role.

5 years agoMerge pull request #47 from clementd-fretlink/debug
Clément Delafargue [Thu, 4 Jul 2019 07:35:28 +0000 (09:35 +0200)] 
Merge pull request #47 from clementd-fretlink/debug

Fix `CC_DISABLE_METRICS` computation

5 years agoFix `CC_DISABLE_METRICS` computation 47/head
Clement Delafargue [Wed, 3 Jul 2019 15:18:38 +0000 (17:18 +0200)] 
Fix `CC_DISABLE_METRICS` computation

5 years agoMerge pull request #46 from clementd-fretlink/cleanup v1.23
Clément Delafargue [Tue, 2 Jul 2019 08:52:30 +0000 (10:52 +0200)] 
Merge pull request #46 from clementd-fretlink/cleanup

update metrics and entrypoint default definitions

5 years agoClever Cloud metrics are now enabled by default 46/head
Clement Delafargue [Mon, 1 Jul 2019 15:31:30 +0000 (17:31 +0200)] 
Clever Cloud metrics are now enabled by default

5 years agoMerge pull request #45 from clementd-fretlink/new-clever-vault
Clément Delafargue [Mon, 1 Jul 2019 15:03:31 +0000 (17:03 +0200)] 
Merge pull request #45 from clementd-fretlink/new-clever-vault

Clean up `dhall` type definitions

5 years agodhall: remove optional arguments from mkConfig 45/head
Clement Delafargue [Mon, 1 Jul 2019 14:35:23 +0000 (16:35 +0200)] 
dhall: remove optional arguments from mkConfig

It was just constructing a record without adding any information. Now
it constructs a record from its mandatory parts. The caller can then
override fields as they please.

5 years agodhall: expose optional fields as optional values
Clement Delafargue [Mon, 1 Jul 2019 14:32:58 +0000 (16:32 +0200)] 
dhall: expose optional fields as optional values

Instead of `nonifying` them

5 years agoRemove default environment from Dhall config
Clement Delafargue [Mon, 1 Jul 2019 13:46:31 +0000 (15:46 +0200)] 
Remove default environment from Dhall config

5 years agoremove org_id from vault type, add sshKey in vault
Clement Delafargue [Mon, 1 Jul 2019 12:55:17 +0000 (14:55 +0200)] 
remove org_id from vault type, add sshKey in vault

5 years agoMerge pull request #44 from gaetanfl/fix_shell_pipefail v1.22
Gaëtan [Tue, 11 Jun 2019 15:51:19 +0000 (17:51 +0200)] 
Merge pull request #44 from gaetanfl/fix_shell_pipefail

use bash with -o pipefail

5 years agouse bash with -o pipefail 44/head
Gaëtan Duchaussois [Tue, 11 Jun 2019 15:24:05 +0000 (17:24 +0200)] 
use bash with -o pipefail

5 years agoMerge pull request #42 from paulrbr-fl/deploy-errors-on-application-is-up-to-date v1.21
paulrbr-fl [Mon, 13 May 2019 13:35:36 +0000 (15:35 +0200)] 
Merge pull request #42 from paulrbr-fl/deploy-errors-on-application-is-up-to-date

fix(deploy): fail the task correctly when last deploymt failed

5 years agofix(deploy): fail the task correctly when last deploymt failed 42/head
Paul Bonaud [Mon, 13 May 2019 13:10:19 +0000 (15:10 +0200)] 
fix(deploy): fail the task correctly when last deploymt failed

5 years agoMerge pull request #41 from paulrbr-fl/dhall-version-upgrade v1.20
paulrbr-fl [Fri, 26 Apr 2019 18:44:58 +0000 (20:44 +0200)] 
Merge pull request #41 from paulrbr-fl/dhall-version-upgrade

dhall(upgrade): upgrade code to be compatible with dhall 1.21.0

5 years agodhall(upgrade): upgrade code to be compatible with dhall 1.21.0 41/head
Paul Bonaud [Fri, 26 Apr 2019 16:19:05 +0000 (18:19 +0200)] 
dhall(upgrade): upgrade code to be compatible with dhall 1.21.0

5 years agoMerge pull request #40 from gaetanfl/fix_ansible_lint_4.1
Gaëtan [Tue, 5 Mar 2019 12:41:58 +0000 (13:41 +0100)] 
Merge pull request #40 from gaetanfl/fix_ansible_lint_4.1

fix(lint): ansible lint 4.1.0 compatibiliy

5 years agofix(lint): ansible 4.1.0 compatibiliy 40/head
Gaëtan Duchaussois [Tue, 5 Mar 2019 10:54:33 +0000 (11:54 +0100)] 
fix(lint): ansible 4.1.0 compatibiliy

5 years agoMerge pull request #39 from paulrbr-fl/fix-login v1.19
paulrbr-fl [Tue, 26 Feb 2019 18:24:31 +0000 (19:24 +0100)] 
Merge pull request #39 from paulrbr-fl/fix-login

Fix login by removing any existing linked app

5 years agologin: make sure no existing apps are linked to the clever tools 39/head
Paul Bonaud [Tue, 26 Feb 2019 18:18:49 +0000 (19:18 +0100)] 
login: make sure no existing apps are linked to the clever tools

5 years agoRevert "login: force the `.clever.json` file to be created"
Paul Bonaud [Tue, 26 Feb 2019 18:18:26 +0000 (19:18 +0100)] 
Revert "login: force the `.clever.json` file to be created"

This reverts commit 85d1a7838d032ec7dfe858fce5dca3f5535199e4.

5 years agoMerge pull request #38 from paulrbr-fl/fix-login
paulrbr-fl [Tue, 26 Feb 2019 08:34:21 +0000 (09:34 +0100)] 
Merge pull request #38 from paulrbr-fl/fix-login

login: force the `.clever.json` file to be created

5 years agologin: force the `.clever.json` file to be created 38/head
Paul Bonaud [Tue, 26 Feb 2019 08:16:11 +0000 (09:16 +0100)] 
login: force the `.clever.json` file to be created

In case a project already has a `.clever.json` file (for debugging
purpose to communicate with dev environment for instance) this step
was never done because of the `creates:`.

Removing it forces the role to always create a new clever.json file.

5 years agoMerge pull request #37 from gaetanfl/fix_path v1.18
Gaëtan [Fri, 22 Feb 2019 15:56:46 +0000 (16:56 +0100)] 
Merge pull request #37 from gaetanfl/fix_path

Missing /

5 years agoMissing / 37/head
Gaëtan Duchaussois [Fri, 22 Feb 2019 15:52:22 +0000 (16:52 +0100)] 
Missing /

5 years agoMerge pull request #36 from gaetanfl/fix_typo
Gaëtan [Fri, 22 Feb 2019 15:34:22 +0000 (16:34 +0100)] 
Merge pull request #36 from gaetanfl/fix_typo

Fix duplicate version number in url

5 years agoFix duplicate version number in url 36/head
Gaëtan Duchaussois [Fri, 22 Feb 2019 15:29:01 +0000 (16:29 +0100)] 
Fix duplicate version number in url

5 years agoMerge pull request #35 from gaetanfl/use_path_tool
Gaëtan [Thu, 21 Feb 2019 16:59:19 +0000 (17:59 +0100)] 
Merge pull request #35 from gaetanfl/use_path_tool

use full path for clever helper invocation

5 years agoliniting 35/head
Gaëtan Duchaussois [Thu, 21 Feb 2019 16:40:39 +0000 (17:40 +0100)] 
liniting

5 years agouse full path for clever helper invocation
Gaëtan Duchaussois [Thu, 21 Feb 2019 16:16:23 +0000 (17:16 +0100)] 
use full path for clever helper invocation

5 years agoMerge pull request #34 from paulrbr-fl/domain-case v1.17
paulrbr-fl [Thu, 31 Jan 2019 17:41:52 +0000 (18:41 +0100)] 
Merge pull request #34 from paulrbr-fl/domain-case

domain: DNS names are case insensitive

5 years agodomain: DNS names are case insensitive 34/head
Paul Bonaud [Thu, 31 Jan 2019 17:37:02 +0000 (18:37 +0100)] 
domain: DNS names are case insensitive

5 years agoMerge pull request #33 from paulrbr-fl/successful-deploy-up-to-date v1.16
paulrbr-fl [Wed, 16 Jan 2019 15:13:39 +0000 (16:13 +0100)] 
Merge pull request #33 from paulrbr-fl/successful-deploy-up-to-date

deploy: check "up-to-date" error to succeeded if last commit is OK

5 years agodeploy: check "up-to-date" error to succeeded if last commit is OK 33/head
Paul Bonaud [Wed, 16 Jan 2019 07:58:43 +0000 (08:58 +0100)] 
deploy: check "up-to-date" error to succeeded if last commit is OK

5 years agoMerge pull request #22 from paulrbr-fl/fix-v1.10 v1.15
paulrbr-fl [Mon, 14 Jan 2019 10:32:47 +0000 (11:32 +0100)] 
Merge pull request #22 from paulrbr-fl/fix-v1.10

Upgrade clever tools to latest version

5 years agofix: Fail module takes one argument 22/head
Paul Bonaud [Wed, 21 Nov 2018 16:59:14 +0000 (17:59 +0100)] 
fix: Fail module takes one argument

5 years agodeploy_task: Update clever CLI tools and use it instead of git push
Paul Bonaud [Wed, 21 Nov 2018 12:20:56 +0000 (13:20 +0100)] 
deploy_task: Update clever CLI tools and use it instead of git push

Updating to latest version of 1.1.1 helps to have a stable `clever
deploy` command.

This commit relies on the output of the command instead of manually
pooling the results with `clever activity` command.

5 years agoMerge pull request #32 from clementd-fretlink/quote-env v1.14
paulrbr-fl [Mon, 7 Jan 2019 11:10:44 +0000 (12:10 +0100)] 
Merge pull request #32 from clementd-fretlink/quote-env

fix(deploy): properly quote variables in environment files

5 years agofix(deploy): properly quote variables in environment files 32/head
Clement Delafargue [Mon, 7 Jan 2019 11:03:45 +0000 (12:03 +0100)] 
fix(deploy): properly quote variables in environment files

adding exports in the env file also quotes the variable values

5 years agotags: add clever-env tag to post-deploy tasks
Paul Bonaud [Sun, 6 Jan 2019 22:02:47 +0000 (23:02 +0100)] 
tags: add clever-env tag to post-deploy tasks

5 years agoMerge pull request #31 from paulrbr-fl/fix-tags
paulrbr-fl [Sun, 6 Jan 2019 21:10:22 +0000 (22:10 +0100)] 
Merge pull request #31 from paulrbr-fl/fix-tags

fix: statically include sub tasks for 'tags' to work

5 years agofix: statically include sub tasks for 'tags' to work 31/head
Paul Bonaud [Fri, 4 Jan 2019 17:31:43 +0000 (18:31 +0100)] 
fix: statically include sub tasks for 'tags' to work

In ansible the `include_tasks` loads the tasks dynamically. Thus it
does not apply the tag specified at the include level to all sub
tasks.

In order to make sure all included tasks inherit the specified `tags:`
we need to include the tasks files "statically". It is very similar to
cases where we have a `when:` condition that we want to apply to all
included subtasks. cf https://docs.ansible.com/ansible/latest/user_guide/playbooks_conditionals.html#applying-when-to-roles-imports-and-includes

5 years agoMerge pull request #30 from paulrbr-fl/rename-entry-point
paulrbr-fl [Thu, 27 Dec 2018 14:28:57 +0000 (15:28 +0100)] 
Merge pull request #30 from paulrbr-fl/rename-entry-point

app: rename `clever_entry_point`. It's only used by Haskell apps

5 years agoapp: rename `clever_entry_point`. It's only used by Haskell apps 30/head
Paul Bonaud [Thu, 27 Dec 2018 10:47:42 +0000 (11:47 +0100)] 
app: rename `clever_entry_point`. It's only used by Haskell apps

5 years agoMerge pull request #29 from paulrbr-fl/missing-chdir v1.13
paulrbr-fl [Thu, 6 Dec 2018 11:28:47 +0000 (12:28 +0100)] 
Merge pull request #29 from paulrbr-fl/missing-chdir

fix: Yet again a missing chdir for "clever" command

5 years agofix: Yet again a missing chdir for "clever" command 29/head
Paul Bonaud [Thu, 6 Dec 2018 11:25:16 +0000 (12:25 +0100)] 
fix: Yet again a missing chdir for "clever" command

This is a followup of #26

5 years agoMerge pull request #28 from paulrbr-fl/fix-post-deploy
paulrbr-fl [Fri, 30 Nov 2018 17:39:37 +0000 (18:39 +0100)] 
Merge pull request #28 from paulrbr-fl/fix-post-deploy

Fix: post depoy tasks were not launched. This fixes it.

5 years agoFix: post depoy tasks were not launched. This fixes it. 28/head
Paul Bonaud [Fri, 30 Nov 2018 17:36:03 +0000 (18:36 +0100)] 
Fix: post depoy tasks were not launched. This fixes it.

5 years agoMerge pull request #27 from paulrbr-fl/chdir-all-the-things
paulrbr-fl [Fri, 30 Nov 2018 16:05:17 +0000 (17:05 +0100)] 
Merge pull request #27 from paulrbr-fl/chdir-all-the-things

fix(deploy): Yet again a missing chdir to execute from app root

5 years agofix(deploy): Yet again a missing chdir to execute from app root 27/head
Paul Bonaud [Fri, 30 Nov 2018 15:53:40 +0000 (16:53 +0100)] 
fix(deploy): Yet again a missing chdir to execute from app root

5 years agoMerge pull request #26 from paulrbr-fl/chdir-all-the-things
paulrbr-fl [Fri, 30 Nov 2018 15:35:28 +0000 (16:35 +0100)] 
Merge pull request #26 from paulrbr-fl/chdir-all-the-things

fix(deploy): Make sure to execute clever commands in app_root dir

5 years agofix(deploy): Make sure to execute clever commands in app_root dir 26/head
Paul Bonaud [Fri, 30 Nov 2018 14:30:15 +0000 (15:30 +0100)] 
fix(deploy): Make sure to execute clever commands in app_root dir

5 years agoMerge pull request #25 from paulrbr-fl/feat-get-env
paulrbr-fl [Fri, 30 Nov 2018 15:15:20 +0000 (16:15 +0100)] 
Merge pull request #25 from paulrbr-fl/feat-get-env

feat(post_deploy): Add a post deploy task to fetch deployed env

5 years agofeat(post_deploy): Add a post deploy task to fetch deployed env 25/head
Paul Bonaud [Fri, 30 Nov 2018 14:57:33 +0000 (15:57 +0100)] 
feat(post_deploy): Add a post deploy task to fetch deployed env

In some cases you might need to retrieve the ENV which is currently in
use by your clever application recently deployed.

If you specify a `clever_env_output_file` that is exactly what you
will get!

5 years agoMerge pull request #24 from paulrbr-fl/revert-clever-cli-update v1.11
paulrbr-fl [Fri, 30 Nov 2018 13:43:09 +0000 (14:43 +0100)] 
Merge pull request #24 from paulrbr-fl/revert-clever-cli-update

Reverting upgrade of clever-tools CLI

5 years agoRevert "Merge pull request #19 from paulrbr-fl/update-clever-tools" 24/head
Paul Bonaud [Fri, 30 Nov 2018 13:38:25 +0000 (14:38 +0100)] 
Revert "Merge pull request #19 from paulrbr-fl/update-clever-tools"

This reverts commit 695ceaa28821660e17a1cf819cffebe1b5d8c7ca, reversing
changes made to 5485dbc4db3e141673457475bcda5fc88057739f.

5 years agoRevert "Merge pull request #20 from paulrbr-fl/update-clever-tools"
Paul Bonaud [Fri, 30 Nov 2018 13:38:01 +0000 (14:38 +0100)] 
Revert "Merge pull request #20 from paulrbr-fl/update-clever-tools"

This reverts commit b17a839d622bdb36ddbe2e0667559c33e9b7fd8a, reversing
changes made to 695ceaa28821660e17a1cf819cffebe1b5d8c7ca.

6 years agoMerge pull request #21 from haitlahcen/fix-scripts
Hussein A [Thu, 22 Nov 2018 07:26:41 +0000 (08:26 +0100)] 
Merge pull request #21 from haitlahcen/fix-scripts

avoid hardcoded bash path in scripts

6 years agoavoid hardcoded bash path in scripts 21/head
Hussein Ait-Lahcen [Wed, 21 Nov 2018 23:03:33 +0000 (00:03 +0100)] 
avoid hardcoded bash path in scripts

6 years agoMerge pull request #20 from paulrbr-fl/update-clever-tools v1.10
paulrbr-fl [Wed, 21 Nov 2018 17:05:49 +0000 (18:05 +0100)] 
Merge pull request #20 from paulrbr-fl/update-clever-tools

Fix: this is a 🤦‍♂️  PR fixing a bug introduced in v1.10

6 years agofix: Fail module takes one argument 20/head
Paul Bonaud [Wed, 21 Nov 2018 16:59:14 +0000 (17:59 +0100)] 
fix: Fail module takes one argument

6 years agoMerge pull request #19 from paulrbr-fl/update-clever-tools
paulrbr-fl [Wed, 21 Nov 2018 15:35:13 +0000 (16:35 +0100)] 
Merge pull request #19 from paulrbr-fl/update-clever-tools

deploy_task: Update clever CLI tools and use it instead of git push

6 years agodeploy_task: Update clever CLI tools and use it instead of git push 19/head
Paul Bonaud [Wed, 21 Nov 2018 12:20:56 +0000 (13:20 +0100)] 
deploy_task: Update clever CLI tools and use it instead of git push

Updating to latest version of 1.1.1 helps to have a stable `clever
deploy` command.

This commit relies on the output of the command instead of manually
pooling the results with `clever activity` command.

6 years agoMerge pull request #18 from haitlahcen/dhall-interface v1.9
Hussein A [Tue, 20 Nov 2018 15:44:40 +0000 (16:44 +0100)] 
Merge pull request #18 from haitlahcen/dhall-interface

add dhall interface

6 years agoupdate default value (readme aswell) for `clever_metrics` 18/head
Hussein Ait-Lahcen [Tue, 20 Nov 2018 11:01:58 +0000 (12:01 +0100)] 
update default value (readme aswell) for `clever_metrics`

6 years agoadd travis ci step for typechecking dhall
Hussein Ait-Lahcen [Mon, 19 Nov 2018 17:57:33 +0000 (18:57 +0100)] 
add travis ci step for typechecking dhall

6 years agoadd dhall interface
Hussein Ait-Lahcen [Mon, 19 Nov 2018 14:50:51 +0000 (15:50 +0100)] 
add dhall interface

6 years agoMerge pull request #17 from gaetanfl/change_clever_app_root_default v1.8
Gaëtan [Wed, 14 Nov 2018 14:46:44 +0000 (15:46 +0100)] 
Merge pull request #17 from gaetanfl/change_clever_app_root_default

change default value for clever_app_root

6 years agochange default value for clever_app_root 17/head
Gaëtan Duchaussois [Wed, 14 Nov 2018 14:28:54 +0000 (15:28 +0100)] 
change default value for clever_app_root

6 years agoMerge pull request #16 from paulrbr-fl/fix-clever-app-root-for-good v1.7
paulrbr-fl [Mon, 5 Nov 2018 13:28:02 +0000 (14:28 +0100)] 
Merge pull request #16 from paulrbr-fl/fix-clever-app-root-for-good

fix: 😬 really fix the usage of "clever_app_root" when waiting deploy

6 years agofix: 😬 really fix the usage of "clever_app_root" when waiting deploy 16/head
Paul Bonaud [Mon, 5 Nov 2018 13:02:21 +0000 (14:02 +0100)] 
fix: 😬 really fix the usage of "clever_app_root" when waiting deploy

Followup after the fix of #15 it was still missing another case of
"git" usage.

This should be the last fix about this variable 🤞.

6 years agoMerge pull request #15 from paulrbr-fl/fix-git-push v1.6
paulrbr-fl [Mon, 5 Nov 2018 09:47:05 +0000 (10:47 +0100)] 
Merge pull request #15 from paulrbr-fl/fix-git-push

fix: clever_app_root is provided & exec is outside of "parent dir"

6 years agofix: clever_app_root is provided & exec is outside of "parent dir" 15/head
Paul Bonaud [Mon, 5 Nov 2018 09:21:02 +0000 (10:21 +0100)] 
fix: clever_app_root is provided & exec is outside of "parent dir"

Imagine such a usecase:
- project is in `/project`
- executing Ansible in `/ansible` with `clever_app_root: /project`
will fail deploying with the git push with the following error:
```
Not a git repository (or any of the parent directories): .git"
```

This PR fixes this.

6 years agoMerge pull request #14 from paulrbr-fl/rename-syslog-server-var v1.5
paulrbr-fl [Thu, 4 Oct 2018 14:09:57 +0000 (16:09 +0200)] 
Merge pull request #14 from paulrbr-fl/rename-syslog-server-var

vars: add a clever_syslog_server variable replacing syslog_server

6 years agovars: add a clever_syslog_server variable replacing syslog_server 14/head
Paul Bonaud [Thu, 4 Oct 2018 13:51:04 +0000 (15:51 +0200)] 
vars: add a clever_syslog_server variable replacing syslog_server

All variables "namespaced" with the role name is helpful to read
"client" configurations

6 years agoMerge pull request #13 from paulrbr-fl/prefix-domain-variable v1.4
paulrbr-fl [Fri, 28 Sep 2018 09:31:35 +0000 (11:31 +0200)] 
Merge pull request #13 from paulrbr-fl/prefix-domain-variable

domain: allow the domain to be specified via clever_domain variable

6 years agodomain: allow the domain to be specified via clever_domain variable 13/head
Paul Bonaud [Fri, 28 Sep 2018 09:14:12 +0000 (11:14 +0200)] 
domain: allow the domain to be specified via clever_domain variable

Every other variables are prefixed with `clever_` which makes the
definition of variables clearer from a "app" configuration point of
view.

WDYT?

6 years agoMerge pull request #12 from paulrbr-fl/first-time-deploy v1.3
paulrbr-fl [Fri, 21 Sep 2018 12:03:39 +0000 (14:03 +0200)] 
Merge pull request #12 from paulrbr-fl/first-time-deploy

deploy: Make sure repo is unshallow copy before pushing to clever

6 years agodeploy: Make sure repo is unshallow copy before pushing to clever 12/head
Paul Bonaud [Fri, 21 Sep 2018 11:36:40 +0000 (13:36 +0200)] 
deploy: Make sure repo is unshallow copy before pushing to clever

If your build tool only uses a shallow clone of your project, Clever
cloud will fail on first time git push. You need to git push a full
clone of your git repo for the first time deployment to clever.

This PR fixes that.

6 years agoMerge pull request #11 from gaetanfl/lint
Gaëtan [Fri, 21 Sep 2018 11:47:19 +0000 (13:47 +0200)] 
Merge pull request #11 from gaetanfl/lint

add ansible-lint test and fix warning

6 years agoInstall ansible-lint 11/head
Gaëtan Duchaussois [Fri, 21 Sep 2018 10:35:34 +0000 (12:35 +0200)] 
Install ansible-lint