From 8e21e66acbd4505046aca4c95c30b2c8e597cb61 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Fri, 21 Feb 2020 00:46:35 +0100 Subject: [PATCH] upgrade to molecule v3 --- .drone.jsonnet | 10 +++++----- .drone.yml | 11 +++++------ molecule/centos7/{playbook.yml => converge.yml} | 0 molecule/centos7/molecule.yml | 14 +++----------- 4 files changed, 13 insertions(+), 22 deletions(-) rename molecule/centos7/{playbook.yml => converge.yml} (100%) diff --git a/.drone.jsonnet b/.drone.jsonnet index bc68aeb..4be3604 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -8,7 +8,7 @@ local PipelineLinting = { steps: [ { name: 'ansible-later', - image: 'xoxys/ansible-later:latest', + image: 'xoxys/ansible-later', commands: [ 'ansible-later', ], @@ -36,10 +36,10 @@ local PipelineDeployment(scenario='centos7') = { steps: [ { name: 'ansible-molecule', - image: 'xoxys/molecule:latest', + image: 'xoxys/molecule:3', + pull: 'always', environment: { DO_API_KEY: { from_secret: 'do_api_key' }, - USER: 'root', MOLECULE_CUSTOM_MODULES_REPO: 'https://gitea.rknet.org/ansible/custom_modules', MOLECULE_CUSTOM_FILTERS_REPO: 'https://gitea.rknet.org/ansible/custom_filters', }, @@ -66,7 +66,7 @@ local PipelineDocumentation = { steps: [ { name: 'generate', - image: 'xoxys/ansible-doctor:latest', + image: 'xoxys/ansible-doctor', environment: { ANSIBLE_DOCTOR_LOG_LEVEL: 'INFO', ANSIBLE_DOCTOR_FORCE_OVERWRITE: true, @@ -78,7 +78,7 @@ local PipelineDocumentation = { }, { name: 'publish', - image: 'plugins/gh-pages:latest', + image: 'plugins/gh-pages', settings: { remote_url: 'https://gitea.rknet.org/ansible/xoxys.pam', netrc_machine: 'gitea.rknet.org', diff --git a/.drone.yml b/.drone.yml index 62554d5..8bd613a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,7 @@ platform: steps: - name: ansible-later - image: xoxys/ansible-later:latest + image: xoxys/ansible-later commands: - ansible-later @@ -35,7 +35,7 @@ workspace: steps: - name: ansible-molecule - image: xoxys/molecule:latest + image: xoxys/molecule:3 commands: - molecule test -scentos7 environment: @@ -43,7 +43,6 @@ steps: from_secret: do_api_key MOLECULE_CUSTOM_FILTERS_REPO: https://gitea.rknet.org/ansible/custom_filters MOLECULE_CUSTOM_MODULES_REPO: https://gitea.rknet.org/ansible/custom_modules - USER: root trigger: ref: @@ -63,7 +62,7 @@ platform: steps: - name: generate - image: xoxys/ansible-doctor:latest + image: xoxys/ansible-doctor environment: ANSIBLE_DOCTOR_EXCLUDE_FILES: molecule/ ANSIBLE_DOCTOR_FORCE_OVERWRITE: true @@ -73,7 +72,7 @@ steps: ANSIBLE_DOCTOR_TEMPLATE: hugo-book - name: publish - image: plugins/gh-pages:latest + image: plugins/gh-pages settings: netrc_machine: gitea.rknet.org pages_directory: _docs/ @@ -147,6 +146,6 @@ depends_on: --- kind: signature -hmac: 6f6e5edc1a20bef57f71f224e02d20453e590dd8b8c48f38b25204fc9875fb61 +hmac: e4d50a1aac37a2e16665f1ac6a9883155923587f9749e4fa7e995b806e231978 ... diff --git a/molecule/centos7/playbook.yml b/molecule/centos7/converge.yml similarity index 100% rename from molecule/centos7/playbook.yml rename to molecule/centos7/converge.yml diff --git a/molecule/centos7/molecule.yml b/molecule/centos7/molecule.yml index 0872c02..f418cad 100644 --- a/molecule/centos7/molecule.yml +++ b/molecule/centos7/molecule.yml @@ -2,23 +2,15 @@ dependency: name: galaxy driver: - name: digitalocean + name: delegated platforms: - name: centos7-pam region_id: fra1 image_id: centos-7-x64 size_id: s-1vcpu-1gb -lint: - name: yamllint - enabled: False provisioner: name: ansible - lint: - name: ansible-lint - enabled: False verifier: name: testinfra - lint: - name: flake8 - options: - max-line-length: 120 + lint: | + flake8 --max-line-length=110