Skip to content
Snippets Groups Projects
Commit 07df9d88 authored by Baptiste DE RENZO's avatar Baptiste DE RENZO
Browse files

Change truthy lint criticality and fixes errors, refs #33952

parent 455f219d
No related branches found
No related tags found
No related merge requests found
...@@ -31,9 +31,11 @@ RUN \ ...@@ -31,9 +31,11 @@ RUN \
wheel \ wheel \
&& \ && \
# import hashicorp gpg key # import hashicorp gpg key
sudo gpg --keyserver hkp://eu.pool.sks-keyservers.net --recv-key 51852D87348FFC4C && \ #sudo gpg --keyserver hkp://eu.pool.sks-keyservers.net --recv-key 51852D87348FFC4C && \
sudo gpg --keyserver hkp://eu.pool.sks-keyservers.net --recv-key 72D7468F && \
: :
ARG PACKER_VERSION=1.5.5 ARG PACKER_VERSION=1.5.5
RUN \ RUN \
# packer # packer
...@@ -46,6 +48,7 @@ RUN \ ...@@ -46,6 +48,7 @@ RUN \
sudo rm -f packer_${PACKER_VERSION}* && \ sudo rm -f packer_${PACKER_VERSION}* && \
: :
ARG GO_VERSION=1.14.1 ARG GO_VERSION=1.14.1
RUN \ RUN \
# golang # golang
......
...@@ -20,7 +20,7 @@ rules: ...@@ -20,7 +20,7 @@ rules:
max-spaces-inside: 1 max-spaces-inside: 1
level: error level: error
truthy: truthy:
level: warning level: error
line-length: disable line-length: disable
indentation: indentation:
spaces: consistent spaces: consistent
......
...@@ -2,17 +2,17 @@ ...@@ -2,17 +2,17 @@
- name: SET VARIABLES WHEN PROVISIONING - name: SET VARIABLES WHEN PROVISIONING
hosts: localhost hosts: localhost
tags: always tags: always
gather_facts: no gather_facts: false
run_once: true run_once: true
tasks: tasks:
- name: not provisioning - name: not provisioning
set_fact: set_fact:
provisioning: false provisioning: false
delegate_facts: yes delegate_facts: true
- name: enable provisioning - name: enable provisioning
set_fact: set_fact:
provisioning: true provisioning: true
delegate_facts: yes delegate_facts: true
when: ('force-delete' not in ansible_run_tags) when: ('force-delete' not in ansible_run_tags)
- name: OVH CLOUD PROVISIONING - name: OVH CLOUD PROVISIONING
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
name: "{{ item.metadata.hostname }}" name: "{{ item.metadata.hostname }}"
ansible_host: "{{ item.accessIPv4 }}" ansible_host: "{{ item.accessIPv4 }}"
ansible_user: debian ansible_user: debian
ansible_become: yes ansible_become: true
loop: "{{ current_servers }}" loop: "{{ current_servers }}"
- name: launch a compute instance for non existant hosts - name: launch a compute instance for non existant hosts
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
name: "{{ item.metadata.hostname }}" name: "{{ item.metadata.hostname }}"
ansible_host: "{{ item.accessIPv4 }}" ansible_host: "{{ item.accessIPv4 }}"
ansible_user: debian ansible_user: debian
ansible_become: yes ansible_become: true
loop: "{{ openstack_servers | json_query('results[*].openstack') }}" loop: "{{ openstack_servers | json_query('results[*].openstack') }}"
... ...
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
- name: NFS mount provisioning - name: NFS mount provisioning
hosts: mediaserver hosts: mediaserver
tags: always tags: always
gather_facts: no gather_facts: false
vars: vars:
ovh_prefix: cloud ovh_prefix: cloud
tasks: tasks:
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
apt: apt:
name: nfs-common name: nfs-common
state: latest state: latest
update_cache: yes update_cache: true
when: when:
- hostvars.localhost.provisioning == true - hostvars.localhost.provisioning == true
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
fstype: nfs fstype: nfs
opts: "{{ item.mount_options }}" opts: "{{ item.mount_options }}"
dump: "0" dump: "0"
passno: "0" passfalse: "0"
state: mounted state: mounted
src: "{{ item.mount_ip }}:{{ item.name }}/{{ item.partition }}" src: "{{ item.mount_ip }}:{{ item.name }}/{{ item.partition }}"
path: "{{ item.mount_endpoint }}" path: "{{ item.mount_endpoint }}"
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
- name: Verify mediaserver installation then add server to load balancer - name: Verify mediaserver installation then add server to load balancer
hosts: mediaserver hosts: mediaserver
gather_facts: no gather_facts: false
vars: vars:
ovh_prefix: cloud ovh_prefix: cloud
tasks: tasks:
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
address: "{{ hostvars[inventory_hostname].ansible_host }}" address: "{{ hostvars[inventory_hostname].ansible_host }}"
port: 443 port: 443
status: active status: active
ssl: yes ssl: true
farmtype: http farmtype: http
endpoint: "{{ ovh_endpoint }}" endpoint: "{{ ovh_endpoint }}"
application_key: "{{ ovh_application_key }}" application_key: "{{ ovh_application_key }}"
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
- name: Verify wowza installation then add server to load balancer - name: Verify wowza installation then add server to load balancer
hosts: wowza hosts: wowza
gather_facts: no gather_facts: false
vars: vars:
ovh_prefix: cloud ovh_prefix: cloud
tasks: tasks:
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
address: "{{ hostvars[inventory_hostname].ansible_host }}" address: "{{ hostvars[inventory_hostname].ansible_host }}"
port: 1935 port: 1935
status: active status: active
ssl: no ssl: false
farmtype: tcp farmtype: tcp
endpoint: "{{ ovh_endpoint }}" endpoint: "{{ ovh_endpoint }}"
application_key: "{{ ovh_application_key }}" application_key: "{{ ovh_application_key }}"
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
- name: OVH CLOUD DEPROVISIONING WOWZA - name: OVH CLOUD DEPROVISIONING WOWZA
hosts: wowza hosts: wowza
gather_facts: no gather_facts: false
tags: [ 'never', 'force-delete' ] tags: [ 'never', 'force-delete' ]
tasks: tasks:
- name: remove ip on load balancer (tcp 1935) - name: remove ip on load balancer (tcp 1935)
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
address: "{{ hostvars[inventory_hostname].ansible_host }}" address: "{{ hostvars[inventory_hostname].ansible_host }}"
port: 1935 port: 1935
status: active status: active
ssl: yes ssl: true
farmtype: tcp farmtype: tcp
endpoint: "{{ ovh_endpoint }}" endpoint: "{{ ovh_endpoint }}"
application_key: "{{ ovh_application_key }}" application_key: "{{ ovh_application_key }}"
...@@ -157,7 +157,7 @@ ...@@ -157,7 +157,7 @@
- name: OVH CLOUD DEPROVISIONING MEDIASERVER - name: OVH CLOUD DEPROVISIONING MEDIASERVER
hosts: mediaserver hosts: mediaserver
gather_facts: no gather_facts: false
tags: [ 'never', 'force-delete' ] tags: [ 'never', 'force-delete' ]
tasks: tasks:
- name: remove ip on load balancer (http 443) - name: remove ip on load balancer (http 443)
...@@ -168,7 +168,7 @@ ...@@ -168,7 +168,7 @@
address: "{{ hostvars[inventory_hostname].ansible_host }}" address: "{{ hostvars[inventory_hostname].ansible_host }}"
port: 443 port: 443
status: active status: active
ssl: yes ssl: true
farmtype: http farmtype: http
endpoint: "{{ ovh_endpoint }}" endpoint: "{{ ovh_endpoint }}"
application_key: "{{ ovh_application_key }}" application_key: "{{ ovh_application_key }}"
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
- name: REFRESH LOAD BALANCER - name: REFRESH LOAD BALANCER
hosts: localhost hosts: localhost
gather_facts: no gather_facts: false
tags: always tags: always
tasks: tasks:
- name: refresh loadbalancer state - name: refresh loadbalancer state
...@@ -206,9 +206,9 @@ ...@@ -206,9 +206,9 @@
application_key: "{{ ovh_application_key }}" application_key: "{{ ovh_application_key }}"
application_secret: "{{ ovh_application_secret }}" application_secret: "{{ ovh_application_secret }}"
consumer_key: "{{ ovh_consumer_key }}" consumer_key: "{{ ovh_consumer_key }}"
refresh: yes refresh: true
delegate_to: localhost delegate_to: localhost
run_once: yes run_once: true
- name: COMPLETE TEST - name: COMPLETE TEST
hosts: mediaserver hosts: mediaserver
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment