Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Merge 3.0.0 with Master #65

Merged
merged 5 commits into from
Nov 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.

# Every Vagrant development environment requires a box. You can search for
# boxes at https://vagrantcloud.com/search.
config.vm.box = "base"

# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
# config.vm.box_check_update = false

# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
# NOTE: This will enable public access to the opened port
# config.vm.network "forwarded_port", guest: 80, host: 8080

# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine and only allow access
# via 127.0.0.1 to disable public access
# config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1"

# Create a private network, which allows host-only access to the machine
# using a specific IP.
# config.vm.network "private_network", ip: "192.168.33.10"

# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
# config.vm.network "public_network"

# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# config.vm.synced_folder "../data", "/vagrant_data"

# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
# Example for VirtualBox:
#
# config.vm.provider "virtualbox" do |vb|
# # Display the VirtualBox GUI when booting the machine
# vb.gui = true
#
# # Customize the amount of memory on the VM:
# vb.memory = "1024"
# end
#
# View the documentation for the provider you are using for more
# information on available options.

# Enable provisioning with a shell script. Additional provisioners such as
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
# documentation for more information about their specific syntax and use.
# config.vm.provision "shell", inline: <<-SHELL
# apt-get update
# apt-get install -y apache2
# SHELL
end
2 changes: 1 addition & 1 deletion apim-is-as-km-with-analytics/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# WSO2 API Manager with Analytics Support and WSO2 Identity Server as the Key Manger

from WSO2 since the referring Vagrant Boxes hosted at vagrant.wso2.com contains the latest updates and fixes for WSO2 API Manager,
API Manager Analytics 2.6.0 and WSO2 Identity Server as KM 5.7.0. You can sign up for a Free Trial Subscription [here](https://wso2.com/free-trial-subscription).
API Manager Analytics 3.0.0 and WSO2 Identity Server as KM 5.9.0. You can sign up for a Free Trial Subscription [here](https://wso2.com/free-trial-subscription).

Access the API Publisher and Store via the URLs given below.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ state.persistence:
enabled: false
intervalInMin: 1
revisionsToKeep: 2
persistenceStore: org.wso2.carbon.stream.processor.core.persistence.FileSystemPersistenceStore
persistenceStore: org.wso2.carbon.streaming.integrator.core.persistence.FileSystemPersistenceStore
config:
location: siddhi-app-persistence

Expand All @@ -322,22 +322,6 @@ wso2.securevault:
# Datasource Configurations
wso2.datasources:
dataSources:
-
definition:
configuration:
connectionTestQuery: "SELECT 1"
driverClassName: org.h2.Driver
idleTimeout: 60000
isAutoCommit: false
jdbcUrl: "jdbc:h2:${sys:carbon.home}/wso2/${sys:wso2.runtime}/database/WSO2_CARBON_DB;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000"
maxPoolSize: 10
password: wso2carbon
username: wso2carbon
validationTimeout: 30000
type: RDBMS
description: "The datasource used for registry and user manager"
name: WSO2_CARBON_DB

# carbon metrics data source
- name: WSO2_METRICS_DB
description: The datasource used for dashboard feature
Expand All @@ -364,33 +348,16 @@ wso2.datasources:
definition:
type: RDBMS
configuration:
jdbcUrl: 'jdbc:h2:${sys:carbon.home}/wso2/${sys:wso2.runtime}/database/PERMISSION_DB;IFEXISTS=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000;MVCC=TRUE'
jdbcUrl: 'jdbc:mysql://172.28.128.3:3306/WSO2AM_PERMISSIONS_DB?useSSL=false'
username: wso2carbon
password: wso2carbon
driverClassName: org.h2.Driver
driverClassName: com.mysql.cj.jdbc.Driver
maxPoolSize: 10
idleTimeout: 60000
connectionTestQuery: SELECT 1
validationTimeout: 30000
isAutoCommit: false

- name: Message_Tracing_DB
description: "The datasource used for message tracer to store span information."
jndiConfig:
name: jdbc/Message_Tracing_DB
definition:
type: RDBMS
configuration:
jdbcUrl: 'jdbc:h2:${sys:carbon.home}/wso2/dashboard/database/MESSAGE_TRACING_DB;AUTO_SERVER=TRUE'
username: wso2carbon
password: wso2carbon
driverClassName: org.h2.Driver
maxPoolSize: 30
idleTimeout: 60000
connectionTestQuery: SELECT 1
validationTimeout: 30000
isAutoCommit: false

- name: GEO_LOCATION_DATA
description: "The data source used for geo location database"
jndiConfig:
Expand All @@ -414,8 +381,8 @@ wso2.datasources:
definition:
type: RDBMS
configuration:
jdbcUrl: 'jdbc:mysql://172.28.128.3:3306/stats_db?useSSL=false'
username: root
jdbcUrl: 'jdbc:mysql://172.28.128.3:3306/WSO2AM_STATS_DB?useSSL=false'
username: wso2carbon
password: wso2carbon
driverClassName: com.mysql.cj.jdbc.Driver
maxPoolSize: 50
Expand All @@ -440,6 +407,20 @@ wso2.datasources:
connectionTestQuery: SELECT 1
validationTimeout: 30000
isAutoCommit: false
- name: WSO2_CLUSTER_DB
description: "The datasource used by cluster coordinators in HA deployment"
definition:
type: RDBMS
configuration:
connectionTestQuery: "SELECT 1"
driverClassName: org.h2.Driver
idleTimeout: 60000
isAutoCommit: false
jdbcUrl: "jdbc:h2:${sys:carbon.home}/wso2/${sys:wso2.runtime}/database/WSO2_CLUSTER_DB;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=60000;AUTO_SERVER=TRUE"
maxPoolSize: 10
password: wso2carbon
username: wso2carbon
validationTimeout: 30000

siddhi:
extensions:
Expand Down Expand Up @@ -470,11 +451,32 @@ cluster.config:
groupId: sp
coordinationStrategyClass: org.wso2.carbon.cluster.coordinator.rdbms.RDBMSCoordinationStrategy
strategyConfig:
datasource: WSO2_CARBON_DB
datasource: WSO2_CLUSTER_DB
heartbeatInterval: 1000
heartbeatMaxRetry: 2
eventPollingInterval: 1000

# Authentication configuration
auth.configs:
type: 'local' # Type of the IdP client used
userManager:
adminRole: admin # Admin role which is granted all permissions
userStore: # User store
users:
- user:
username: admin
password: YWRtaW4=
roles: 1
roles:
- role:
id: 1
displayName: admin

# Configuration to enable apim alerts
#analytics.solutions:
# APIM-alerts.enabled: true


# Sample of deployment.config for Two node HA
#deployment.config:
# type: ha
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env bash
# Copyright 2018 WSO2, Inc. (http://wso2.com)
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,7 +15,7 @@

# set variables
WSO2_SERVER=wso2am-analytics
WSO2_SERVER_VERSION=2.6.0
WSO2_SERVER_VERSION=3.0.0
WSO2_SERVER_PACK=${WSO2_SERVER}-${WSO2_SERVER_VERSION}.zip
MYSQL_CONNECTOR=mysql-connector-java-*.jar
JDK_ARCHIVE=jdk-8u*-linux-x64.tar.gz
Expand Down
Loading