Commit 4ad03a35 authored by Aleksey Shirokih's avatar Aleksey Shirokih

Fix linter errors

parent 2c5b0f56
......@@ -13,11 +13,12 @@ lint:
- export ANSIBLE_ROLES_PATH=./additional_roles:./system_roles:./noc_roles
- export ANSIBLE_LIBRARY=./library:./system_roles/mongod/library
- yamllint --version
- yamllint .
# - ansible-lint */*/service.yml -v #I should look into errors more clearly after few monthsa
- yamllint -s .
- ansible-playbook --version
- ansible-playbook */*/service.yml --syntax-check
- ansible-review --version
- ansible-lint --version
# - ansible-lint */*/service.yml -v
- ansible-review --version
- git ls-files | grep -v molecule/| xargs ansible-review -c .ansible-review -q
tags:
- docker
......
Ansible playbooks for NOC Tower
# Ansible playbooks for NOC Tower
Primary goal of that playbook provide simple install of NOC.
Primary goal of that playbook provide simple and very basic install of NOC.
Several notes that it will not do:
* remove external service from node (postgres, mongodb and so on) after disabling service in Tower
* backup your data, please do it by yourself
* move data from one host to another.
Supported platforms are:
Thar repo should not inteded to be used by itself.
Use https://code.getnoc.com/noc/tower/blob/master/Readme.md instaed.
# Additional roles
Want to use noc tower tu rule them all? you can check this group: https://code.getnoc.com/ansible-roles
# Supported platforms are:
* Debian 8
* Debian 9
......@@ -15,6 +22,14 @@ Supported platforms are:
* RHEL 7
* Ubuntu 16.04
* Ubuntu 18.04
* FreeBSD 11+
* FreeBSD 12+
# Related work
Be aware that this type of install get less love than current repo and can be not in best shape.
Also be aware that each of them have some limitation. Read limitations sections carefully before apply.
* https://code.getnoc.com/noc/noc-dc -- want to install noc via docker compose and just sneak peak? That is the way.
* https://code.getnoc.com/noc/noc-k8s -- Already cloud native? Probably it will help you.
......@@ -9,7 +9,7 @@
vars:
consul_service_key: "noc/slots/discovery-{{ item }}/manifest"
consul_service_internal_key: "Limit"
consul_service_value: "{{ hostvars | json_query(\"*.noc_services[] | [?name=='discovery'].{n:pool,num:config.power} | [?n=='\"+item+\"'] | sum([].num)\") }}" # noqa 204
consul_service_value: "{{ hostvars | json_query(\"*.noc_services[] | [?name=='discovery'].{n:pool,num:config.power} | [?n=='\"+item+\"'] | sum([].num)\") }}" # noqa 204
consul_service_token: None
with_items: "{{ hostvars |json_query('*.noc_services[] | [].pool') |unique }}"
tags:
......@@ -23,7 +23,7 @@
vars:
consul_service_key: "noc/slots/ping-{{ item }}/manifest"
consul_service_internal_key: "Limit"
consul_service_value: "{{ hostvars |json_query(\"*.noc_services[] | [?name=='ping'].{n:pool,num:config.power} | [?n=='\"+item+\"'] | sum([].num)\") }}" # noqa 204
consul_service_value: "{{ hostvars |json_query(\"*.noc_services[] | [?name=='ping'].{n:pool,num:config.power} | [?n=='\"+item+\"'] | sum([].num)\") }}" # noqa 204
consul_service_token: None
with_items: "{{ hostvars |json_query('*.noc_services[] | [].pool') |unique }}"
tags:
......
......@@ -2,29 +2,4 @@
galaxy_info:
author: Grig Gheorghiu & Aleksey Shirokih
description: Ansible role for installing and configuring consul-template
license: license (Apache)
min_ansible_version: 1.2
platforms:
- name: Ubuntu
versions:
- all
# - lucid
# - maverick
# - natty
# - oneiric
# - precise
# - quantal
# - raring
# - saucy
# - trusty
- name: Debian
versions:
- all
# - etch
# - lenny
# - squeeze
# - wheezy
- name: EL
versions:
- 6
- 7
license: Apache
......@@ -3,28 +3,3 @@ galaxy_info:
author: Brian Shumate & Aleksey Shirokih
description: Consul cluster role
license: BSD
min_ansible_version: 1.2
platforms:
- name: Ubuntu
versions:
- all
# - lucid
# - maverick
# - natty
# - oneiric
# - precise
# - quantal
# - raring
# - saucy
# - trusty
- name: Debian
versions:
- all
# - etch
# - lenny
# - squeeze
# - wheezy
- name: EL
versions:
- 6
- 7
......@@ -47,7 +47,7 @@
- config
- name: Create database user
command: "{{ mongo_path }} -u {{ noc_mongo_admin_user }} -p '{{ mongod_password }}' {{ mongod_db }} --authenticationDatabase admin {{ mongo_dir }}/userinit.js" # noqa 204
command: "{{ mongo_path }} -u {{ noc_mongo_admin_user }} -p '{{ mongod_password }}' {{ mongod_db }} --authenticationDatabase admin {{ mongo_dir }}/userinit.js" # noqa 204
when: user_status is changed
tags:
- skip_ansible_lint
......
......@@ -87,7 +87,7 @@
monitoring_service_procstat_check: "True"
monitoring_service_procstat_type: pattern
monitoring_service_procstat_value: nsqd
monitoring_service_tagexclude: ["client_deflate", "client_address", "client_hostname", "client_name", "client_snappy", "client_tls", "client_user_agent", "client_version", "server_version"] # noqa 204
monitoring_service_tagexclude: ["client_deflate", "client_address", "client_hostname", "client_name", "client_snappy", "client_tls", "client_user_agent", "client_version", "server_version"] # noqa 204
monitoring_config:
endpoints: ["http://{{ ansible_nodename }}:4151"]
when: has_svc_monitoring is defined
......
......@@ -25,7 +25,7 @@
monitoring_service_check_interval: "10s"
monitoring_service_procstat_check: "False"
monitoring_config:
address: "host={{ postgres_listen_address }} user={{ postgres_noc_user }} password={{ postgres_noc_password }} sslmode=disable database={{ postgres_noc_db }}" # noqa 204
address: "host={{ postgres_listen_address }} user={{ postgres_noc_user }} password={{ postgres_noc_password }} sslmode=disable database={{ postgres_noc_db }}" # noqa 204
ignored_databases: ["postgres", "template0", "template1"]
when: has_svc_monitoring is defined
tags:
......
Markdown is supported
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