Commit eb01881f authored by EKbfh's avatar EKbfh 🐼
Browse files

Fix lints

parent 3b495540
skip_list:
- '204'
\ No newline at end of file
......@@ -36,7 +36,7 @@ DOCUMENTATION:
the files/ directory in the role will be chosen over files/ directory in play.
EXAMPLES:
- name: "copy configs"
copy: src={{item}} dest=/etc/conf.d/
copy: src={{ item }} dest=/etc/conf.d/
with_fileglob:
- 'files/conf.d/*.conf'
......
......@@ -7,15 +7,15 @@
- name: export use_cache var
set_fact:
use_cache: "{{ lookup('env','USE_CACHE') or True | bool }}"
minio_bucket: "myminio/{{inventory_hostname | replace('_','-')}}"
minio_bucket: "myminio/{{ inventory_hostname | replace('_','-') }}"
pip_cache_dir: "{{ lookup('env','PIP_CACHE') }}"
pkg_cache_dir: "{{ lookup('env','PKG_CACHE') }}"
- block:
- name: upload pip cache
command: /tmp/mc mirror {{pip_cache_dir}} {{minio_bucket}}/pip
command: /tmp/mc mirror {{ pip_cache_dir }} {{ minio_bucket }}/pip
- name: upload pkg cache
command: /tmp/mc mirror {{pkg_cache_dir}} {{minio_bucket}}/pkgs
command: /tmp/mc mirror {{ pkg_cache_dir }} {{ minio_bucket }}/pkgs
when: use_cache
......@@ -4,7 +4,7 @@
minio_url: "{{ lookup('env','MINIO_URL') }}"
minio_key: "{{ lookup('env','MINIO_KEY') }}"
minio_secret: "{{ lookup('env','MINIO_SECRET') }}"
minio_bucket: "myminio/{{inventory_hostname | replace('_','-')}}"
minio_bucket: "myminio/{{ inventory_hostname | replace('_','-') }}"
pip_cache_dir: "{{ lookup('env','PIP_CACHE') }}"
pkg_cache_dir: "{{ lookup('env','PKG_CACHE') }}"
......@@ -29,7 +29,7 @@
mode: 0755
- name: config cache url
command: "/tmp/mc config host add myminio {{ minio_url }} {{minio_key}} {{minio_secret}}"
command: "/tmp/mc config host add myminio {{ minio_url }} {{ minio_key }} {{ minio_secret }}"
- name: create minio bucket
command: "/tmp/mc mb {{ minio_bucket }}"
......@@ -47,7 +47,7 @@
command: "/tmp/mc mirror {{ minio_bucket }}/pip {{ pip_cache_dir }}"
- name: download pkg cache
command: "/tmp/mc mirror {{ minio_bucket }}/pkgs {{pkg_cache_dir}}"
command: "/tmp/mc mirror {{ minio_bucket }}/pkgs {{ pkg_cache_dir }}"
- name: Enable pkg cache
lineinfile:
......
{% for host in instance_conf %}
Host {{host.instance}}
HostName {{host.address}}
Port {{host.port}}
IdentityFile {{host.identity_file}}
Host {{ host.instance }}
HostName {{ host.address }}
Port {{ host.port }}
IdentityFile {{ host.identity_file }}
PreferredAuthentications publickey
User {{host.user}}
User {{ host.user }}
StrictHostKeyChecking=no
{%endfor%}
......@@ -15,7 +15,7 @@
vars:
goss_version: v0.3.5
goss_arch: amd64
goss_dst: /opt/goss_{{goss_version}}/goss
goss_dst: /opt/goss_{{ goss_version }}/goss
goss_test_directory: /etc/goss/goss.d
goss_format: documentation
tasks:
......
......@@ -7,15 +7,15 @@
- name: export use_cache var
set_fact:
use_cache: "{{ lookup('env','USE_CACHE') or True | bool }}"
minio_bucket: "myminio/{{inventory_hostname | replace('_','-')}}"
minio_bucket: "myminio/{{ inventory_hostname | replace('_','-') }}"
pip_cache_dir: "{{ lookup('env','PIP_CACHE') }}"
pkg_cache_dir: "{{ lookup('env','PKG_CACHE') }}"
- block:
- name: upload pip cache
command: minio-client mirror {{pip_cache_dir}} {{minio_bucket}}/pip --overwrite
command: minio-client mirror {{ pip_cache_dir }} {{ minio_bucket }}/pip --overwrite
- name: upload pkg cache
command: minio-client mirror {{pkg_cache_dir}} {{minio_bucket}}/pkgs --overwrite
command: minio-client mirror {{ pkg_cache_dir }} {{ minio_bucket }}/pkgs --overwrite
when: use_cache
......@@ -4,7 +4,7 @@
minio_url: "{{ lookup('env','MINIO_URL') }}"
minio_key: "{{ lookup('env','MINIO_KEY') }}"
minio_secret: "{{ lookup('env','MINIO_SECRET') }}"
minio_bucket: "myminio/{{inventory_hostname | replace('_','-')}}"
minio_bucket: "myminio/{{ inventory_hostname | replace('_','-') }}"
pip_cache_dir: "{{ lookup('env','PIP_CACHE') }}"
pkg_cache_dir: "{{ lookup('env','PKG_CACHE') }}"
......@@ -31,7 +31,7 @@
IGNORE_OSVERSION: "yes"
- name: config cache url
command: "minio-client config host add myminio {{ minio_url }} {{minio_key}} {{minio_secret}}"
command: "minio-client config host add myminio {{ minio_url }} {{ minio_key }} {{ minio_secret }}"
- name: create minio bucket
command: "minio-client mb {{ minio_bucket }}"
......@@ -48,4 +48,4 @@
command: "minio-client mirror {{ minio_bucket }}/pip {{ pip_cache_dir }} --overwrite"
- name: download pkg cache
command: "minio-client mirror {{ minio_bucket }}/pkgs {{pkg_cache_dir}} --overwrite"
command: "minio-client mirror {{ minio_bucket }}/pkgs {{ pkg_cache_dir }} --overwrite"
......@@ -5,12 +5,12 @@
- name: Install activator python packages
pip:
chdir: "{{noc_root}}"
chdir: "{{ noc_root }}"
requirements: "requirements/activator.txt"
virtualenv: "{{noc_root}}"
virtualenv: "{{ noc_root }}"
environment:
https_proxy: "{{http_proxy}}"
http_proxy: "{{http_proxy}}"
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
CFLAGS: "{{ pip_cflags | default('') }}"
LDFLAGS: "{{ pip_ldflags | default('') }}"
tags:
......@@ -41,8 +41,8 @@
- name: Tune sysctl.conf for activator
sysctl:
name: "{{item.name}}"
value: "{{item.value}}"
name: "{{ item.name }}"
value: "{{ item.value }}"
state: present
reload: "True"
with_items:
......
......@@ -8,7 +8,7 @@
- libssh2
- libssh2-devel
environment:
https_proxy: "{{http_proxy}}"
http_proxy: "{{http_proxy}}"
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
tags:
- requirements
......@@ -3,13 +3,13 @@
apt:
name: "{{ packages }}"
update_cache: "True"
cache_valid_time: "{{apt_cache_valid_time | default (3600)}}"
cache_valid_time: "{{ apt_cache_valid_time | default (3600) }}"
vars:
packages:
- libssh2-1
- libssh2-1-dev
environment:
https_proxy: "{{http_proxy}}"
http_proxy: "{{http_proxy}}"
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
tags:
- requirements
......@@ -8,7 +8,7 @@
- libssh2
- libssh2-devel
environment:
https_proxy: "{{http_proxy}}"
http_proxy: "{{http_proxy}}"
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
tags:
- requirements
......@@ -8,7 +8,7 @@
- libssh2
- libssh2-devel
environment:
https_proxy: "{{http_proxy}}"
http_proxy: "{{http_proxy}}"
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
tags:
- requirements
......@@ -3,13 +3,13 @@
apt:
name: "{{ packages }}"
update_cache: "True"
cache_valid_time: "{{apt_cache_valid_time | default (3600)}}"
cache_valid_time: "{{ apt_cache_valid_time | default (3600) }}"
vars:
packages:
- libssh2-1
- libssh2-1-dev
environment:
https_proxy: "{{http_proxy}}"
http_proxy: "{{http_proxy}}"
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
tags:
- requirements
......@@ -5,7 +5,7 @@
msg: |
To use bi you have to setup at least 3.4 mongo.
Check https://kb.nocproject.org/x/TIHJAQ for more details.
Current version selected: {{mongod_version}}
Current version selected: {{ mongod_version }}
Otherwise you can disable bi service on services tab
when:
- mongod_version is version_compare('3.4', operator='lt', strict=True)
......
......@@ -10,8 +10,8 @@
changed_when: "'CHANGED' in s.stdout"
with_items: "{{ required_assets }}"
environment:
http_proxy: "{{http_proxy}}"
https_proxy: "{{http_proxy}}"
NOC_CONFIG: "{{config_order}}"
http_proxy: "{{ http_proxy }}"
https_proxy: "{{ http_proxy }}"
NOC_CONFIG: "{{ config_order }}"
tags:
- requirements
......@@ -10,8 +10,8 @@
changed_when: "'CHANGED' in s.stdout"
with_items: "{{ required_assets }}"
environment:
http_proxy: "{{http_proxy}}"
https_proxy: "{{http_proxy}}"
NOC_CONFIG: "{{config_order}}"
http_proxy: "{{ http_proxy }}"
https_proxy: "{{ http_proxy }}"
NOC_CONFIG: "{{ config_order }}"
tags:
- requirements
......@@ -4,12 +4,12 @@
- name: Install classifier python packages
pip:
chdir: "{{noc_root}}"
chdir: "{{ noc_root }}"
requirements: "requirements/classifier.txt"
virtualenv: "{{noc_root}}"
virtualenv: "{{ noc_root }}"
environment:
https_proxy: "{{http_proxy}}"
http_proxy: "{{http_proxy}}"
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
CFLAGS: "{{ pip_cflags | default('') }}"
LDFLAGS: "{{ pip_ldflags | default('') }}"
tags:
......
......@@ -5,7 +5,7 @@
msg: |
To use datastream you have to setup at least 3.6 mongo.
Check https://kb.nocproject.org/x/TIHJAQ for more details.
Current version selected: {{mongod_version}}
Current version selected: {{ mongod_version }}
Otherwise you can disable datastream service on services tab
when:
- mongod_version is version_compare('3.6', operator='lt', strict=True)
......
......@@ -4,8 +4,8 @@
- name: Tune sysctl.conf for keepalive
sysctl:
name: "{{item.name}}"
value: "{{item.value}}"
name: "{{ item.name }}"
value: "{{ item.value }}"
state: present
reload: "True"
with_items:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment