Skip to content

Commit

Permalink
Merge pull request #104 from personium/develop
Browse files Browse the repository at this point in the history
 Release v2.0.8
  • Loading branch information
Dixon Siu authored Sep 18, 2019
2 parents 2fb4ca4 + 98d42aa commit 460d78c
Show file tree
Hide file tree
Showing 31 changed files with 183 additions and 240 deletions.
12 changes: 8 additions & 4 deletions 1-server_unit/Ansible_Settings_Instruction.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ Below are the files where modification is required.
```yaml
tag_ServerType: web

nginx_version: 1.14.0
nginx_version: 1.14.2

nginx_hm_version: 0.32
nginx_hm_version: 0.33
```
#### AP server (file destination : /group_vars/ap.yml)
Expand All @@ -116,8 +116,10 @@ Below are the files where modification is required.
cache_manager: memcached

tomcat_version: 9.0.10

commons_daemon_version : 1.1.0

activemq_version: 5.15.8
```
#### ES server (file destination : /group_vars/es.yml)
Expand All @@ -135,7 +137,7 @@ Below are the files where modification is required.
```yaml
tag_ServerType: nfs

memcached_version: 1.4.21
memcached_version: 1.5.12

memcached_lock_maxconn: 256

Expand All @@ -152,6 +154,8 @@ Below are the files where modification is required.
memcached_lock_cachesize: 512

memcached_cache_cachesize: 512

logback_version: 1.2.3
```
#### Bastion server (file destination : /group_vars/bastion.yml)
Expand Down
2 changes: 1 addition & 1 deletion 1-server_unit/group_vars/ap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ cache_manager: memcached

tomcat_version: 9.0.10
commons_daemon_version : 1.1.0
activemq_version: 5.15.2
activemq_version: 5.15.8
4 changes: 3 additions & 1 deletion 1-server_unit/group_vars/nfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

tag_ServerType: nfs

memcached_version: 1.4.21
memcached_version: 1.5.12
memcached_lock_maxconn: 256
memcached_cache_maxconn: 256

Expand All @@ -15,3 +15,5 @@ cache_port: 11212
# memcached cachesize
memcached_lock_cachesize: 512
memcached_cache_cachesize: 512

logback_version: 1.2.3
4 changes: 2 additions & 2 deletions 1-server_unit/group_vars/web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

tag_ServerType: web

nginx_version: 1.14.0
nginx_hm_version: 0.32
nginx_version: 1.14.2
nginx_hm_version: 0.33
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Unit]
Description=activemq message queue
After=network.target
After=network.target elasticsearch.service

[Service]
PIDFile=/opt/activemq/data/activemq.pid
Expand Down
3 changes: 2 additions & 1 deletion 1-server_unit/resource/ap/etc/systemd/system/tomcat.service
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Unit]
Description=Apache Tomcat 8
Description=Apache Tomcat 9
After=network.target activemq.service

[Service]
Expand All @@ -12,6 +12,7 @@ Environment=JRE_HOME=/opt/jre
Environment=CATALINA_BASE=/opt/tomcat
Environment=TOMCAT_USER=personium

ExecStartPre=/bin/sleep 20
ExecStart=/opt/tomcat/bin/daemon.sh --java-home /opt/jdk --catalina-home /opt/tomcat --catalina-base /opt/tomcat --catalina-pid /opt/tomcat/tomcat.pid --tomcat-user personium start
ExecStop=/opt/tomcat/bin/daemon.sh --java-home /opt/jdk --catalina-home /opt/tomcat --catalina-base /opt/tomcat --catalina-pid /opt/tomcat/tomcat.pid stop
[Install]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function check_response() {
OPERATION=${2}
RESPONSE_CODE=`echo "${CURL_RESULT}" | /bin/grep 'status:'`
if [ "${RESPONSE_CODE}" != "status:${STATUS}" ]; then
echo "${OPERATION}faild."
echo "${OPERATION} faild."
exit 2
fi
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ After=network.target
[Service]
Type=simple
EnvironmentFile=-/etc/sysconfig/memcached_cache
ExecStart=/opt/memcached-1.4.21/bin/memcached -u $USER -p $PORT -m $CACHESIZE -c $MAXCONN $OPTIONS
ExecStart=/opt/memcached-{{ memcached_version }}/bin/memcached -u $USER -p $PORT -m $CACHESIZE -c $MAXCONN $OPTIONS

[Install]
WantedBy=multi-user.target
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ After=network.target
[Service]
Type=simple
EnvironmentFile=-/etc/sysconfig/memcached_lock
ExecStart=/opt/memcached-1.4.21/bin/memcached -u $USER -p $PORT -m $CACHESIZE -c $MAXCONN $OPTIONS
ExecStart=/opt/memcached-{{ memcached_version }}/bin/memcached -u $USER -p $PORT -m $CACHESIZE -c $MAXCONN $OPTIONS

[Install]
WantedBy=multi-user.target
1 change: 1 addition & 0 deletions 1-server_unit/resource/web/opt/nginx/conf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ http {

log_format combined2 '$remote_addr - $remote_user [$time_local] '
'[$http_x_personium_version] '
'[$http_x_personium_requestkey] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" '
'"$ssl_cipher" "$ssl_protocol" '
Expand Down
12 changes: 6 additions & 6 deletions 1-server_unit/tasks/nfs/init_logback.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright FUJITSU LIMITED 2015-2017.

- name: Download logback
command: wget -q -O logback-1.0.3.tar.gz --no-check-certificate http://logback.qos.ch/dist/logback-1.0.3.tar.gz
command: wget -q -O logback-{{ logback_version }}.tar.gz --no-check-certificate http://logback.qos.ch/dist/logback-{{ logback_version }}.tar.gz
args:
chdir: /usr/local/src
creates: /usr/local/src/logback-1.0.3.tar.gz
creates: /usr/local/src/logback-{{ logback_version }}.tar.gz

- name: Download slf4j
command: wget -q -O slf4j-1.6.4.tar.gz --no-check-certificate http://www.slf4j.org/dist/slf4j-1.6.4.tar.gz
Expand All @@ -19,19 +19,19 @@
file: path=/personium/logback/log/logback.log state=touch owner=personium group=personium mode=644

- name: Expand logback
command: tar xzf /usr/local/src/logback-1.0.3.tar.gz
command: tar xzf /usr/local/src/logback-{{ logback_version }}.tar.gz
args:
chdir: /opt/logback
creates: /opt/logback/logback-1.0.3
creates: /opt/logback/logback-{{ logback_version }}

- name: Expand slf4j
command: tar xzf /usr/local/src/slf4j-1.6.4.tar.gz
args:
chdir: /opt/logback
creates: /opt/logback/slf4j-1.6.4

- name: Change owner /opt/logback/logback-1.0.3 directory
file: state=directory path=/opt/logback/logback-1.0.3 owner=personium group=personium recurse=yes
- name: Change owner /opt/logback/logback-{{ logback_version }} directory
file: state=directory path=/opt/logback/logback-{{ logback_version }} owner=personium group=personium recurse=yes

- name: Change owner /opt/logback/slf4j-1.6.4 directory
file: state=directory path=/opt/logback/slf4j-1.6.4 owner=personium group=personium recurse=yes
Expand Down
109 changes: 56 additions & 53 deletions 3-server_unit/Ansible_Settings_Instruction.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,104 +20,107 @@ Below are the files where modification is required.

# should be changed to

ansible_ssh_user=root
ansible_ssh_user=ec2-user
```

