fix molecule

This commit is contained in:
Robert Kaussow 2020-03-21 14:46:00 +01:00
parent b0f9579a08
commit 6fb0f14b8d
4 changed files with 13 additions and 22 deletions

View File

@ -8,7 +8,7 @@ local PipelineLinting = {
steps: [
{
name: 'ansible-later',
image: 'xoxys/ansible-later:latest',
image: 'xoxys/ansible-later',
commands: [
'ansible-later',
],
@ -31,15 +31,14 @@ local PipelineDeployment(scenario='{{ cookiecutter.molecule_scenario | replace("
},
workspace: {
base: '/drone/src',
path: '{{ cookiecutter.author }}.{{ cookiecutter.role_name }}',
path: '${DRONE_REPO_NAME}',
},
steps: [
{
name: 'ansible-molecule',
image: 'xoxys/molecule:latest',
image: 'xoxys/molecule:3',
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 +65,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,9 +77,9 @@ local PipelineDocumentation = {
},
{
name: 'publish',
image: 'plugins/gh-pages:latest',
image: 'plugins/gh-pages',
settings: {
remote_url: 'https://gitea.rknet.org/ansible/{{ cookiecutter.author }}.{{ cookiecutter.role_name }}',
remote_url: 'https://gitea.rknet.org/ansible/${DRONE_REPO_NAME}',
netrc_machine: 'gitea.rknet.org',
username: { from_secret: 'gitea_username' },
password: { from_secret: 'gitea_token' },

View File

@ -18,4 +18,4 @@ galaxy_info:
versions:
- 7
galaxy_tags:
dependencies:
dependencies: []

View File

@ -2,23 +2,15 @@
dependency:
name: galaxy
driver:
name: digitalocean
name: delegated
platforms:
- name: "{{ cookiecutter.molecule_scenario | replace('-', '') }}-{{ cookiecutter.role_name | replace('_', '-') }}"
- name: {{ cookiecutter.molecule_scenario | replace("-", "") }}-{{ cookiecutter.role_name | replace("_", "-") }}
region_id: fra1
image_id: "{{ cookiecutter.molecule_scenario }}-x64"
size_id: "{{ cookiecutter.molecule_machine_size }}"
lint:
name: yamllint
enabled: False
image_id: {{ cookiecutter.molecule_scenario }}-x64
size_id: {{ cookiecutter.molecule_machine_size }}
lint: |
flake8 --max-line-length=99
provisioner:
name: ansible
lint:
name: ansible-lint
enabled: False
verifier:
name: testinfra
lint:
name: flake8
options:
max-line-length: 120