Change-Id: I0886f96ac351968e1c41920c4b046212d4cd92ef
(cherry picked from commit 7d88933c58)
mr4.5.2
parent
e7cce39d53
commit
fa5dab2b14
@ -1,42 +0,0 @@
|
||||
{
|
||||
"command": {
|
||||
"hostname": {
|
||||
"exit-status": 0
|
||||
},
|
||||
[% IF sipwise.system_tester.skip_strict_hostname_test != "true" %]
|
||||
"hostname": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"spce"
|
||||
],
|
||||
"stderr": []
|
||||
},
|
||||
"hostname --fqdn": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"spce."
|
||||
],
|
||||
"stderr": []
|
||||
},
|
||||
"hostname --short": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"spce"
|
||||
],
|
||||
"stderr": []
|
||||
},
|
||||
[% END -%]
|
||||
"[ $(hostname --short). = $(hostname --fqdn) ]": {
|
||||
"comment": "short hostname should be the same as fqdn (ignoring trailing dot)",
|
||||
"exit-status": 0,
|
||||
"stdout": [],
|
||||
"stderr": []
|
||||
},
|
||||
"[ $(resolveip -s $(hostname --fqdn)) = $(resolveip -s $(hostname --short)) ]": {
|
||||
"comment": "ip-s of short hostname and fqdn should be the same",
|
||||
"exit-status": 0,
|
||||
"stdout": [],
|
||||
"stderr": []
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
command:
|
||||
hostname:
|
||||
exit-status: 0
|
||||
|
||||
[% IF sipwise.system_tester.skip_strict_hostname_test != "true" %]
|
||||
hostname:
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "spce"
|
||||
stderr: []
|
||||
|
||||
hostname --fqdn:
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "spce."
|
||||
stderr: []
|
||||
|
||||
hostname --short:
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "spce"
|
||||
stderr: []
|
||||
|
||||
[% END -%]
|
||||
"[ $(hostname --short). = $(hostname --fqdn) ]":
|
||||
title: "short hostname should be the same as fqdn (ignoring trailing dot)"
|
||||
exit-status: 0
|
||||
stdout: []
|
||||
stderr: []
|
||||
|
||||
"[ $(resolveip -s $(hostname --fqdn)) = $(resolveip -s $(hostname --short)) ]":
|
||||
title: "ip-s of short hostname and fqdn should be the same"
|
||||
exit-status: 0
|
||||
stdout: []
|
||||
stderr: []
|
||||
@ -1,97 +0,0 @@
|
||||
{
|
||||
"command": {
|
||||
"pgrep -c -f '[l]ua5.1 /usr/bin/prosody'": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"1"
|
||||
],
|
||||
"stderr": []
|
||||
},
|
||||
"pgrep -c -f '[p]erl-fcgi-pm \\[NGCP::Panel\\]'": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"1"
|
||||
],
|
||||
"stderr": []
|
||||
},
|
||||
"pgrep -n -f '[k]amailio.*kamailio.proxy.pid'": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/[0-9]+/"
|
||||
],
|
||||
"stderr": []
|
||||
},
|
||||
"pgrep -n -f '[k]amailio.*kamailio.lb.pid'": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/[0-9]+/"
|
||||
],
|
||||
"stderr": []
|
||||
}
|
||||
},
|
||||
"process": {
|
||||
"acpid": {
|
||||
"running": true
|
||||
},
|
||||
"asterisk": {
|
||||
"running": true
|
||||
},
|
||||
"collectd": {
|
||||
"running": true
|
||||
},
|
||||
"collectdmon": {
|
||||
"running": true
|
||||
},
|
||||
"cron": {
|
||||
"running": true
|
||||
},
|
||||
"exim4": {
|
||||
"running": true
|
||||
},
|
||||
"getty": {
|
||||
"running": true
|
||||
},
|
||||
"kamailio": {
|
||||
"running": true
|
||||
},
|
||||
"mediator": {
|
||||
"running": true
|
||||
},
|
||||
"mysqld": {
|
||||
"running": true
|
||||
},
|
||||
"mysqld_safe": {
|
||||
"running": true
|
||||
},
|
||||
"ngcp-sems": {
|
||||
"running": true
|
||||
},
|
||||
"nginx": {
|
||||
"running": true
|
||||
},
|
||||
"ntpd": {
|
||||
"running": true
|
||||
},
|
||||
"perl-fcgi": {
|
||||
"running": true
|
||||
},
|
||||
"rate-o-mat": {
|
||||
"running": true
|
||||
},
|
||||
"redis-server": {
|
||||
"running": true
|
||||
},
|
||||
"rsyslogd": {
|
||||
"running": true
|
||||
},
|
||||
"rtpengine": {
|
||||
"running": true
|
||||
},
|
||||
"sshd": {
|
||||
"running": true
|
||||
},
|
||||
"udevd": {
|
||||
"running": true
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,68 @@
|
||||
command:
|
||||
"pgrep -c -f '[l]ua5.1 /usr/bin/prosody'":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "1"
|
||||
stderr: []
|
||||
|
||||
"pgrep -c -f '[p]erl-fcgi-pm \\[NGCP::Panel\\]'":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "1"
|
||||
stderr: []
|
||||
|
||||
"pgrep -n -f '[k]amailio.*kamailio.proxy.pid'":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/[0-9]+/"
|
||||
stderr: []
|
||||
|
||||
"pgrep -n -f '[k]amailio.*kamailio.lb.pid'":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/[0-9]+/"
|
||||
stderr: []
|
||||
|
||||
process:
|
||||
acpid:
|
||||
running: true
|
||||
asterisk:
|
||||
running: true
|
||||
collectd:
|
||||
running: true
|
||||
collectdmon:
|
||||
running: true
|
||||
cron:
|
||||
running: true
|
||||
exim4:
|
||||
running: true
|
||||
getty:
|
||||
running: true
|
||||
kamailio:
|
||||
running: true
|
||||
mediator:
|
||||
running: true
|
||||
mysqld:
|
||||
running: true
|
||||
mysqld_safe:
|
||||
running: true
|
||||
ngcp-sems:
|
||||
running: true
|
||||
nginx:
|
||||
running: true
|
||||
ntpd:
|
||||
running: true
|
||||
perl-fcgi:
|
||||
running: true
|
||||
rate-o-mat:
|
||||
running: true
|
||||
redis-server:
|
||||
running: true
|
||||
rsyslogd:
|
||||
running: true
|
||||
rtpengine:
|
||||
running: true
|
||||
sshd:
|
||||
running: true
|
||||
udevd:
|
||||
running: true
|
||||
@ -1,18 +0,0 @@
|
||||
{
|
||||
"command": {
|
||||
"df --output=pcent / | tail -1": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/[0-9]%|[0-7][0-9]%/"
|
||||
],
|
||||
"stderr": []
|
||||
},
|
||||
"df --output=ipcent / | tail -1": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/[0-9]%|[0-7][0-9]%/"
|
||||
],
|
||||
"stderr": []
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
command:
|
||||
"df --output=pcent / | tail -1":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/[0-9]%|[0-7][0-9]%/"
|
||||
stderr: []
|
||||
|
||||
"df --output=ipcent / | tail -1":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/[0-9]%|[0-7][0-9]%/"
|
||||
stderr: []
|
||||
@ -1,52 +0,0 @@
|
||||
{
|
||||
"file": {
|
||||
"/etc/apt/sources.list.d/sipwise.list": {
|
||||
"exists": true,
|
||||
"mode": "0644",
|
||||
"owner": "root",
|
||||
"group": "root",
|
||||
"filetype": "file",
|
||||
"contains": []
|
||||
},
|
||||
"/etc/ngcp-config/config.yml": {
|
||||
"exists": true,
|
||||
"mode": "0644",
|
||||
"owner": "root",
|
||||
"group": "root",
|
||||
"filetype": "file",
|
||||
"contains": []
|
||||
},
|
||||
"/etc/ngcp-config/constants.yml": {
|
||||
"exists": true,
|
||||
"mode": "0644",
|
||||
"owner": "root",
|
||||
"group": "root",
|
||||
"filetype": "file",
|
||||
"contains": []
|
||||
},
|
||||
"/etc/ngcp-config/network.yml": {
|
||||
"exists": true,
|
||||
"mode": "0644",
|
||||
"owner": "root",
|
||||
"group": "root",
|
||||
"filetype": "file",
|
||||
"contains": []
|
||||
},
|
||||
"/etc/ngcp_version": {
|
||||
"exists": true,
|
||||
"mode": "0644",
|
||||
"owner": "root",
|
||||
"group": "root",
|
||||
"filetype": "file",
|
||||
"contains": []
|
||||
},
|
||||
"/etc/sipwise_ngcp_version": {
|
||||
"exists": true,
|
||||
"mode": "0644",
|
||||
"owner": "root",
|
||||
"group": "root",
|
||||
"filetype": "file",
|
||||
"contains": []
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,48 @@
|
||||
file:
|
||||
/etc/apt/sources.list.d/sipwise.list:
|
||||
exists: true
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
filetype: file
|
||||
contains: []
|
||||
|
||||
/etc/ngcp-config/config.yml:
|
||||
exists: true
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
filetype: file
|
||||
contains: []
|
||||
|
||||
/etc/ngcp-config/constants.yml:
|
||||
exists: true
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
filetype: file
|
||||
contains: []
|
||||
|
||||
/etc/ngcp-config/network.yml:
|
||||
exists: true
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
filetype: file
|
||||
contains: []
|
||||
|
||||
/etc/ngcp_version:
|
||||
exists: true
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
filetype: file
|
||||
contains: []
|
||||
|
||||
/etc/sipwise_ngcp_version:
|
||||
exists: true
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
filetype: file
|
||||
contains: []
|
||||
@ -1,11 +0,0 @@
|
||||
{
|
||||
"command": {
|
||||
"ls -la /var/cores/core.*": {
|
||||
"exit-status": 2,
|
||||
"stdout": [],
|
||||
"stderr": [
|
||||
"ls: cannot access /var/cores/core.*: No such file or directory"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,6 @@
|
||||
command:
|
||||
"ls -la /var/cores/core.*":
|
||||
exit-status: 2
|
||||
stdout: []
|
||||
stderr:
|
||||
- "ls: cannot access /var/cores/core.*: No such file or directory"
|
||||
@ -1,9 +0,0 @@
|
||||
{
|
||||
"command": {
|
||||
"find /etc/ngcp-config/templates/ -type f ! \\( -name *.dpkg-dist -o -name *.dpkg-old -o -name *.dpkg-new -o -name *.dpkg-remove -o -name *.dpkg-bak -o -name *.dpkg-del \\) -print0 |xargs -0 dpkg -S \u003e/dev/null": {
|
||||
"exit-status": 0,
|
||||
"stdout": [],
|
||||
"stderr": []
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
command:
|
||||
"find /etc/ngcp-config/templates/ -type f ! \\( -name *.dpkg-dist -o -name *.dpkg-old -o -name *.dpkg-new -o -name *.dpkg-remove -o -name *.dpkg-bak -o -name *.dpkg-del \\) -print0 |xargs -0 dpkg -S \u003e/dev/null":
|
||||
exit-status: 0
|
||||
stdout: []
|
||||
stderr: []
|
||||
@ -1,139 +0,0 @@
|
||||
{
|
||||
"group": {
|
||||
"cdrexport": {
|
||||
"exists": true,
|
||||
"gid": 10001
|
||||
},
|
||||
"daemon": {
|
||||
"exists": true,
|
||||
"gid": 1
|
||||
},
|
||||
"kamailio": {
|
||||
"exists": true
|
||||
},
|
||||
"mysql": {
|
||||
"exists": true
|
||||
},
|
||||
"ntp": {
|
||||
"exists": true
|
||||
},
|
||||
"prosody": {
|
||||
"exists": true
|
||||
},
|
||||
"redis": {
|
||||
"exists": true
|
||||
},
|
||||
"root": {
|
||||
"exists": true,
|
||||
"gid": 0
|
||||
},
|
||||
"sems": {
|
||||
"exists": true
|
||||
},
|
||||
"sipwise": {
|
||||
"exists": true,
|
||||
"gid": 10000
|
||||
},
|
||||
"ssh": {
|
||||
"exists": true
|
||||
},
|
||||
"ssl-cert": {
|
||||
"exists": true
|
||||
},
|
||||
"sudo": {
|
||||
"exists": true
|
||||
},
|
||||
"www-data": {
|
||||
"exists": true
|
||||
}
|
||||
},
|
||||
"user": {
|
||||
"": {
|
||||
"exists": false
|
||||
},
|
||||
"cdrexport": {
|
||||
"exists": true,
|
||||
"uid": 10001,
|
||||
"gid": 10001,
|
||||
"groups": [
|
||||
"cdrexport"
|
||||
],
|
||||
"home": "/home/jail/home/cdrexport"
|
||||
},
|
||||
"kamailio": {
|
||||
"exists": true,
|
||||
"groups": [
|
||||
"kamailio",
|
||||
"ssl-cert"
|
||||
],
|
||||
"home": "/var/run/kamailio"
|
||||
},
|
||||
"mysql": {
|
||||
"exists": true,
|
||||
"groups": [
|
||||
"mysql"
|
||||
],
|
||||
"home": "/nonexistent"
|
||||
},
|
||||
"nobody": {
|
||||
"exists": true,
|
||||
"groups": [
|
||||
"nogroup"
|
||||
],
|
||||
"home": "/nonexistent"
|
||||
},
|
||||
"prosody": {
|
||||
"exists": true,
|
||||
"groups": [
|
||||
"prosody",
|
||||
"ssl-cert"
|
||||
],
|
||||
"home": "/var/lib/prosody"
|
||||
},
|
||||
"proxy": {
|
||||
"exists": true,
|
||||
"groups": [
|
||||
"proxy"
|
||||
],
|
||||
"home": "/bin"
|
||||
},
|
||||
"redis": {
|
||||
"exists": true,
|
||||
"groups": [
|
||||
"redis"
|
||||
],
|
||||
"home": "/var/lib/redis"
|
||||
},
|
||||
"sems": {
|
||||
"exists": true,
|
||||
"groups": [
|
||||
"sems"
|
||||
],
|
||||
"home": "/var/run/ngcp-sems"
|
||||
},
|
||||
"sipwise": {
|
||||
"exists": true,
|
||||
"uid": 10000,
|
||||
"gid": 10000,
|
||||
"groups": [
|
||||
"sipwise"
|
||||
],
|
||||
"home": "/var/sipwise"
|
||||
},
|
||||
"sshd": {
|
||||
"exists": true,
|
||||
"groups": [
|
||||
"nogroup"
|
||||
],
|
||||
"home": "/var/run/sshd"
|
||||
},
|
||||
"www-data": {
|
||||
"exists": true,
|
||||
"groups": [
|
||||
"ssl-cert",
|
||||
"www-data"
|
||||
],
|
||||
"home": "/var/www"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,123 @@
|
||||
group:
|
||||
cdrexport:
|
||||
exists: true
|
||||
gid: 10001
|
||||
|
||||
daemon:
|
||||
exists: true
|
||||
gid: 1
|
||||
|
||||
kamailio:
|
||||
exists: true
|
||||
|
||||
mysql:
|
||||
exists: true
|
||||
|
||||
ntp:
|
||||
exists: true
|
||||
|
||||
prosody:
|
||||
exists: true
|
||||
|
||||
redis:
|
||||
exists: true
|
||||
|
||||
root:
|
||||
exists: true
|
||||
gid: 0
|
||||
|
||||
sems:
|
||||
exists: true
|
||||
|
||||
sipwise:
|
||||
exists: true
|
||||
gid: 10000
|
||||
|
||||
ssh:
|
||||
exists: true
|
||||
|
||||
ssl-cert:
|
||||
exists: true
|
||||
|
||||
sudo:
|
||||
exists: true
|
||||
|
||||
www-data:
|
||||
exists: true
|
||||
|
||||
user:
|
||||
"":
|
||||
exists: false
|
||||
|
||||
cdrexport:
|
||||
exists: true
|
||||
uid: 10001
|
||||
gid: 10001
|
||||
groups:
|
||||
- cdrexport
|
||||
home: "/home/jail/home/cdrexport"
|
||||
|
||||
kamailio:
|
||||
exists: true
|
||||
groups:
|
||||
- kamailio
|
||||
- ssl-cert
|
||||
home: "/var/run/kamailio"
|
||||
|
||||
mysql:
|
||||
exists: true
|
||||
groups:
|
||||
- mysql
|
||||
home: "/nonexistent"
|
||||
|
||||
nobody:
|
||||
exists: true
|
||||
groups:
|
||||
- nogroup
|
||||
home: "/nonexistent"
|
||||
|
||||
prosody:
|
||||
exists: true
|
||||
groups:
|
||||
- prosody
|
||||
- ssl-cert
|
||||
home: "/var/lib/prosody"
|
||||
|
||||
proxy:
|
||||
exists: true
|
||||
groups:
|
||||
- proxy
|
||||
home: "/bin"
|
||||
|
||||
redis:
|
||||
exists: true
|
||||
groups:
|
||||
- redis
|
||||
home: "/var/lib/redis"
|
||||
|
||||
sems:
|
||||
exists: true
|
||||
groups:
|
||||
- sems
|
||||
home: "/var/run/ngcp-sems"
|
||||
|
||||
sipwise:
|
||||
exists: true
|
||||
uid: 10000
|
||||
gid: 10000
|
||||
groups:
|
||||
- sipwise
|
||||
home: "/var/sipwise"
|
||||
|
||||
sshd:
|
||||
exists: true
|
||||
groups:
|
||||
- nogroup
|
||||
home: "/var/run/sshd"
|
||||
|
||||
www-data:
|
||||
exists: true
|
||||
groups:
|
||||
- ssl-cert
|
||||
- www-data
|
||||
home: "/var/www"
|
||||
@ -1,13 +0,0 @@
|
||||
{
|
||||
"package": {
|
||||
"ngcp-ngcp-ce": {
|
||||
"installed": true
|
||||
},
|
||||
"ngcp-ngcp-pro": {
|
||||
"installed": false
|
||||
},
|
||||
"ngcp-ngcp-carrier": {
|
||||
"installed": false
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,9 @@
|
||||
package:
|
||||
ngcp-ngcp-ce:
|
||||
installed: true
|
||||
|
||||
ngcp-ngcp-pro:
|
||||
installed: false
|
||||
|
||||
ngcp-ngcp-carrier:
|
||||
installed: false
|
||||
@ -1,84 +0,0 @@
|
||||
{
|
||||
"service": {
|
||||
"acpid": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
"asterisk": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
"collectd": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
"cron": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
"exim4": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
"io-scheduler": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
"kamailio-lb": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
"kamailio-proxy": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
"mediator": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
"motd": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
"mysql": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
"ngcp-rate-o-mat": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
"ngcp-rtpengine-daemon": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
"ngcp-sems": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
"nginx": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
"ntp": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
"prosody": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
"redis-server": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
"rsyslog": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
"ssh": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,80 @@
|
||||
service:
|
||||
acpid:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
asterisk:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
collectd:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
cron:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
exim4:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
io-scheduler:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
kamailio-lb:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
kamailio-proxy:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
mediator:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
motd:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
mysql:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
ngcp-rate-o-mat:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
ngcp-rtpengine-daemon:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
ngcp-sems:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
nginx:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
ntp:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
prosody:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
redis-server:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
rsyslog:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
ssh:
|
||||
enabled: true
|
||||
running: true
|
||||
@ -1,17 +0,0 @@
|
||||
{
|
||||
"port": {
|
||||
"tcp:1443": {
|
||||
"listening": true
|
||||
},
|
||||
"tcp:22": {
|
||||
"listening": true
|
||||
},
|
||||
"tcp:443": {
|
||||
"listening": true
|
||||
},
|
||||
"tcp6:80": {
|
||||
"comment": "why Ipv4 is not here?",
|
||||
"listening": true
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
port:
|
||||
tcp:1443:
|
||||
listening: true
|
||||
|
||||
tcp:22:
|
||||
listening: true
|
||||
|
||||
tcp:443:
|
||||
listening: true
|
||||
|
||||
tcp6:80:
|
||||
# why Ipv4 is not here?
|
||||
listening: true
|
||||
@ -1,20 +0,0 @@
|
||||
{
|
||||
"dns": {
|
||||
[% IF sipwise.system_tester.skip_dns_check_test != "true" -%]
|
||||
"spce": {
|
||||
"resolveable": true,
|
||||
"addrs": [
|
||||
"127.0.0.2"
|
||||
],
|
||||
"timeout": 500
|
||||
},
|
||||
[% END -%]
|
||||
"localhost": {
|
||||
"resolveable": true,
|
||||
"addrs": [
|
||||
"127.0.0.1"
|
||||
],
|
||||
"timeout": 500
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
dns:
|
||||
[% IF sipwise.system_tester.skip_dns_check_test != "true" -%]
|
||||
spce:
|
||||
resolveable: true
|
||||
addrs:
|
||||
- 127.0.0.2
|
||||
timeout: 500
|
||||
|
||||
[% END -%]
|
||||
localhost:
|
||||
resolveable: true
|
||||
addrs:
|
||||
- 127.0.0.1
|
||||
timeout: 500
|
||||
@ -1,237 +0,0 @@
|
||||
[% PROCESS '/usr/lib/ngcp-ngcpcfg/get_hostname'; hostname = out -%]
|
||||
[% argv.host=hostname; argv.type='web_ext';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_shared_ips_for_host';
|
||||
web_ext_ips = out
|
||||
-%]
|
||||
[% IF !web_ext_ips.size -%]
|
||||
[% argv.host=hostname; argv.type='web_ext';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_ips_for_host';
|
||||
web_ext_ips = out;
|
||||
-%]
|
||||
[% END -%]
|
||||
[% argv.host=hostname; argv.type='web_int';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_shared_ips_for_host';
|
||||
web_int_ips = out
|
||||
-%]
|
||||
[% IF !web_int_ips.size -%]
|
||||
[% argv.host=hostname; argv.type='web_int';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_ips_for_host';
|
||||
web_int_ips = out;
|
||||
-%]
|
||||
[% END -%]
|
||||
[%
|
||||
argv.host=hostname; argv.type='api_int';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_shared_ips_for_host';
|
||||
api_int_ips = out;
|
||||
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_ips_for_host';
|
||||
api_int_ips = out.merge(api_int_ips);
|
||||
|
||||
argv.role='mgmt';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
||||
is_mgmt = out;
|
||||
|
||||
argv.role='li';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
||||
is_li = out;
|
||||
is_li_enabled = is_li && cluster_sets.type == 'distributed' && intercept.enabled == 'yes';
|
||||
-%]
|
||||
|
||||
{
|
||||
"command": {
|
||||
"curl --insecure -L http://[% web_ext_ips.0 -%]/": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/Subscriber Sign In/"
|
||||
],
|
||||
"stderr": [],
|
||||
"timeout": 30000
|
||||
},
|
||||
"curl --insecure -L https://[% web_ext_ips.0 -%]/": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/Subscriber Sign In/"
|
||||
],
|
||||
"stderr": [],
|
||||
"timeout": 30000
|
||||
},
|
||||
|
||||
"curl --insecure -L http://[% web_int_ips.0 -%]/login/admin": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/Admin Sign In/"
|
||||
],
|
||||
"stderr": [],
|
||||
"timeout": 30000
|
||||
},
|
||||
"curl --insecure -L https://[% web_int_ips.0 -%]/login/admin": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/Admin Sign In/"
|
||||
],
|
||||
"stderr": [],
|
||||
"timeout": 30000
|
||||
},
|
||||
|
||||
"curl --insecure -L http://[% web_int_ips.0 -%]:1443": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/Admin Sign In/"
|
||||
],
|
||||
"stderr": [],
|
||||
"timeout": 30000
|
||||
},
|
||||
"curl --insecure -L https://[% web_int_ips.0 -%]:1443": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/Admin Sign In/"
|
||||
],
|
||||
"stderr": [],
|
||||
"timeout": 30000
|
||||
},
|
||||
|
||||
"curl --insecure -L http://[% web_ext_ips.0 -%]:1443/login/subscriber": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/Subscriber Sign In/"
|
||||
],
|
||||
"stderr": [],
|
||||
"timeout": 30000
|
||||
},
|
||||
"curl --insecure -L https://[% web_ext_ips.0 -%]:1443/login/subscriber": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/Subscriber Sign In/"
|
||||
],
|
||||
"stderr": [],
|
||||
"timeout": 30000
|
||||
},
|
||||
|
||||
"curl --insecure -L http://[% web_int_ips.0 -%]:1443/api/": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/Authorization required/"
|
||||
],
|
||||
"stderr": [],
|
||||
"timeout": 10000
|
||||
},
|
||||
"curl --insecure -L https://[% web_int_ips.0 -%]:1443/api/": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/Authorization required/"
|
||||
],
|
||||
"stderr": [],
|
||||
"timeout": 10000
|
||||
},
|
||||
"curl --insecure -L http://administrator:administrator@[% web_int_ips.0 -%]:1443/api/": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/Authorization required/"
|
||||
],
|
||||
"stderr": [],
|
||||
"timeout": 10000
|
||||
},
|
||||
"curl --insecure -L https://administrator:administrator@[% web_int_ips.0 -%]:1443/api/": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/Sipwise NGCP HTTP API documentation/"
|
||||
],
|
||||
"stderr": [],
|
||||
"timeout": 30000
|
||||
},
|
||||
|
||||
"curl --insecure -L http://[% web_ext_ips.0 -%]/api/": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/Authorization required/"
|
||||
],
|
||||
"stderr": [],
|
||||
"timeout": 10000
|
||||
},
|
||||
"curl --insecure -L https://[% web_ext_ips.0 -%]/api/": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/Authorization required/"
|
||||
],
|
||||
"stderr": [],
|
||||
"timeout": 10000
|
||||
},
|
||||
|
||||
"curl --insecure -L http://administrator:administrator@[% web_int_ips.0 -%]/api/": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/Authorization required/"
|
||||
],
|
||||
"stderr": [],
|
||||
"timeout": 10000
|
||||
},
|
||||
"curl --insecure -L https://administrator:administrator@[% web_int_ips.0 -%]/api/": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/Authorization required/"
|
||||
],
|
||||
"stderr": [],
|
||||
"timeout": 10000
|
||||
},
|
||||
|
||||
[% IF www_admin.enabled == 'yes' && (is_mgmt || is_li_enabled) -%]
|
||||
"curl -H 'NGCP-UserAgent: NGCP::API::Client' --insecure -L https://[% credentials.rest_api.auth_system.u %]:[% credentials.rest_api.auth_system.p %]@[% api_int_ips.0 -%]:[% www_admin.http_system.port %]/api/": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/Sipwise NGCP HTTP API documentation/"
|
||||
],
|
||||
"stderr": [],
|
||||
"timeout": 30000
|
||||
},
|
||||
"curl -H 'NGCP-UserAgent: NGCP::API::Client' --insecure -L http://[% credentials.rest_api.auth_system.u %]:[% credentials.rest_api.auth_system.p %]@[% api_int_ips.0 -%]:[% www_admin.http_system.port %]/api/": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/Authorization required/"
|
||||
],
|
||||
"stderr": [],
|
||||
"timeout": 10000
|
||||
},
|
||||
"curl -H 'NGCP-UserAgent: NGCP::API::Client' --insecure -L https://fakeuser:[% credentials.rest_api.auth_system.p %]@[% api_int_ips.0 -%]:[% www_admin.http_system.port %]/api/": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/Authorization required/"
|
||||
],
|
||||
"stderr": [],
|
||||
"timeout": 10000
|
||||
},
|
||||
"curl -H 'NGCP-UserAgent: NGCP::API::Client' --insecure -L https://[% credentials.rest_api.auth_system.u %]:wrongpassword@[% api_int_ips.0 -%]:[% www_admin.http_system.port %]/api/": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/Authorization required/"
|
||||
],
|
||||
"stderr": [],
|
||||
"timeout": 10000
|
||||
},
|
||||
"curl -H 'NGCP-UserAgent: NGCP::API::Client' --insecure -L https://administrator:administrator@[% api_int_ips.0 -%]:[% www_admin.http_system.port %]/api/": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/Authorization required/"
|
||||
],
|
||||
"stderr": [],
|
||||
"timeout": 10000
|
||||
},
|
||||
"curl --insecure -L https://[% credentials.rest_api.auth_system.u %]:[% credentials.rest_api.auth_system.p %]@[% api_int_ips.0 -%]:[% www_admin.http_system.port %]/api/": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/Authorization required/"
|
||||
],
|
||||
"stderr": [],
|
||||
"timeout": 10000
|
||||
},
|
||||
[% END -%]
|
||||
|
||||
"curl -L http://localhost:8081/nginx_status": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/Active connections: [0-9]+/"
|
||||
],
|
||||
"stderr": [],
|
||||
"timeout": 10000
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,211 @@
|
||||
[% PROCESS '/usr/lib/ngcp-ngcpcfg/get_hostname'; hostname = out -%]
|
||||
[% argv.host=hostname; argv.type='web_ext';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_shared_ips_for_host';
|
||||
web_ext_ips = out
|
||||
-%]
|
||||
[% IF !web_ext_ips.size -%]
|
||||
[% argv.host=hostname; argv.type='web_ext';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_ips_for_host';
|
||||
web_ext_ips = out;
|
||||
-%]
|
||||
[% END -%]
|
||||
[% argv.host=hostname; argv.type='web_int';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_shared_ips_for_host';
|
||||
web_int_ips = out
|
||||
-%]
|
||||
[% IF !web_int_ips.size -%]
|
||||
[% argv.host=hostname; argv.type='web_int';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_ips_for_host';
|
||||
web_int_ips = out;
|
||||
-%]
|
||||
[% END -%]
|
||||
[%
|
||||
argv.host=hostname; argv.type='api_int';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_shared_ips_for_host';
|
||||
api_int_ips = out;
|
||||
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_ips_for_host';
|
||||
api_int_ips = out.merge(api_int_ips);
|
||||
|
||||
argv.role='mgmt';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
||||
is_mgmt = out;
|
||||
|
||||
argv.role='li';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
||||
is_li = out;
|
||||
is_li_enabled = is_li && cluster_sets.type == 'distributed' && intercept.enabled == 'yes';
|
||||
-%]
|
||||
|
||||
command:
|
||||
|
||||
"curl --insecure -L http://[% web_ext_ips.0 -%]/":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/Subscriber Sign In/"
|
||||
stderr: []
|
||||
timeout: 30000
|
||||
|
||||
"curl --insecure -L https://[% web_ext_ips.0 -%]/":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/Subscriber Sign In/"
|
||||
stderr: []
|
||||
timeout: 30000
|
||||
|
||||
|
||||
"curl --insecure -L http://[% web_int_ips.0 -%]/login/admin":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/Admin Sign In/"
|
||||
stderr: []
|
||||
timeout: 30000
|
||||
|
||||
"curl --insecure -L https://[% web_int_ips.0 -%]/login/admin":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/Admin Sign In/"
|
||||
stderr: []
|
||||
timeout: 30000
|
||||
|
||||
|
||||
"curl --insecure -L http://[% web_int_ips.0 -%]:1443":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/Admin Sign In/"
|
||||
stderr: []
|
||||
timeout: 30000
|
||||
|
||||
"curl --insecure -L https://[% web_int_ips.0 -%]:1443":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/Admin Sign In/"
|
||||
stderr: []
|
||||
timeout: 30000
|
||||
|
||||
|
||||
"curl --insecure -L http://[% web_ext_ips.0 -%]:1443/login/subscriber":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/Subscriber Sign In/"
|
||||
stderr: []
|
||||
timeout: 30000
|
||||
|
||||
"curl --insecure -L https://[% web_ext_ips.0 -%]:1443/login/subscriber":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/Subscriber Sign In/"
|
||||
stderr: []
|
||||
timeout: 30000
|
||||
|
||||
|
||||
"curl --insecure -L http://[% web_int_ips.0 -%]:1443/api/":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/Authorization required/"
|
||||
stderr: []
|
||||
timeout: 10000
|
||||
|
||||
"curl --insecure -L https://[% web_int_ips.0 -%]:1443/api/":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/Authorization required/"
|
||||
stderr: []
|
||||
timeout: 10000
|
||||
|
||||
"curl --insecure -L http://administrator:administrator@[% web_int_ips.0 -%]:1443/api/":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/Authorization required/"
|
||||
stderr: []
|
||||
timeout: 10000
|
||||
|
||||
"curl --insecure -L https://administrator:administrator@[% web_int_ips.0 -%]:1443/api/":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/Sipwise NGCP HTTP API documentation/"
|
||||
stderr: []
|
||||
timeout: 30000
|
||||
|
||||
|
||||
"curl --insecure -L http://[% web_ext_ips.0 -%]/api/":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/Authorization required/"
|
||||
stderr: []
|
||||
timeout: 10000
|
||||
|
||||
"curl --insecure -L https://[% web_ext_ips.0 -%]/api/":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/Authorization required/"
|
||||
stderr: []
|
||||
timeout: 10000
|
||||
|
||||
|
||||
"curl --insecure -L http://administrator:administrator@[% web_int_ips.0 -%]/api/":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/Authorization required/"
|
||||
stderr: []
|
||||
timeout: 10000
|
||||
|
||||
"curl --insecure -L https://administrator:administrator@[% web_int_ips.0 -%]/api/":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/Authorization required/"
|
||||
stderr: []
|
||||
timeout: 10000
|
||||
|
||||
|
||||
[% IF www_admin.enabled == 'yes' && (is_mgmt || is_li_enabled) -%]
|
||||
"curl -H 'NGCP-UserAgent: NGCP::API::Client' --insecure -L https://[% credentials.rest_api.auth_system.u %]:[% credentials.rest_api.auth_system.p %]@[% api_int_ips.0 -%]:[% www_admin.http_system.port %]/api/":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/Sipwise NGCP HTTP API documentation/"
|
||||
stderr: []
|
||||
timeout: 30000
|
||||
|
||||
"curl -H 'NGCP-UserAgent: NGCP::API::Client' --insecure -L http://[% credentials.rest_api.auth_system.u %]:[% credentials.rest_api.auth_system.p %]@[% api_int_ips.0 -%]:[% www_admin.http_system.port %]/api/":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/Authorization required/"
|
||||
stderr: []
|
||||
timeout: 10000
|
||||
|
||||
"curl -H 'NGCP-UserAgent: NGCP::API::Client' --insecure -L https://fakeuser:[% credentials.rest_api.auth_system.p %]@[% api_int_ips.0 -%]:[% www_admin.http_system.port %]/api/":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/Authorization required/"
|
||||
stderr: []
|
||||
timeout: 10000
|
||||
|
||||
"curl -H 'NGCP-UserAgent: NGCP::API::Client' --insecure -L https://[% credentials.rest_api.auth_system.u %]:wrongpassword@[% api_int_ips.0 -%]:[% www_admin.http_system.port %]/api/":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/Authorization required/"
|
||||
stderr: []
|
||||
timeout: 10000
|
||||
|
||||
"curl -H 'NGCP-UserAgent: NGCP::API::Client' --insecure -L https://administrator:administrator@[% api_int_ips.0 -%]:[% www_admin.http_system.port %]/api/":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/Authorization required/"
|
||||
stderr: []
|
||||
timeout: 10000
|
||||
|
||||
"curl --insecure -L https://[% credentials.rest_api.auth_system.u %]:[% credentials.rest_api.auth_system.p %]@[% api_int_ips.0 -%]:[% www_admin.http_system.port %]/api/":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/Authorization required/"
|
||||
stderr: []
|
||||
timeout: 10000
|
||||
|
||||
[% END -%]
|
||||
|
||||
"curl -L http://localhost:8081/nginx_status":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/Active connections: [0-9]+/"
|
||||
stderr: []
|
||||
timeout: 10000
|
||||
@ -1,14 +0,0 @@
|
||||
{
|
||||
"command": {
|
||||
"false": {
|
||||
"exit-status": 1,
|
||||
"stdout": [],
|
||||
"stderr": []
|
||||
},
|
||||
"true": {
|
||||
"exit-status": 0,
|
||||
"stdout": [],
|
||||
"stderr": []
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,9 @@
|
||||
command:
|
||||
false:
|
||||
exit-status: 1
|
||||
stdout: []
|
||||
stderr: []
|
||||
true:
|
||||
exit-status: 0
|
||||
stdout: []
|
||||
stderr: []
|
||||
@ -1,18 +0,0 @@
|
||||
{
|
||||
"gossfile": {
|
||||
"01_running-processes.json": {},
|
||||
"01_hostname-and-interfaces.json": {},
|
||||
"02_disk-free.json": {},
|
||||
"03_files_availability.json": {},
|
||||
"03_no-cores.json": {},
|
||||
"03_open_ports.json": {},
|
||||
"04_template_files.json": {},
|
||||
"05_system_users.json": {},
|
||||
"06_system_packages.json": {},
|
||||
"07_system_service.json": {},
|
||||
"08_system_ports.json": {},
|
||||
"09_system_dns.json": {},
|
||||
"10_sites_ok.json": {},
|
||||
"99_dummy.json": {}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
gossfile:
|
||||
01_running-processes.yaml: {}
|
||||
01_hostname-and-interfaces.yaml: {}
|
||||
02_disk-free.yaml: {}
|
||||
03_files_availability.yaml: {}
|
||||
03_no-cores.yaml: {}
|
||||
03_open_ports.yaml: {}
|
||||
04_template_files.yaml: {}
|
||||
05_system_users.yaml: {}
|
||||
06_system_packages.yaml: {}
|
||||
07_system_service.yaml: {}
|
||||
08_system_ports.yaml: {}
|
||||
09_system_dns.yaml: {}
|
||||
10_sites_ok.yaml: {}
|
||||
99_dummy.yaml: {}
|
||||
@ -1,42 +0,0 @@
|
||||
{
|
||||
"command": {
|
||||
"hostname": {
|
||||
"exit-status": 0
|
||||
},
|
||||
[% IF sipwise.system_tester.skip_strict_hostname_test != "true" %]
|
||||
"hostname": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/sp[1,2]/"
|
||||
],
|
||||
"stderr": []
|
||||
},
|
||||
"hostname --fqdn": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/sp[1,2]/"
|
||||
],
|
||||
"stderr": []
|
||||
},
|
||||
"hostname --short": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/sp[1,2]/"
|
||||
],
|
||||
"stderr": []
|
||||
},
|
||||
[% END -%]
|
||||
"[ $(hostname --short) = $(hostname --fqdn) ]": {
|
||||
"comment": "short hostname should be the same as fqdn (ignoring trailing dot)",
|
||||
"exit-status": 0,
|
||||
"stdout": [],
|
||||
"stderr": []
|
||||
},
|
||||
"[ $(resolveip -s $(hostname --fqdn)) = $(resolveip -s $(hostname --short)) ]": {
|
||||
"comment": "ip-s of short hostname and fqdn should be the same",
|
||||
"exit-status": 0,
|
||||
"stdout": [],
|
||||
"stderr": []
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
command:
|
||||
hostname:
|
||||
exit-status: 0
|
||||
|
||||
[% IF sipwise.system_tester.skip_strict_hostname_test != "true" %]
|
||||
hostname:
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/sp[1,2]/"
|
||||
stderr: []
|
||||
|
||||
"hostname --fqdn":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/sp[1,2]/"
|
||||
stderr: []
|
||||
|
||||
"hostname --short":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/sp[1,2]/"
|
||||
stderr: []
|
||||
|
||||
[% END -%]
|
||||
"[ $(hostname --short) = $(hostname --fqdn) ]":
|
||||
title: "short hostname should be the same as fqdn (ignoring trailing dot)"
|
||||
exit-status: 0
|
||||
stdout: []
|
||||
stderr: []
|
||||
|
||||
"[ $(resolveip -s $(hostname --fqdn)) = $(resolveip -s $(hostname --short)) ]":
|
||||
title: "ip-s of short hostname and fqdn should be the same"
|
||||
exit-status: 0
|
||||
stdout: []
|
||||
stderr: []
|
||||
@ -1,115 +0,0 @@
|
||||
{
|
||||
"command": {
|
||||
"pgrep -c -f '[l]ua5.1 /usr/bin/prosody'": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"1"
|
||||
],
|
||||
"stderr": []
|
||||
},
|
||||
"pgrep -c -f '[p]erl-fcgi-pm \\[NGCP::Panel\\]'": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"1"
|
||||
],
|
||||
"stderr": []
|
||||
},
|
||||
"pgrep -n -f '[k]amailio.*kamailio.proxy.pid'": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/[0-9]+/"
|
||||
],
|
||||
"stderr": []
|
||||
},
|
||||
"pgrep -n -f '[k]amailio.*kamailio.lb.pid'": {
|
||||
"exit-status": 0,
|
||||
"stdout": [
|
||||
"/[0-9]+/"
|
||||
],
|
||||
"stderr": []
|
||||
}
|
||||
},
|
||||
"process": {
|
||||
"acpid": {
|
||||
"running": true
|
||||
},
|
||||
"asterisk": {
|
||||
"running": true
|
||||
},
|
||||
"collectd": {
|
||||
"running": true
|
||||
},
|
||||
"collectdmon": {
|
||||
"running": true
|
||||
},
|
||||
"cron": {
|
||||
"running": true
|
||||
},
|
||||
"exim4": {
|
||||
"running": true
|
||||
},
|
||||
"glusterfs": {
|
||||
"running": true
|
||||
},
|
||||
"hb_watchdog": {
|
||||
"running": true
|
||||
},
|
||||
"heartbeat": {
|
||||
"running": true
|
||||
},
|
||||
"kamailio": {
|
||||
"running": true
|
||||
},
|
||||
"mediator": {
|
||||
"running": true
|
||||
},
|
||||
"mysqld": {
|
||||
"running": true
|
||||
},
|
||||
"mysqld_safe": {
|
||||
"running": true
|
||||
},
|
||||
"monit": {
|
||||
"running": true
|
||||
},
|
||||
"ngcp-faxserver": {
|
||||
"running": true
|
||||
},
|
||||
"ngcp-sems": {
|
||||
"running": true
|
||||
},
|
||||
"nginx": {
|
||||
"running": true
|
||||
},
|
||||
"ntpd": {
|
||||
"running": true
|
||||
},
|
||||
"perl-fcgi": {
|
||||
"running": true
|
||||
},
|
||||
"rate-o-mat": {
|
||||
"running": true
|
||||
},
|
||||
"redis-server": {
|
||||
"running": true
|
||||
},
|
||||
"rsyslogd": {
|
||||
"running": true
|
||||
},
|
||||
"rtpengine": {
|
||||
"running": true
|
||||
},
|
||||
"sshd": {
|
||||
"running": true
|
||||
},
|
||||
"snmpd": {
|
||||
"running": true
|
||||
},
|
||||
"udevd": {
|
||||
"running": true
|
||||
},
|
||||
"voisniff-ng": {
|
||||
"running": true
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,107 @@
|
||||
command:
|
||||
|
||||
"pgrep -c -f '[l]ua5.1 /usr/bin/prosody'":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "1"
|
||||
stderr: []
|
||||
|
||||
"pgrep -c -f '[p]erl-fcgi-pm \\[NGCP::Panel\\]'":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "1"
|
||||
stderr: []
|
||||
|
||||
"pgrep -n -f '[k]amailio.*kamailio.proxy.pid'":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/[0-9]+/"
|
||||
stderr: []
|
||||
|
||||
"pgrep -n -f '[k]amailio.*kamailio.lb.pid'":
|
||||
exit-status: 0
|
||||
stdout:
|
||||
- "/[0-9]+/"
|
||||
stderr: []
|
||||
|
||||
process:
|
||||
acpid:
|
||||
running: true
|
||||
|
||||
asterisk:
|
||||
running: true
|
||||
|
||||
collectd:
|
||||
running: true
|
||||
|
||||
collectdmon:
|
||||
running: true
|
||||
|
||||
cron:
|
||||
running: true
|
||||
|
||||
exim4:
|
||||
running: true
|
||||
|
||||
glusterfs:
|
||||
running: true
|
||||
|
||||
hb_watchdog:
|
||||
running: true
|
||||
|
||||
heartbeat:
|
||||
running: true
|
||||
|
||||
kamailio:
|
||||
running: true
|
||||
|
||||
mediator:
|
||||
running: true
|
||||
|
||||
mysqld:
|
||||
running: true
|
||||
|
||||
mysqld_safe:
|
||||
running: true
|
||||
|
||||
monit:
|
||||
running: true
|
||||
|
||||
ngcp-faxserver:
|
||||
running: true
|
||||
|
||||
ngcp-sems:
|
||||
running: true
|
||||
|
||||
nginx:
|
||||
running: true
|
||||
|
||||
ntpd:
|
||||
running: true
|
||||
|
||||
perl-fcgi:
|
||||
running: true
|
||||
|
||||
rate-o-mat:
|
||||
running: true
|
||||
|
||||
redis-server:
|
||||
running: true
|
||||
|
||||
rsyslogd:
|
||||
running: true
|
||||
|
||||
rtpengine:
|
||||
running: true
|
||||
|
||||
sshd:
|
||||
running: true
|
||||
|
||||
snmpd:
|
||||
running: true
|
||||
|
||||
udevd:
|
||||
running: true
|
||||
|
||||
voisniff-ng:
|
||||
running: true
|
||||
@ -1 +0,0 @@
|
||||
../ce/02_disk-free.json.tt2
|
||||
@ -0,0 +1 @@
|
||||
../ce/02_disk-free.yaml.tt2
|
||||
@ -1,52 +0,0 @@
|
||||
{
|
||||
"file": {
|
||||
"/etc/apt/sources.list.d/sipwise.list": {
|
||||
"exists": true,
|
||||
"mode": "0444",
|
||||
"owner": "root",
|
||||
"group": "root",
|
||||
"filetype": "file",
|
||||
"contains": []
|
||||
},
|
||||
"/etc/ngcp-config/config.yml": {
|
||||
"exists": true,
|
||||
"mode": "0644",
|
||||
"owner": "root",
|
||||
"group": "root",
|
||||
"filetype": "file",
|
||||
"contains": []
|
||||
},
|
||||
"/etc/ngcp-config/constants.yml": {
|
||||
"exists": true,
|
||||
"mode": "0644",
|
||||
"owner": "root",
|
||||
"group": "root",
|
||||
"filetype": "file",
|
||||
"contains": []
|
||||
},
|
||||
"/etc/ngcp-config/network.yml": {
|
||||
"exists": true,
|
||||
"mode": "0644",
|
||||
"owner": "root",
|
||||
"group": "root",
|
||||
"filetype": "file",
|
||||
"contains": []
|
||||
},
|
||||
"/etc/ngcp_version": {
|
||||
"exists": true,
|
||||
"mode": "0644",
|
||||
"owner": "root",
|
||||
"group": "root",
|
||||
"filetype": "file",
|
||||
"contains": []
|
||||
},
|
||||
"/etc/sipwise_ngcp_version": {
|
||||
"exists": true,
|
||||
"mode": "0644",
|
||||
"owner": "root",
|
||||
"group": "root",
|
||||
"filetype": "file",
|
||||
"contains": []
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,49 @@
|
||||
file:
|
||||
|
||||
/etc/apt/sources.list.d/sipwise.list:
|
||||
exists: true
|
||||
mode: "0444"
|
||||
owner: root
|
||||
group: root
|
||||
filetype: file
|
||||
contains: []
|
||||
|
||||
/etc/ngcp-config/config.yml:
|
||||
exists: true
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
filetype: file
|
||||
contains: []
|
||||
|
||||
/etc/ngcp-config/constants.yml:
|
||||
exists: true
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
filetype: file
|
||||
contains: []
|
||||
|
||||
/etc/ngcp-config/network.yml:
|
||||
exists: true
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
filetype: file
|
||||
contains: []
|
||||
|
||||
/etc/ngcp_version:
|
||||
exists: true
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
filetype: file
|
||||
contains: []
|
||||
|
||||
/etc/sipwise_ngcp_version:
|
||||
exists: true
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
filetype: file
|
||||
contains: []
|
||||
@ -1 +0,0 @@
|
||||
../ce/03_no-cores.json.tt2
|
||||
@ -0,0 +1 @@
|
||||
../ce/03_no-cores.yaml.tt2
|
||||
@ -1,193 +0,0 @@
|
||||
[% PROCESS '/usr/lib/ngcp-ngcpcfg/get_hostname'; hostname = out -%]
|
||||
[% argv.host=hostname; argv.role='proxy';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
||||
is_proxy = out
|
||||
-%]
|
||||
[% argv.host=hostname; argv.role='lb';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
||||
is_lb = out
|
||||
-%]
|
||||
[% argv.host=hostname; argv.role='mgmt';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
||||
is_mgmt = out
|
||||
-%]
|
||||
[% argv.host=hostname; argv.role='db';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
||||
is_db = out
|
||||
-%]
|
||||
[% argv.host=hostname; argv.role='rtp';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
||||
is_rtp = out
|
||||
-%]
|
||||
[% argv.host=hostname; argv.type='ha_int';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_iface';
|
||||
host_ha_iface = out
|
||||
-%]
|
||||
[% argv.host=hostname; argv.type='sip_ext';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_shared_ips_for_host';
|
||||
sip_ext_ips = out
|
||||
-%]
|
||||
[% IF !sip_ext_ips.size -%]
|
||||
[% argv.host=hostname; argv.type='sip_ext';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_ips_for_host';
|
||||
sip_ext_ips = out;
|
||||
-%]
|
||||
[% END -%]
|
||||
[% argv.host=hostname; argv.type='web_ext';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_shared_ips_for_host';
|
||||
web_ext_ips = out
|
||||
-%]
|
||||
[% IF !web_ext_ips.size -%]
|
||||
[% argv.host=hostname; argv.type='web_ext';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_ips_for_host';
|
||||
web_ext_ips = out;
|
||||
-%]
|
||||
[% END -%]
|
||||
[% argv.host=hostname; argv.type='web_int';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_shared_ips_for_host';
|
||||
web_int_ips = out
|
||||
-%]
|
||||
[% IF !web_int_ips.size -%]
|
||||
[% argv.host=hostname; argv.type='web_int';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_ips_for_host';
|
||||
web_int_ips = out;
|
||||
-%]
|
||||
[% END -%]
|
||||
{
|
||||
"port": {
|
||||
[% IF is_mgmt -%]
|
||||
"tcp:443": {
|
||||
"listening": true,
|
||||
"ip": ["127.0.0.1"]
|
||||
},
|
||||
"tcp:1443": {
|
||||
"listening": true,
|
||||
"ip": ["127.0.0.1"]
|
||||
},
|
||||
[% END -%]
|
||||
[% IF is_mgmt && pbx.enable == 'yes' -%]
|
||||
"tcp:1444": {
|
||||
"listening": true,
|
||||
"ip": ["[% web_ext_ips.0 -%]"]
|
||||
},
|
||||
"tcp:1445": {
|
||||
"listening": true,
|
||||
"ip": ["[% web_ext_ips.0 -%]"]
|
||||
},
|
||||
[% END -%]
|
||||
"tcp:22": {
|
||||
"listening": true,
|
||||
"ip": ["0.0.0.0"]
|
||||
},
|
||||
"tcp:22": {
|
||||
"listening": true,
|
||||
"ip": ["[% hosts.$hostname.$host_ha_iface.ip %]"]
|
||||
},
|
||||
"tcp:24009": {
|
||||
"listening": true,
|
||||
"ip": ["0.0.0.0"]
|
||||
},
|
||||
"tcp:25": {
|
||||
"listening": true,
|
||||
"ip": ["127.0.0.1"]
|
||||
},
|
||||
"tcp:2812": {
|
||||
"listening": true,
|
||||
"ip": ["127.0.0.1"]
|
||||
},
|
||||
"tcp:3306": {
|
||||
"listening": true,
|
||||
"ip": ["0.0.0.0"]
|
||||
},
|
||||
[% IF is_lb -%]
|
||||
"tcp:5060": {
|
||||
"listening": true,
|
||||
"ip": ["[% sip_ext_ips.0 -%]"]
|
||||
},
|
||||
[% END -%]
|
||||
[% IF is_proxy -%]
|
||||
"tcp:5062": {
|
||||
"listening": true,
|
||||
"ip": ["127.0.0.1"]
|
||||
},
|
||||
"tcp:5222": {
|
||||
"listening": true,
|
||||
"ip": ["[% sip_ext_ips.0 -%]"]
|
||||
},
|
||||
"tcp:5269": {
|
||||
"listening": true,
|
||||
"ip": ["[% sip_ext_ips.0 -%]"]
|
||||
},
|
||||
"tcp:5280": {
|
||||
"listening": true,
|
||||
"ip": ["127.0.0.1"]
|
||||
},
|
||||
"tcp:5281": {
|
||||
"listening": true,
|
||||
"ip": ["127.0.0.1"]
|
||||
},
|
||||
"tcp:5582": {
|
||||
"listening": true,
|
||||
"ip": ["127.0.0.1"]
|
||||
},
|
||||
"tcp:8090": {
|
||||
"listening": true,
|
||||
"ip": ["127.0.0.1"]
|
||||
},
|
||||
"tcp:5038": {
|
||||
"listening": true,
|
||||
"ip": ["127.0.0.1"]
|
||||
},
|
||||
"udp:5040": {
|
||||
"listening": true,
|
||||
"ip": ["127.0.0.1"]
|
||||
},
|
||||
"udp:5070": {
|
||||
"listening": true,
|
||||
"ip": ["127.0.0.1"]
|
||||
},
|
||||
"udp:5080": {
|
||||
"listening": true,
|
||||
"ip": ["127.0.0.1"]
|
||||
},
|
||||
[% END -%]
|
||||
[% IF is_rtp || is_proxy || is_db -%]
|
||||
"tcp:6379": {
|
||||
"listening": true,
|
||||
"ip": ["[% hosts.$hostname.$host_ha_iface.ip %]"]
|
||||
},
|
||||
[% END -%]
|
||||
"tcp:7777": {
|
||||
"listening": false
|
||||
},
|
||||
"udp:7777": {
|
||||
"listening": false
|
||||
},
|
||||
"udp:123": {
|
||||
"listening": true,
|
||||
"ip": ["0.0.0.0"]
|
||||
},
|
||||
"udp:161": {
|
||||
"listening": true,
|
||||
"ip": ["127.0.0.1"]
|
||||
},
|
||||
[% IF is_rtp -%]
|
||||
"udp:2223": {
|
||||
"listening": true,
|
||||
"ip": ["127.0.0.1"]
|
||||
},
|
||||
[% END -%]
|
||||
"udp:25826": {
|
||||
"listening": true,
|
||||
"ip": ["[% hosts.$hostname.$host_ha_iface.ip %]"]
|
||||
},
|
||||
"udp:[% heartbeat.port ? heartbeat.port : '694' %]": {
|
||||
"listening": true,
|
||||
"ip": ["0.0.0.0"]
|
||||
},
|
||||
"tcp:22": {
|
||||
"listening": true,
|
||||
"comment": "last record to keep JSON valid"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,191 @@
|
||||
[% PROCESS '/usr/lib/ngcp-ngcpcfg/get_hostname'; hostname = out -%]
|
||||
[% argv.host=hostname; argv.role='proxy';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
||||
is_proxy = out
|
||||
-%]
|
||||
[% argv.host=hostname; argv.role='lb';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
||||
is_lb = out
|
||||
-%]
|
||||
[% argv.host=hostname; argv.role='mgmt';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
||||
is_mgmt = out
|
||||
-%]
|
||||
[% argv.host=hostname; argv.role='db';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
||||
is_db = out
|
||||
-%]
|
||||
[% argv.host=hostname; argv.role='rtp';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
||||
is_rtp = out
|
||||
-%]
|
||||
[% argv.host=hostname; argv.type='ha_int';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_iface';
|
||||
host_ha_iface = out
|
||||
-%]
|
||||
[% argv.host=hostname; argv.type='sip_ext';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_shared_ips_for_host';
|
||||
sip_ext_ips = out
|
||||
-%]
|
||||
[% IF !sip_ext_ips.size -%]
|
||||
[% argv.host=hostname; argv.type='sip_ext';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_ips_for_host';
|
||||
sip_ext_ips = out;
|
||||
-%]
|
||||
[% END -%]
|
||||
[% argv.host=hostname; argv.type='web_ext';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_shared_ips_for_host';
|
||||
web_ext_ips = out
|
||||
-%]
|
||||
[% IF !web_ext_ips.size -%]
|
||||
[% argv.host=hostname; argv.type='web_ext';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_ips_for_host';
|
||||
web_ext_ips = out;
|
||||
-%]
|
||||
[% END -%]
|
||||
[% argv.host=hostname; argv.type='web_int';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_shared_ips_for_host';
|
||||
web_int_ips = out
|
||||
-%]
|
||||
[% IF !web_int_ips.size -%]
|
||||
[% argv.host=hostname; argv.type='web_int';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/get_all_ips_for_host';
|
||||
web_int_ips = out;
|
||||
-%]
|
||||
[% END -%]
|
||||
|
||||
port:
|
||||
|
||||
[% IF is_mgmt -%]
|
||||
tcp:443:
|
||||
listening: true
|
||||
ip: ["127.0.0.1"]
|
||||
|
||||
tcp:1443:
|
||||
listening: true
|
||||
ip: ["127.0.0.1"]
|
||||
|
||||
[% END -%]
|
||||
[% IF is_mgmt && pbx.enable == 'yes' -%]
|
||||
tcp:1444:
|
||||
listening: true
|
||||
ip: ["[% web_ext_ips.0 -%]"]
|
||||
|
||||
tcp:1445:
|
||||
listening: true
|
||||
ip: ["[% web_ext_ips.0 -%]"]
|
||||
|
||||
[% END -%]
|
||||
tcp:22:
|
||||
listening: true
|
||||
ip: ["0.0.0.0"]
|
||||
|
||||
tcp:22:
|
||||
listening: true
|
||||
ip: ["[% hosts.$hostname.$host_ha_iface.ip %]"]
|
||||
|
||||
tcp:24009:
|
||||
listening: true
|
||||
ip: ["0.0.0.0"]
|
||||
|
||||
tcp:25:
|
||||
listening: true
|
||||
ip: ["127.0.0.1"]
|
||||
|
||||
tcp:2812:
|
||||
listening: true
|
||||
ip: ["127.0.0.1"]
|
||||
|
||||
tcp:3306:
|
||||
listening: true
|
||||
ip: ["0.0.0.0"]
|
||||
|
||||
[% IF is_lb -%]
|
||||
tcp:5060:
|
||||
listening: true
|
||||
ip: ["[% sip_ext_ips.0 -%]"]
|
||||
|
||||
[% END -%]
|
||||
[% IF is_proxy -%]
|
||||
tcp:5062:
|
||||
listening: true
|
||||
ip: ["127.0.0.1"]
|
||||
|
||||
tcp:5222:
|
||||
listening: true
|
||||
ip: ["[% sip_ext_ips.0 -%]"]
|
||||
|
||||
tcp:5269:
|
||||
listening: true
|
||||
ip: ["[% sip_ext_ips.0 -%]"]
|
||||
|
||||
tcp:5280:
|
||||
listening: true
|
||||
ip: ["127.0.0.1"]
|
||||
|
||||
tcp:5281:
|
||||
listening: true
|
||||
ip: ["127.0.0.1"]
|
||||
|
||||
tcp:5582:
|
||||
listening: true
|
||||
ip: ["127.0.0.1"]
|
||||
|
||||
tcp:8090:
|
||||
listening: true
|
||||
ip: ["127.0.0.1"]
|
||||
|
||||
tcp:5038:
|
||||
listening: true
|
||||
ip: ["127.0.0.1"]
|
||||
|
||||
udp:5040:
|
||||
listening: true
|
||||
ip: ["127.0.0.1"]
|
||||
|
||||
udp:5070:
|
||||
listening: true
|
||||
ip: ["127.0.0.1"]
|
||||
|
||||
udp:5080:
|
||||
listening: true
|
||||
ip: ["127.0.0.1"]
|
||||
|
||||
[% END -%]
|
||||
[% IF is_rtp || is_proxy || is_db -%]
|
||||
tcp:6379:
|
||||
listening: true
|
||||
ip: ["[% hosts.$hostname.$host_ha_iface.ip %]"]
|
||||
|
||||
[% END -%]
|
||||
tcp:7777:
|
||||
listening: false
|
||||
|
||||
udp:7777:
|
||||
listening: false
|
||||
|
||||
udp:123:
|
||||
listening: true
|
||||
ip: ["0.0.0.0"]
|
||||
|
||||
udp:161:
|
||||
listening: true
|
||||
ip: ["127.0.0.1"]
|
||||
|
||||
[% IF is_rtp -%]
|
||||
udp:2223:
|
||||
listening: true
|
||||
ip: ["127.0.0.1"]
|
||||
|
||||
[% END -%]
|
||||
udp:25826:
|
||||
listening: true
|
||||
ip: ["[% hosts.$hostname.$host_ha_iface.ip %]"]
|
||||
|
||||
udp:[% heartbeat.port ? heartbeat.port : '694' %]:
|
||||
listening: true
|
||||
ip: ["0.0.0.0"]
|
||||
|
||||
tcp:22:
|
||||
# last record to keep JSON valid
|
||||
listening: true
|
||||
@ -1 +0,0 @@
|
||||
../ce/04_template_files.json.tt2
|
||||
@ -0,0 +1 @@
|
||||
../ce/04_template_files.yaml.tt2
|
||||
@ -1 +0,0 @@
|
||||
../ce/05_system_users.json.tt2
|
||||
@ -0,0 +1 @@
|
||||
../ce/05_system_users.yaml.tt2
|
||||
@ -1,13 +0,0 @@
|
||||
{
|
||||
"package": {
|
||||
"ngcp-ngcp-ce": {
|
||||
"installed": false
|
||||
},
|
||||
"ngcp-ngcp-pro": {
|
||||
"installed": true
|
||||
},
|
||||
"ngcp-ngcp-carrier": {
|
||||
"installed": false
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,9 @@
|
||||
package:
|
||||
ngcp-ngcp-ce:
|
||||
installed: false
|
||||
|
||||
ngcp-ngcp-pro:
|
||||
installed: true
|
||||
|
||||
ngcp-ngcp-carrier:
|
||||
installed: false
|
||||
@ -1,215 +0,0 @@
|
||||
[% PROCESS '/usr/lib/ngcp-ngcpcfg/get_hostname'; hostname = out -%]
|
||||
[% argv.host=hostname; argv.role='proxy';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
||||
is_proxy = out
|
||||
-%]
|
||||
[% argv.host=hostname; argv.role='lb';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
||||
is_lb = out
|
||||
-%]
|
||||
[% argv.host=hostname; argv.role='mgmt';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
||||
is_mgmt = out
|
||||
-%]
|
||||
[% argv.host=hostname; argv.role='db';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
||||
is_db = out
|
||||
-%]
|
||||
[% argv.host=hostname; argv.role='rtp';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
||||
is_rtp = out
|
||||
-%]
|
||||
[% PROCESS '/usr/lib/ngcp-ngcpcfg/get_ngcp_type'; ngcp_type = out -%]
|
||||
{
|
||||
"service": {
|
||||
"acpid": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
[% IF is_proxy && asterisk.enabled == "yes" -%]
|
||||
"asterisk": {
|
||||
"enabled": false,
|
||||
"running": true
|
||||
},
|
||||
[% END -%]
|
||||
[% IF (is_proxy || is_rtp) && intercept.enabled == "yes" -%]
|
||||
"captagent": {
|
||||
"enabled": false,
|
||||
"running": true
|
||||
},
|
||||
[% END -%]
|
||||
"collectd": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
[% IF turnserver.enabled == 'yes' -%]
|
||||
"coturn": {
|
||||
"enabled": false,
|
||||
"running": true
|
||||
},
|
||||
[% END -%]
|
||||
"cron": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
[% IF bootenv.dhcp.enable == 'yes' -%]
|
||||
"dnsmasq": {
|
||||
"enabled": false,
|
||||
"running": true
|
||||
},
|
||||
[% END -%]
|
||||
"exim4": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
[% IF haproxy.enable == "yes" -%]
|
||||
"haproxy": {
|
||||
"enabled": false,
|
||||
"running": true
|
||||
},
|
||||
[% END -%]
|
||||
[% IF heartbeat.hb_watchdog.enable == 'yes' -%]
|
||||
"hb_watchdog": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
[% END -%]
|
||||
"io-scheduler": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
[% IF is_lb && kamailio.lb.start == "yes" -%]
|
||||
"kamailio-lb": {
|
||||
"enabled": false,
|
||||
"running": true
|
||||
},
|
||||
[% ELSE -%]
|
||||
"kamailio-lb": {
|
||||
"enabled": false,
|
||||
"running": false
|
||||
},
|
||||
[% END -%]
|
||||
[% IF is_proxy && kamailio.proxy.start == "yes" -%]
|
||||
"kamailio-proxy": {
|
||||
"enabled": false,
|
||||
"running": true
|
||||
},
|
||||
[% ELSE -%]
|
||||
"kamailio-proxy": {
|
||||
"enabled": false,
|
||||
"running": false
|
||||
},
|
||||
[% END -%]
|
||||
[% IF mediator.enabled == 'yes' -%]
|
||||
"mediator": {
|
||||
"enabled": false,
|
||||
"running": true
|
||||
},
|
||||
[% END -%]
|
||||
"motd": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
"mysql": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
[% IF www_admin.enabled == 'yes' -%]
|
||||
"ngcp-panel": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
[% END -%]
|
||||
[% IF rateomat.enable == "yes" -%]
|
||||
"ngcp-rate-o-mat": {
|
||||
"enabled": false,
|
||||
"running": true
|
||||
},
|
||||
[% END -%]
|
||||
[% IF rtpproxy.enabled == "yes" -%]
|
||||
"ngcp-rtpengine-daemon": {
|
||||
"enabled": false,
|
||||
"running": true
|
||||
},
|
||||
[% END -%]
|
||||
[% IF sems.enabled == "yes" -%]
|
||||
|
||||
"ngcp-sems": {
|
||||
"enabled": false,
|
||||
"running": true
|
||||
},
|
||||
[% END -%]
|
||||
[% IF nginx.enabled == 'yes' -%]
|
||||
"nginx": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
[% END -%]
|
||||
"ntp": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
[% IF prosody.enabled == 'yes' -%]
|
||||
"prosody": {
|
||||
"enabled": false,
|
||||
"running": true
|
||||
},
|
||||
[% END -%]
|
||||
[% IF pushd.enable == "yes" -%]
|
||||
"ngcp-pushd": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
[% END -%]
|
||||
[% IF faxserver.enable == "yes" -%]
|
||||
"ngcp-faxserver": {
|
||||
"enabled": false,
|
||||
"running": true
|
||||
},
|
||||
[% END -%]
|
||||
[% IF redis.enabled == "yes" -%]
|
||||
"redis-server": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
[% END -%]
|
||||
"rsyslog": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
[% IF ldap.enabled == "yes" -%]
|
||||
"slapd": {
|
||||
"enabled": false,
|
||||
"running": true
|
||||
},
|
||||
[% END -%]
|
||||
[% IF pbx.enable == "yes" -%]
|
||||
"sems-pbx": {
|
||||
"enabled": false,
|
||||
"running": true
|
||||
},
|
||||
[% END -%]
|
||||
[% IF (is_proxy || is_lb || is_rtp) && voisniff.daemon.start == 'yes' -%]
|
||||
"voisniff-ng": {
|
||||
"enabled": false,
|
||||
"running": true
|
||||
},
|
||||
[% END -%]
|
||||
[% IF ngcp_type == 'carrier' -%]
|
||||
"ngcpcfg-api": {
|
||||
"enabled": false,
|
||||
"running": true
|
||||
},
|
||||
[% END -%]
|
||||
[% IF (is_db || is_mgmt) && ngcp_type == 'carrier' -%]
|
||||
"elasticsearch": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
},
|
||||
[% END -%]
|
||||
"ssh": {
|
||||
"enabled": true,
|
||||
"running": true
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,213 @@
|
||||
[% PROCESS '/usr/lib/ngcp-ngcpcfg/get_hostname'; hostname = out -%]
|
||||
[% argv.host=hostname; argv.role='proxy';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
||||
is_proxy = out
|
||||
-%]
|
||||
[% argv.host=hostname; argv.role='lb';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
||||
is_lb = out
|
||||
-%]
|
||||
[% argv.host=hostname; argv.role='mgmt';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
||||
is_mgmt = out
|
||||
-%]
|
||||
[% argv.host=hostname; argv.role='db';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
||||
is_db = out
|
||||
-%]
|
||||
[% argv.host=hostname; argv.role='rtp';
|
||||
PROCESS '/usr/lib/ngcp-ngcpcfg/has_role';
|
||||
is_rtp = out
|
||||
-%]
|
||||
[% PROCESS '/usr/lib/ngcp-ngcpcfg/get_ngcp_type'; ngcp_type = out -%]
|
||||
|
||||
service:
|
||||
|
||||
acpid:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
[% IF is_proxy && asterisk.enabled == "yes" -%]
|
||||
asterisk:
|
||||
enabled: false
|
||||
running: true
|
||||
|
||||
[% END -%]
|
||||
[% IF (is_proxy || is_rtp) && intercept.enabled == "yes" -%]
|
||||
captagent:
|
||||
enabled: false
|
||||
running: true
|
||||
|
||||
[% END -%]
|
||||
collectd:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
[% IF turnserver.enabled == 'yes' -%]
|
||||
coturn:
|
||||
enabled: false
|
||||
running: true
|
||||
|
||||
[% END -%]
|
||||
cron:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
[% IF bootenv.dhcp.enable == 'yes' -%]
|
||||
dnsmasq:
|
||||
enabled: false
|
||||
running: true
|
||||
|
||||
[% END -%]
|
||||
exim4:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
[% IF haproxy.enable == "yes" -%]
|
||||
haproxy:
|
||||
enabled: false
|
||||
running: true
|
||||
|
||||
[% END -%]
|
||||
[% IF heartbeat.hb_watchdog.enable == 'yes' -%]
|
||||
hb_watchdog:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
[% END -%]
|
||||
io-scheduler:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
[% IF is_lb && kamailio.lb.start == "yes" -%]
|
||||
kamailio-lb:
|
||||
enabled: false
|
||||
running: true
|
||||
|
||||
[% ELSE -%]
|
||||
kamailio-lb:
|
||||
enabled: false
|
||||
running: false
|
||||
|
||||
[% END -%]
|
||||
[% IF is_proxy && kamailio.proxy.start == "yes" -%]
|
||||
kamailio-proxy:
|
||||
enabled: false
|
||||
running: true
|
||||
|
||||
[% ELSE -%]
|
||||
kamailio-proxy:
|
||||
enabled: false
|
||||
running: false
|
||||
|
||||
[% END -%]
|
||||
[% IF mediator.enabled == 'yes' -%]
|
||||
mediator:
|
||||
enabled: false
|
||||
running: true
|
||||
|
||||
[% END -%]
|
||||
motd:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
mysql:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
[% IF www_admin.enabled == 'yes' -%]
|
||||
ngcp-panel:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
[% END -%]
|
||||
[% IF rateomat.enable == "yes" -%]
|
||||
ngcp-rate-o-mat:
|
||||
enabled: false
|
||||
running: true
|
||||
|
||||
[% END -%]
|
||||
[% IF rtpproxy.enabled == "yes" -%]
|
||||
ngcp-rtpengine-daemon:
|
||||
enabled: false
|
||||
running: true
|
||||
|
||||
[% END -%]
|
||||
[% IF sems.enabled == "yes" -%]
|
||||
|
||||
ngcp-sems:
|
||||
enabled: false
|
||||
running: true
|
||||
|
||||
[% END -%]
|
||||
[% IF nginx.enabled == 'yes' -%]
|
||||
nginx:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
[% END -%]
|
||||
ntp:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
[% IF prosody.enabled == 'yes' -%]
|
||||
prosody:
|
||||
enabled: false
|
||||
running: true
|
||||
|
||||
[% END -%]
|
||||
[% IF pushd.enable == "yes" -%]
|
||||
ngcp-pushd:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
[% END -%]
|
||||
[% IF faxserver.enable == "yes" -%]
|
||||
ngcp-faxserver:
|
||||
enabled: false
|
||||
running: true
|
||||
|
||||
[% END -%]
|
||||
[% IF redis.enabled == "yes" -%]
|
||||
redis-server:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
[% END -%]
|
||||
rsyslog:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
[% IF ldap.enabled == "yes" -%]
|
||||
slapd:
|
||||
enabled: false
|
||||
running: true
|
||||
|
||||
[% END -%]
|
||||
[% IF pbx.enable == "yes" -%]
|
||||
sems-pbx:
|
||||
enabled: false
|
||||
running: true
|
||||
|
||||
[% END -%]
|
||||
[% IF (is_proxy || is_lb || is_rtp) && voisniff.daemon.start == 'yes' -%]
|
||||
voisniff-ng:
|
||||
enabled: false
|
||||
running: true
|
||||
|
||||
[% END -%]
|
||||
[% IF ngcp_type == 'carrier' -%]
|
||||
ngcpcfg-api:
|
||||
enabled: false
|
||||
running: true
|
||||
|
||||
[% END -%]
|
||||
[% IF (is_db || is_mgmt) && ngcp_type == 'carrier' -%]
|
||||
elasticsearch:
|
||||
enabled: true
|
||||
running: true
|
||||
|
||||
[% END -%]
|
||||
ssh:
|
||||
enabled: true
|
||||
running: true
|
||||
@ -1 +0,0 @@
|
||||
../ce/08_system_ports.json.tt2
|
||||
@ -0,0 +1 @@
|
||||
../ce/08_system_ports.yaml.tt2
|
||||
@ -1,27 +0,0 @@
|
||||
{
|
||||
"dns": {
|
||||
[% IF sipwise.system_tester.skip_dns_check_test != "true" -%]
|
||||
"sp1": {
|
||||
"resolveable": true,
|
||||
"addrs": [
|
||||
"192.168.255.251"
|
||||
],
|
||||
"timeout": 500
|
||||
},
|
||||
"sp2": {
|
||||
"resolveable": true,
|
||||
"addrs": [
|
||||
"192.168.255.252"
|
||||
],
|
||||
"timeout": 500
|
||||
},
|
||||
[% END -%]
|
||||
"localhost": {
|
||||
"resolveable": true,
|
||||
"addrs": [
|
||||
"127.0.0.1"
|
||||
],
|
||||
"timeout": 500
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
dns:
|
||||
|
||||
[% IF sipwise.system_tester.skip_dns_check_test != "true" -%]
|
||||
sp1:
|
||||
resolveable: true
|
||||
addrs:
|
||||
- 192.168.255.251
|
||||
timeout: 500
|
||||
|
||||
sp2:
|
||||
resolveable: true
|
||||
addrs:
|
||||
- 192.168.255.252
|
||||
timeout: 500
|
||||
|
||||
[% END -%]
|
||||
localhost:
|
||||
resolveable: true
|
||||
addrs:
|
||||
- 127.0.0.1
|
||||
timeout: 500
|
||||
@ -1 +0,0 @@
|
||||
../ce/10_sites_ok.json.tt2
|
||||
@ -0,0 +1 @@
|
||||
../ce/10_sites_ok.yaml.tt2
|
||||
@ -1 +0,0 @@
|
||||
../ce/99_dummy.json.tt2
|
||||
@ -0,0 +1 @@
|
||||
../ce/99_dummy.yaml.tt2
|
||||
@ -1 +0,0 @@
|
||||
../ce/goss.json.tt2
|
||||
@ -0,0 +1 @@
|
||||
../ce/goss.yaml.tt2
|
||||
Loading…
Reference in new issue