* Modify the hosts file as per instruction below

#### Common Server Setting

```yaml
{Bastion_Private_IP}
# -> Specify the private IP of Bastion server
# EX: {Bastion_Private_IP}->172.31.10.248

{Web_Private_IP}
# -> Specify the private IP of Web server
# EX: {Web_Private_IP}->172.31.10.248

{AP_Private_IP}
# -> Specify the private IP of AP server
# EX: {AP_Private_IP}->172.31.13.38

{ES_Private_IP}
# -> Set the private IP for ES server
# EX: {ES_Private_IP}->172.31.3.80

{NFS_Private_IP}
# -> Set the private IP for NFS server
# EX: {NFS_Private_IP}->172.31.13.38

{Ansible_Execution_User}
# -> Specify a user ansible execution
# EX: {Ansible_Execution_User}->root

{SSH_PrivateKey}
# -> Set the secret key in the absolute path for ansible user ssh public key authentication
# EX: {SSH_PrivateKey}->/root/.ssh/id_rsa
```

#### Bastion server

```yaml
{Bastion_Private_IP}
# -> Specify the private IP of Bastion server
# EX: {Bastion_Private_IP}->172.31.10.248
{Web_Global_IP}
# -> Specify the global IP for Web server
# EX: {Web_Global_IP}->54.65.33.203

{Bastion_Tag_Name}
# -> Specify the host name for Bastion server
# EX: {Bastion_Tag_Name}->bastion-web
{Web_FQDN}
# -> Specify the FQDN for Web server(same as unit FQDN)
# EX: {Web_FQDN}->ec2-54-65-33-203.ap-northeast-1.compute.amazonaws.com

{Bastion_Network_Separation}
# -> Specify the network catagory for Bastion server
# EX: {Bastion_Network_Separation}->172.31.10.0/24

{WEB_Network_Separation}
# -> Specify the network catagory for WEB server
# EX: {WEB_Network_Separation}->172.31.10.0/24

{AP_Network_Separation}
# -> Specify the network catagory for AP server
# EX: {AP_Network_Separation}->172.31.13.0/24

{Master_Token}
# -> To authorize all kind of operation, set the master token (Strictly managed)
# EX: enable_mastertoken=true
# {Master_Token}->abc123

{Path_Based_Cell_Url_Enabled}
# -> URL format to access cell*1
# -> true:path based cell url
# -> false:per cell fqdn url
# EX: {Path_Based_Cell_Url_Enabled}->false
```

