Commit 0085f19c authored by Aleksey Shirokih's avatar Aleksey Shirokih
Browse files

Make int lintable

parent 6af7d136
......@@ -45,12 +45,12 @@ rules:
# Defaults
# spaces: consistent
# indent-sequences: true
# check-multi-line-strings: false
check-multi-line-strings: true
# Requiring 2 space indentation
spaces: 2
spaces: consistent
# Requiring consistent indentation within a file, either indented or not
indent-sequences: consistent
indent-sequences: true
# Disabling due to copious amounts of long lines in the code which would
# require a code style change to resolve
......@@ -62,7 +62,7 @@ rules:
# Disabling due to copious amounts of truthy warnings in the code which would
# require a code style change to resolve
truthy: disable
truthy: enable
# Defaults
# level: warning
key-duplicates: enable
---
- import_playbook: pre.yml
- name: Install NOC
hosts: noc-svc-*
become: yes
become: "True"
strategy: "{% if groups['svc-noc-exec'] > 2 %}free{%else%}linear{%endif%}"
gather_facts: True
gather_facts: "True"
tags:
- node
- noc
......@@ -35,9 +36,9 @@
- role: discovery
- role: bi
- role: migrate
become: yes
run_once: true
become: "True"
run_once: "True"
tags:
- migrate
- import_playbook: post.yml
\ No newline at end of file
- import_playbook: post.yml
---
- name: reload telegraf
become: yes
service:
name: telegraf
state: reloaded
......@@ -14,7 +14,7 @@ forms:
type: int
max: 64
min: 0
required: True
required: "True"
loglevel:
default: info
label: Loglevel
......@@ -30,12 +30,12 @@ forms:
default: 20
label: "Script threads"
type: int
required: True
required: "True"
tos:
default: 0
label: "IP ToS mark"
type: int
required: True
required: "True"
services:
activator:
......@@ -53,4 +53,3 @@ services:
stdout_logfile_backups: 3
stdout_logfile_maxbytes: 10MB
stopwaitsecs: 3
---
- name: fail if noc is not selected
fail:
msg: "Activator role have to be set with noc role to get own sources."
when:
- has_svc_activator is defined
- has_svc_noc is not defined
tags:
- checks
......@@ -42,7 +42,7 @@
name: "{{item.name}}"
value: "{{item.value}}"
state: present
reload: yes
reload: "True"
with_items:
- { name: 'net.ipv4.tcp_no_metrics_save', value: 1}
- { name: 'net.ipv4.tcp_window_scaling', value: 0}
......
......@@ -2,7 +2,7 @@
- name: Install CentOS system packages
yum:
name: "{{ item }}"
update_cache: yes
update_cache: "True"
with_items:
- libssh2
- libssh2-devel
......
......@@ -2,7 +2,7 @@
- name: Install Debian system packages
apt:
name: "{{item}}"
update_cache: yes
update_cache: "True"
cache_valid_time: "{{apt_cache_valid_time | default (3600)}}"
with_items:
- libssh2-1
......
......@@ -2,7 +2,7 @@
- name: Install RedHat system packages
yum:
name: "{{item}}"
update_cache: yes
update_cache: "True"
with_items:
- libssh2
- libssh2-devel
......
......@@ -2,7 +2,7 @@
- name: Install Ubuntu system packages
apt:
name: "{{item}}"
update_cache: yes
update_cache: "True"
cache_valid_time: "{{apt_cache_valid_time | default (3600)}}"
with_items:
- libssh2-1
......
---
required_assets:
- bi
\ No newline at end of file
- bi
---
- name: reload telegraf
become: yes
service:
name: telegraf
state: reloaded
......@@ -40,7 +40,6 @@ forms:
max: 100
min: 5
services:
bi:
level: global
......@@ -57,4 +56,4 @@ services:
- bi
depends:
- noc
- clickhouse
\ No newline at end of file
- clickhouse
- name: Mongo version is too old
fail:
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}}
Otherwise you can disable bi service on services tab
when:
- has_svc_bi is defined
- mongod_version is version_compare('3.4', operator='lt', strict=True)
---
- block:
- name: Mongo version is too old
fail:
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}}
Otherwise you can disable bi service on services tab
when:
- mongod_version is version_compare('3.4', operator='lt', strict=True)
- name: fail if noc is not selected
fail:
msg: "Bi role have to be set with noc role to get own sources."
- name: fail if noc is not selected
fail:
msg: "Bi role have to be set with noc role to get own sources."
when:
- has_svc_noc is not defined
when:
- has_svc_bi is defined
- has_svc_noc is not defined
---
- name: "Include OS-specific tasks"
include_tasks: "os/{{ ansible_distribution }}/main.yml"
......@@ -13,4 +14,4 @@
https_proxy: "{{http_proxy}}"
NOC_CONFIG: "{{config_order}}"
tags:
- requirements
\ No newline at end of file
- requirements
---
required_assets:
- card
- web
\ No newline at end of file
- web
---
- name: reload telegraf
become: yes
service:
name: telegraf
state: reloaded
......@@ -52,4 +52,4 @@ services:
- web
depends:
- noc
- nginx
\ No newline at end of file
- nginx
---
- name: fail if noc is not selected
fail:
msg: "Card role have to be set with noc role to get own sources."
......
---
- name: "Include OS-specific tasks"
include_tasks: "os/{{ ansible_distribution }}/main.yml"
......@@ -13,4 +14,4 @@
https_proxy: "{{http_proxy}}"
NOC_CONFIG: "{{config_order}}"
tags:
- requirements
\ No newline at end of file
- requirements
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