Skip to content

Commit ab374a3

Browse files
pabrahamssonoybed
authored andcommitted
Remove yamllint ignore and fix linting issues (#143)
* Remove yamllint ignore and fix linting issues * Use molecule for linting, merge rules
1 parent 25c2d43 commit ab374a3

27 files changed

Lines changed: 40 additions & 52 deletions

File tree

.ansible-lint

Lines changed: 0 additions & 3 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ install:
3434
- curl -LO ${KUBE_BINARY} && chmod +x ./kubectl && sudo mv ./kubectl /bin/kubectl
3535

3636
before_script:
37-
# Linting
38-
- yamllint .
39-
- ansible-lint playbooks/openshift-cluster-seed.yml
4037
# Configure Docker
4138
- sudo service docker stop
4239
- sudo mkdir -p /etc/docker

.yamllint

Lines changed: 0 additions & 17 deletions
This file was deleted.

molecule/default/destroy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
- hosts: all
44
connection: local
5-
gather_facts: no
5+
gather_facts: false
66
tasks:
77
- block:
88
- name: Check hosts are available
@@ -18,12 +18,12 @@
1818

1919
- hosts: available_hosts
2020
connection: local
21-
gather_facts: no
21+
gather_facts: false
2222
tasks:
2323
- name: Delete Test Project
2424
command: >
2525
oc delete project oa-ci-multi-files-dir1
26-
ignore_errors: yes
26+
ignore_errors: true
2727
delegate_to: "{{ groups['seed-hosts'] | first }}"
2828

2929
- name: Destroy

molecule/default/playbook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
find:
77
paths: "{{ playbook_dir }}/../../tests/inventories"
88
file_type: directory
9-
recurse: no
9+
recurse: false
1010
register: tests
1111
delegate_to: localhost
1212
tasks:

molecule/default/prepare.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
unarchive:
77
src: "{{ oc_binary_url }}"
88
dest: "/usr/local/bin"
9-
remote_src: yes
9+
remote_src: true
1010
- name: Download Kubectl Binary
1111
get_url:
1212
url: "{{ kube_binary_url }}"

molecule/yamllint.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
extends: default
44

55
rules:
6+
braces:
7+
max-spaces-inside: 1
8+
level: error
9+
brackets:
10+
max-spaces-inside: 1
11+
level: error
12+
indentation:
13+
indent-sequences: consistent
614
line-length:
715
level: error
816
max: 250

roles/openshift-applier/defaults/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ default_oc_action: apply
44
tmp_inv_dir: ''
55
include_tags: ''
66
exclude_tags: ''
7-
provision: True
7+
provision: true
88
params_from_vars: {}
99
oc_ignore_unknown_parameters: true

roles/openshift-applier/tasks/process-content.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- name: "Include any pre-processing role(s) before applying content"
44
include_tasks: pre-post-step.yml
55
with_items:
6-
- "{{ entry.pre_steps | default('') }}"
6+
- "{{ entry.pre_steps | default('') }}"
77
loop_control:
88
loop_var: step
99

roles/openshift-applier/tasks/process-jinja.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
state: directory
1212
register: jinja_tmp_dir
1313
notify:
14-
- Clean up temporary Jinja directory
14+
- Clean up temporary Jinja directory
1515

1616
- name: Set processed Jinja template output path
1717
set_fact:

0 commit comments

Comments
 (0)