*1.For explanation about URL format to access cell, please confirm [here](https://personium.io/docs/ja/server-operator/setup_percell.html).

#### Web server
#### Bastion server

```yaml
{Web_Private_IP}
# -> Specify the private IP of Web server
# EX: {Web_Private_IP}->172.31.10.248
{Bastion_Tag_Name}
# -> Specify the host name for Bastion server
# EX: {Bastion_Tag_Name}->bastion-web
```

#### Web server

```yaml
{Web_Tag_Name}
# -> Specify the host name for Web server
# EX: {Web_Tag_Name}->bastion-web

{Web_Global_IP}
# -> Specify the global IP for Web server
# EX: {Web_Global_IP}->54.65.33.203

{Web_FQDN}
# -> Specify the FQDN for Web server(same as unit FQDN)
# EX: {Web_FQDN}->ec2-54-65-33-203.ap-northeast-1.compute.amazonaws.com
```

#### AP server

```yaml
{AP_Private_IP}
# -> Specify the private IP of AP server
# EX: {AP_Private_IP}->172.31.13.38

{AP_Network_Separation}
# -> Specify the network catagory for AP server
# EX: {AP_Network_Separation}->172.31.13.0/24

{AP_Tag_Name}
# -> Specify the host name for AP server
# EX: {AP_Tag_Name}->test-ap

{PIO_LOGVOL}
# -> Specify the disk name for Personium log
# EX: {PIO_LOGVOL}->vdb

{Master_Token}
# -> To authorize all kind of operation, set the master token (Strictly managed)
# EX: {Master_Token}->abc123

{Path_Based_Cell_Url_Enabled}
# -> URL format to access cell*1
# -> true:path based cell url
# -> false:per cell fqdn url
# EX: {Path_Based_Cell_Url_Enabled}->false
```
*1.For explanation about URL format to access cell, please confirm [here](https://personium.io/docs/ja/server-operator/setup_percell.html).

#### ES server

```yaml
{ES_Private_IP}
# -> Set the private IP for ES server
# EX: {ES_Private_IP}->172.31.3.80

{ES_Tag_Name}
# -> Specify the host name for ES server
# EX: {ES_Tag_Name}->test-ES
Expand All @@ -130,10 +133,6 @@ Below are the files where modification is required.
#### NFS server

```yaml
{NFS_Private_IP}
# -> Set the private IP for NFS server
# EX: {NFS_Private_IP}->172.31.13.38

{nfs_Tag_Name}
# -> Specify the host name for nfs server
# EX: {nfs_Tag_Name}->test-NFS
Expand All @@ -154,9 +153,9 @@ Below are the files where modification is required.
```yaml
tag_ServerType: web

nginx_version: 1.14.0
nginx_version: 1.14.2

nginx_hm_version: 0.32
nginx_hm_version: 0.33
```
#### AP server (file destination : /group_vars/ap.yml)
Expand Down Expand Up @@ -185,6 +184,8 @@ Below are the files where modification is required.
tomcat_version: 9.0.10

commons_daemon_version : 1.1.0

activemq_version: 5.15.8
```
#### ES server (file destination : /group_vars/es.yml)
Expand All @@ -202,7 +203,7 @@ Below are the files where modification is required.
```yaml
tag_ServerType: nfs

memcached_version: 1.4.21
memcached_version: 1.5.12

memcached_lock_maxconn: 1024

Expand All @@ -219,6 +220,8 @@ Below are the files where modification is required.
memcached_lock_cachesize: 512

memcached_cache_cachesize: 512

logback_version: 1.2.3
```
#### bastion server (file destination : /group_vars/bastion.yml)
Expand Down
2 changes: 2 additions & 0 deletions 3-server_unit/bastion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@
- include: ./tasks/bastion/mvn_package.yml
vars:
build_mod: engine
- include: ./tasks/bastion/init_personium_regression.yml

2 changes: 1 addition & 1 deletion 3-server_unit/group_vars/ap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ cache_manager: memcached

tomcat_version: 9.0.10
commons_daemon_version : 1.1.0
activemq_version: 5.15.2
activemq_version: 5.15.8
4 changes: 3 additions & 1 deletion 3-server_unit/group_vars/nfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

tag_ServerType: nfs

memcached_version: 1.4.21
memcached_version: 1.5.12
memcached_lock_maxconn: 1024
memcached_cache_maxconn: 1024

Expand All @@ -15,3 +15,5 @@ cache_port: 11212
# memcached cachesize
memcached_lock_cachesize: 512
memcached_cache_cachesize: 512

logback_version: 1.2.3
Loading

0 comments on commit 460d78c

Please sign in to comment.