Commit 079792b3 authored by EKbfh's avatar EKbfh 🐼
Browse files

Merge branch 'ansible-kafkasender' into 'master'

Add kafkasender service

See merge request noc/noc!4484
parents 8b671348 f4e075b1
......@@ -89,6 +89,7 @@ all:
has_svc_noc: true
has_svc_nsqd: true
has_svc_nsqlookupd: true
has_svc_kafkasender: true
has_svc_pgbouncer: true
has_svc_ping: true
has_svc_postgres: true
......@@ -623,6 +624,26 @@ all:
stopwaitsecs: 3
name: nbi
pool: null
- config:
loglevel: info
power: 1
config_order: yaml:///opt/noc/etc/tower.yml,yaml:///opt/noc/etc/settings.yml,env:///NOC
environment:
category: internal
depends:
- noc
level: global
supervisord:
command: ./services/kafkasender/service.py
oom_score_adj: 100
priority: 110
process_name: '%(program_name)s-%(process_num)02d'
startretries: 999
stdout_logfile_backups: 3
stdout_logfile_maxbytes: 10MB
stopwaitsecs: 3
name: kafkasender
pool: null
- config:
backup_power: 1
loglevel: info
......@@ -1105,6 +1126,15 @@ all:
svc-pgbouncer-exec:
hosts:
noc-node-debian10: {}
svc-kafkasender:
children:
cfg-kafkasender-noc-node-debian10:
hosts:
noc-node-debian10: {}
svc-kafkasender-read: {}
svc-kafkasender-exec:
hosts:
noc-node-debian10: {}
svc-ping:
children:
cfg-ping-default-noc-node-debian10:
......
......@@ -89,6 +89,7 @@ all:
has_svc_noc: true
has_svc_nsqd: true
has_svc_nsqlookupd: true
has_svc_kafkasender: true
has_svc_pgbouncer: true
has_svc_ping: true
has_svc_postgres: true
......@@ -623,6 +624,26 @@ all:
stopwaitsecs: 3
name: nbi
pool: null
- config:
loglevel: info
power: 1
config_order: yaml:///opt/noc/etc/tower.yml,yaml:///opt/noc/etc/settings.yml,env:///NOC
environment:
category: internal
depends:
- noc
level: global
supervisord:
command: ./services/kafkasender/service.py
oom_score_adj: 100
priority: 110
process_name: '%(program_name)s-%(process_num)02d'
startretries: 999
stdout_logfile_backups: 3
stdout_logfile_maxbytes: 10MB
stopwaitsecs: 3
name: kafkasender
pool: null
- config:
backup_power: 1
loglevel: info
......@@ -1096,6 +1117,15 @@ all:
svc-nsqlookupd-exec:
hosts:
noc-node-debian9: {}
svc-kafkasender:
children:
cfg-kafkasender-noc-node-debian10:
hosts:
noc-node-debian9: {}
svc-kafkasender-read: {}
svc-kafkasender-exec:
hosts:
noc-node-debian9: {}
svc-pgbouncer:
children:
cfg-pgbouncer-noc-node-debian9:
......
......@@ -89,6 +89,7 @@ all:
has_svc_noc: true
has_svc_nsqd: true
has_svc_nsqlookupd: true
has_svc_kafkasender: true
has_svc_pgbouncer: true
has_svc_ping: true
has_svc_postgres: true
......@@ -623,6 +624,26 @@ all:
stopwaitsecs: 3
name: nbi
pool: null
- config:
loglevel: info
power: 1
config_order: yaml:///opt/noc/etc/tower.yml,yaml:///opt/noc/etc/settings.yml,env:///NOC
environment:
category: internal
depends:
- noc
level: global
supervisord:
command: ./services/kafkasender/service.py
oom_score_adj: 100
priority: 110
process_name: '%(program_name)s-%(process_num)02d'
startretries: 999
stdout_logfile_backups: 3
stdout_logfile_maxbytes: 10MB
stopwaitsecs: 3
name: kafkasender
pool: null
- config:
backup_power: 1
loglevel: info
......@@ -1096,6 +1117,15 @@ all:
svc-nsqlookupd-exec:
hosts:
noc-node-centos7: {}
svc-kafkasender:
children:
cfg-kafkasender-noc-node-centos7:
hosts:
noc-node-centos7: {}
svc-kafkasender-read: {}
svc-kafkasender-exec:
hosts:
noc-node-centos7: {}
svc-pgbouncer:
children:
cfg-pgbouncer-noc-node-centos7:
......
......@@ -89,6 +89,7 @@ all:
has_svc_noc: true
has_svc_nsqd: true
has_svc_nsqlookupd: true
has_svc_kafkasender: true
has_svc_pgbouncer: true
has_svc_ping: true
has_svc_postgres: true
......@@ -623,6 +624,26 @@ all:
stopwaitsecs: 3
name: nbi
pool: null
- config:
loglevel: info
power: 1
config_order: yaml:///opt/noc/etc/tower.yml,yaml:///opt/noc/etc/settings.yml,env:///NOC
environment:
category: internal
depends:
- noc
level: global
supervisord:
command: ./services/kafkasender/service.py
oom_score_adj: 100
priority: 110
process_name: '%(program_name)s-%(process_num)02d'
startretries: 999
stdout_logfile_backups: 3
stdout_logfile_maxbytes: 10MB
stopwaitsecs: 3
name: kafkasender
pool: null
- config:
backup_power: 1
loglevel: info
......@@ -1096,6 +1117,15 @@ all:
svc-nsqlookupd-exec:
hosts:
noc-node-freebsd12: {}
svc-kafkasender:
children:
cfg-kafkasender-noc-node-freebsd12:
hosts:
noc-node-freebsd12: {}
svc-kafkasender-read: {}
svc-kafkasender-exec:
hosts:
noc-node-freebsd12: {}
svc-pgbouncer:
children:
cfg-pgbouncer-noc-node-freebsd12:
......
......@@ -89,6 +89,7 @@ all:
has_svc_noc: true
has_svc_nsqd: true
has_svc_nsqlookupd: true
has_svc_kafkasender: true
has_svc_pgbouncer: true
has_svc_ping: true
has_svc_postgres: true
......@@ -623,6 +624,26 @@ all:
stopwaitsecs: 3
name: nbi
pool: null
- config:
loglevel: info
power: 1
config_order: yaml:///opt/noc/etc/tower.yml,yaml:///opt/noc/etc/settings.yml,env:///NOC
environment:
category: internal
depends:
- noc
level: global
supervisord:
command: ./services/kafkasender/service.py
oom_score_adj: 100
priority: 110
process_name: '%(program_name)s-%(process_num)02d'
startretries: 999
stdout_logfile_backups: 3
stdout_logfile_maxbytes: 10MB
stopwaitsecs: 3
name: kafkasender
pool: null
- config:
backup_power: 1
loglevel: info
......@@ -1096,6 +1117,15 @@ all:
svc-nsqlookupd-exec:
hosts:
noc_node_oel7: {}
svc-kafkasender:
children:
cfg-kafkasender-noc-node-eol7:
hosts:
noc-node-eol7: {}
svc-kafkasender-read: {}
svc-kafkasender-exec:
hosts:
noc-node-eol7: {}
svc-pgbouncer:
children:
cfg-pgbouncer-noc_node_oel7:
......
......@@ -89,6 +89,7 @@ all:
has_svc_noc: true
has_svc_nsqd: true
has_svc_nsqlookupd: true
has_svc_kafkasender: true
has_svc_pgbouncer: true
has_svc_ping: true
has_svc_postgres: true
......@@ -623,6 +624,26 @@ all:
stopwaitsecs: 3
name: nbi
pool: null
- config:
loglevel: info
power: 1
config_order: yaml:///opt/noc/etc/tower.yml,yaml:///opt/noc/etc/settings.yml,env:///NOC
environment:
category: internal
depends:
- noc
level: global
supervisord:
command: ./services/kafkasender/service.py
oom_score_adj: 100
priority: 110
process_name: '%(program_name)s-%(process_num)02d'
startretries: 999
stdout_logfile_backups: 3
stdout_logfile_maxbytes: 10MB
stopwaitsecs: 3
name: kafkasender
pool: null
- config:
backup_power: 1
loglevel: info
......@@ -1096,6 +1117,15 @@ all:
svc-nsqlookupd-exec:
hosts:
noc-node-ubuntu16: {}
svc-kafkasender:
children:
cfg-kafkasender-noc-node-ubuntu16:
hosts:
noc-node-ubuntu16: {}
svc-kafkasender-read: {}
svc-kafkasender-exec:
hosts:
noc-node-ubuntu16: {}
svc-pgbouncer:
children:
cfg-pgbouncer-noc-node-ubuntu16:
......
......@@ -89,6 +89,7 @@ all:
has_svc_noc: true
has_svc_nsqd: true
has_svc_nsqlookupd: true
has_svc_kafkasender: true
has_svc_pgbouncer: true
has_svc_ping: true
has_svc_postgres: true
......@@ -623,6 +624,26 @@ all:
stopwaitsecs: 3
name: nbi
pool: null
- config:
loglevel: info
power: 1
config_order: yaml:///opt/noc/etc/tower.yml,yaml:///opt/noc/etc/settings.yml,env:///NOC
environment:
category: internal
depends:
- noc
level: global
supervisord:
command: ./services/kafkasender/service.py
oom_score_adj: 100
priority: 110
process_name: '%(program_name)s-%(process_num)02d'
startretries: 999
stdout_logfile_backups: 3
stdout_logfile_maxbytes: 10MB
stopwaitsecs: 3
name: kafkasender
pool: null
- config:
backup_power: 1
loglevel: info
......@@ -1102,6 +1123,15 @@ all:
hosts:
noc-node-ubuntu18: {}
svc-pgbouncer-read: {}
svc-kafkasender:
children:
cfg-kafkasender-noc-node-ubuntu18:
hosts:
noc-node-ubuntu18: {}
svc-kafkasender-read: {}
svc-kafkasender-exec:
hosts:
noc-node-ubuntu18: {}
svc-pgbouncer-exec:
hosts:
noc-node-ubuntu18: {}
......
---
forms:
kafkasender:
description: >
<strong>Service type</strong>: Internal <br/>
<strong>Short description</strong>: Kafka sender<br/>
<strong>Long description</strong>: Sends messages to external Kafka server.<br/>
<strong>Scale Recommendations</strong>: No special recommendations. <br/>
<strong>docs</strong>: <a href=http://docs.getnoc.com/en/latest/services/kafkasender/ target=_blank>kafkasender</a><br/>
<strong>Placement constraint</strong>: No special recommendations.<br/>
power:
default: 1
label: "Instances"
type: int
max: 10
min: 0
loglevel:
default: info
label: Loglevel
type: list
options:
- disabled
- debug
- info
- warning
- error
- critical
bootstrap_servers:
type: text
default: ""
label: "Servers IPs:port"
common: environment
description: "in CIDR notation, separated with comma"
username:
label: Username
type: str
default: ""
password:
label: Password
type: str
default: ""
sasl_mechanism:
label: Sasl_mechanism
default: "PLAIN"
type: str
description: "PLAIN, GSSAPI, SCRAM-SHA-256, SCRAM-SHA-512"
security_protocol:
label: security_protocol
default: "PLAINTEXT"
type: str
description: "PLAINTEXT, SASL_PLAINTEXT, SSL, SASL_SSL"
services:
kafkasender:
level: global
category: internal
supervisord:
command: "./services/kafkasender/service.py"
process_name: "%(program_name)s-%(process_num)02d"
oom_score_adj: 300
priority: 600
startretries: 999
stopwaitsecs: 2
stdout_logfile_maxbytes: 10MB
stdout_logfile_backups: 5
depends:
- noc
---
- block:
- name: fail if noc is not selected
fail:
msg: "Kafkasender role have to be set with noc role to get own sources."
when:
- has_svc_noc is not defined
tags:
- checks
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