Commit 250f1f52 by arbabnazar

address all the comments

parent 0c0fa7b0
...@@ -3,6 +3,5 @@ ...@@ -3,6 +3,5 @@
sudo: True sudo: True
gather_facts: True gather_facts: True
roles: roles:
- aws
- mysql - mysql
- asqatasun - asqatasun
--- ---
ASQATASUN_LOCALE: 'en_US.UTF-8'
ASQATASUN_DATABASE_NAME: 'asqatasun'
ASQATASUN_DATABASE_USER: 'asqatasun'
ASQATASUN_DATABASE_PASSWORD: 'changeme'
ASQATASUN_DATABASE_HOST: 'localhost'
ASQATASUN_DATABASE_ENCODING: 'utf8'
ASQATASUN_DATABASE_COLLATION: 'utf8_general_ci'
ASQATASUN_URL: 'http://localhost:8080/asqatasun/'
ASQATASUN_ADMIN_EMAIL: 'admin@example.com'
ASQATASUN_ADMIN_PASSWORD: 'changeme'
asqatasun_debian_pkgs: asqatasun_debian_pkgs:
- wget - wget
- bzip2 - bzip2
...@@ -15,7 +26,7 @@ asqatasun_debian_pkgs: ...@@ -15,7 +26,7 @@ asqatasun_debian_pkgs:
- mailutils - mailutils
- postfix - postfix
locale: 'en_US.UTF-8' locale: "{{ ASQATASUN_LOCALE }}"
asqatasun_download_link: "http://download.asqatasun.org/asqatasun-latest.tar.gz" asqatasun_download_link: "http://download.asqatasun.org/asqatasun-latest.tar.gz"
# Asqatasun version that you want to install, get the full list of releases # Asqatasun version that you want to install, get the full list of releases
...@@ -37,19 +48,13 @@ init_connect: "SET NAMES utf8" ...@@ -37,19 +48,13 @@ init_connect: "SET NAMES utf8"
character_set_server: "utf8" character_set_server: "utf8"
mysql_max_allowed_packet: "64M" mysql_max_allowed_packet: "64M"
ASQATASUN_DATABASE_NAME: 'asqatasun'
ASQATASUN_DATABASE_USER: 'asqatasun'
ASQATASUN_DATABASE_PASSWORD: 'changeme'
ASQATASUN_DATABASE_HOST: 'localhost'
ASQATASUN_URL: 'http://localhost:8080/asqatasun/'
ASQATASUN_ADMIN_EMAIL: 'admin@example.com'
ASQATASUN_ADMIN_PASSWORD: 'changeme'
asqatasun_parameters: asqatasun_parameters:
db_name: "{{ ASQATASUN_DATABASE_NAME }}" db_name: "{{ ASQATASUN_DATABASE_NAME }}"
db_user: "{{ ASQATASUN_DATABASE_USER }}" db_user: "{{ ASQATASUN_DATABASE_USER }}"
db_password: "{{ ASQATASUN_DATABASE_PASSWORD }}" db_password: "{{ ASQATASUN_DATABASE_PASSWORD }}"
db_host: "{{ ASQATASUN_DATABASE_HOST }}" db_host: "{{ ASQATASUN_DATABASE_HOST }}"
db_encoding: "{{ ASQATASUN_DATABASE_ENCODING }}"
db_collation: "{{ ASQATASUN_DATABASE_COLLATION }}"
url: "{{ ASQATASUN_URL }}" url: "{{ ASQATASUN_URL }}"
admin_email: "{{ ASQATASUN_ADMIN_EMAIL }}" admin_email: "{{ ASQATASUN_ADMIN_EMAIL }}"
admin_passwd: "{{ ASQATASUN_ADMIN_PASSWORD }}" admin_passwd: "{{ ASQATASUN_ADMIN_PASSWORD }}"
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
- name: Copy the asqatasun.cnf template to /etc/mysql/conf.d - name: Copy the asqatasun.cnf template to /etc/mysql/conf.d
template: template:
dest: /etc/mysql/conf.d/asqatasun.cnf dest: /etc/mysql/conf.d/asqatasun.cnf
src: asqatasun.cnf.j2 src: etc/mysql/conf.d/asqatasun.cnf.j2
owner: root owner: root
group: root group: root
register: my_cnf register: my_cnf
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
- name: Copy the xvfb template to /etc/init.d - name: Copy the xvfb template to /etc/init.d
template: template:
dest: /etc/init.d/xvfb dest: /etc/init.d/xvfb
src: xvfb.j2 src: etc/init.d/xvfb.j2
owner: root owner: root
group: root group: root
mode: 755 mode: 755
...@@ -119,22 +119,22 @@ ...@@ -119,22 +119,22 @@
mysql_db: mysql_db:
name: "{{ asqatasun_parameters.db_name }}" name: "{{ asqatasun_parameters.db_name }}"
state: present state: present
encoding: utf8 encoding: "{{ asqatasun_parameters.db_encoding }}"
collation: utf8_general_ci collation: "{{ asqatasun_parameters.db_collation }}"
tags: tags:
- install - migrate
- install:base - migrate:db
- name: Create MySQL user for Asqatasun - name: Create MySQL user for Asqatasun
mysql_user: mysql_user:
name: "{{ asqatasun_parameters.db_user }}" name: "{{ asqatasun_parameters.db_user }}"
password: "{{ asqatasun_parameters.db_password }}" password: "{{ asqatasun_parameters.db_password }}"
host: localhost host: "{{ asqatasun_parameters.db_host }}"
priv: "{{ asqatasun_parameters.db_name }}.*:ALL" priv: "{{ asqatasun_parameters.db_name }}.*:ALL"
state: present state: present
tags: tags:
- install - migrate
- install:base - migrate:db
- name: Check that asqatasun app is running - name: Check that asqatasun app is running
shell: > shell: >
......
Markdown is supported
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