New default port: 5311

Change-Id: Id5297f1c3bf30d8c98b8613daad3f7fe1a88fa27
This commit is contained in:
aviau 2015-07-03 09:11:37 -04:00
parent d1f2fbfd86
commit 31994cccd3
7 changed files with 14 additions and 14 deletions

View File

@ -6,7 +6,7 @@ The Surveil API provides Surveil's REST API.
================================== ========================== ================================== ==========================
**package name (RPM)** surveil **package name (RPM)** surveil
**services** surveil-api.service **services** surveil-api.service
**Default port** 8080 **Default port** 5311
**configuration (API)** /etc/surveil/surveil.cfg **configuration (API)** /etc/surveil/surveil.cfg
**configuration (permissions)** /etc/surveil/policy.json **configuration (permissions)** /etc/surveil/policy.json
**configuration (API - pipeline)** /etc/surveil/api_paste.ini **configuration (API - pipeline)** /etc/surveil/api_paste.ini

View File

@ -23,7 +23,7 @@ After you save the file, the following logs will appear in Surveil's output: ::
surveil_1 | Some source files have been modified surveil_1 | Some source files have been modified
surveil_1 | Restarting server... surveil_1 | Restarting server...
You should be able to test your modification by accessing ``http://localhost:8080/v2/hello`` with your browser. You should be able to test your modification by accessing ``http://localhost:5311/v2/hello`` with your browser.
Disabling permissions Disabling permissions
~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~

View File

@ -34,7 +34,7 @@ stored in tools/docker.
After running :bash:`sudo docker-compose up`, you should be able to acces all After running :bash:`sudo docker-compose up`, you should be able to acces all
services at the ports configured in the docker-compose.yml file. services at the ports configured in the docker-compose.yml file.
* Surveil API: http://localhost:8080/v1/hello * Surveil API: http://localhost:5311/v1/hello
* Bansho (surveil web interface): http://localhost:8888 (any login info is fine) * Bansho (surveil web interface): http://localhost:8888 (any login info is fine)
* InfluxDB: http://localhost:8083 (user:root pw:root) * InfluxDB: http://localhost:8083 (user:root pw:root)
* Grafana: http://localhost:80 (user:admin pw:admin) * Grafana: http://localhost:80 (user:admin pw:admin)
@ -61,8 +61,8 @@ You'll need to provide the Surveil API URL. You can do this with the
``--surveil-api-url`` parameter, but its easier to just set it as environment ``--surveil-api-url`` parameter, but its easier to just set it as environment
variable:: variable::
export SURVEIL_API_URL=http://localhost:8080/v2 export SURVEIL_API_URL=http://localhost:5311/v2
export SURVEIL_AUTH_URL=http://localhost:8080/v2/auth export SURVEIL_AUTH_URL=http://localhost:5311/v2/auth
Viewing host status Viewing host status

View File

@ -6,7 +6,7 @@ surveil:
- influxdb - influxdb
- alignak - alignak
ports: ports:
- "8080:8080" - "5311:5311"
environment: environment:
PBR_VERSION: "PROD" PBR_VERSION: "PROD"
#SURVEIL_AUTH_BACKEND: "keystone" #SURVEIL_AUTH_BACKEND: "keystone"
@ -23,8 +23,8 @@ surveilosinterface:
- surveil - surveil
environment: environment:
PBR_VERSION: "PROD" PBR_VERSION: "PROD"
#SURVEIL_API_URL: "http://surveil:8080/v2" #SURVEIL_API_URL: "http://surveil:5311/v2"
#SURVEIL_AUTH_URL: "http://surveil:8080/v2/auth" #SURVEIL_AUTH_URL: "http://surveil:5311/v2/auth"
#SURVEIL_VERSION: "2_0" #SURVEIL_VERSION: "2_0"
#RABBIT_HOST: "192.168.49.239" #RABBIT_HOST: "192.168.49.239"
#RABBIT_PORT: 5672 #RABBIT_PORT: 5672
@ -80,7 +80,7 @@ bansho:
image: surveil/bansho:0.12.2 image: surveil/bansho:0.12.2
environment: environment:
BANSHO_BACKEND: "surveil" BANSHO_BACKEND: "surveil"
#BANSHO_SURVEIL_URL: "http://surveil:8080/" #BANSHO_SURVEIL_URL: "http://surveil:5311/"
#BANSHO_AUTH_URL: "http://198.72.123.131:5000/v2.0/" #BANSHO_AUTH_URL: "http://198.72.123.131:5000/v2.0/"
INFLUXDB_HOST: "influxdb" INFLUXDB_HOST: "influxdb"
INFLUXDB_PORT: "8086" INFLUXDB_PORT: "8086"

View File

@ -5,7 +5,7 @@ surveil:
- influxdb - influxdb
- alignak - alignak
ports: ports:
- "8080:8080" - "5311:5311"
environment: environment:
PBR_VERSION: "DEV" PBR_VERSION: "DEV"
volumes: volumes:
@ -58,7 +58,7 @@ bansho:
image: savoirfairelinux/bansho image: savoirfairelinux/bansho
environment: environment:
BANSHO_BACKEND: "surveil" BANSHO_BACKEND: "surveil"
BANSHO_SURVEIL_URL: "http://surveil:8080/" BANSHO_SURVEIL_URL: "http://surveil:5311/"
INFLUXDB_HOST: "influxdb" INFLUXDB_HOST: "influxdb"
INFLUXDB_PORT: "8086" INFLUXDB_PORT: "8086"
INFLUXDB_NAME: "db" INFLUXDB_NAME: "db"

View File

@ -18,7 +18,7 @@ from surveil.api import hooks
# Server Specific Configurations # Server Specific Configurations
server = { server = {
'port': 8080, 'port': 5311,
'host': '0.0.0.0' 'host': '0.0.0.0'
} }

View File

@ -127,8 +127,8 @@ def main():
] ]
) )
cli_surveil = sc.Client('http://localhost:8080/v2', cli_surveil = sc.Client('http://localhost:5311/v2',
auth_url='http://localhost:8080/v2/auth', auth_url='http://localhost:5311/v2/auth',
version='2_0') version='2_0')
# if --demo is specified, you get more hosts. # if --demo is specified, you get more hosts.