Merge branch 'master' of gitlab.factory.insight.doubletrade.com:scores/ansible
This commit is contained in:
commit
9b987c8300
@ -55,10 +55,10 @@ profil.db.metier.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
|
||||
|
||||
; Slave Database
|
||||
profil.db.slave.adapter = mysqli
|
||||
profil.db.slave.params.host = 195.154.170.169
|
||||
profil.db.slave.params.host = 172.19.7.10
|
||||
profil.db.slave.params.port = 3306
|
||||
profil.db.slave.params.username = wsuser
|
||||
profil.db.slave.params.password = wspass2012
|
||||
profil.db.slave.params.username = backoffice
|
||||
profil.db.slave.params.password = BMsH9vSEExbu5JK6
|
||||
profil.db.slave.params.dbname = backoffice
|
||||
profil.db.slave.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
- name: BACKOFFICE | Restart PHP-FPM
|
||||
become: yes
|
||||
service: name=php5-fpm state=reloaded
|
||||
service: name=php5-fpm state=restarted
|
||||
when: opcache is defined and opcache == "fcgi"
|
@ -40,7 +40,7 @@ define('BUSINESSWIRE_LOCAL_DIR_INCOMING', '/home/deploy/batch/shared/ftp/busines
|
||||
define('BUSINESSWIRE_LOCAL_DIR', '/home/deploy/batch/shared/infosreg/businesswire/');
|
||||
|
||||
/** Base de données de S&D **/
|
||||
define ('MYSQL_HOST', '192.168.3.28');
|
||||
define ('MYSQL_HOST', '172.19.7.10');
|
||||
define ('MYSQL_USER', 'batch');
|
||||
define ('MYSQL_PASS', 'BMsH9vSEExbu5JK6');
|
||||
define ('MYSQL_DEFAULT_DB', 'jo');
|
||||
|
@ -30,9 +30,9 @@ profil.mail.email.supportdev = supportdev@scores-decisions.com
|
||||
profil.path.data = "/home/vhosts/data/enrichissement"
|
||||
|
||||
profil.db.metier.adapter=mysqli
|
||||
profil.db.metier.params.host=195.154.170.169
|
||||
profil.db.metier.params.host=172.19.7.10
|
||||
profil.db.metier.params.username=enrichissement
|
||||
profil.db.metier.params.password=aY5EWvtMmXrqKwK8
|
||||
profil.db.metier.params.password=BMsH9vSEExbu5JK6
|
||||
profil.db.metier.params.dbname=jo
|
||||
profil.db.metier.params.driver_options.MYSQLI_INIT_COMMAND = "SET NAMES utf8"
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
- name: ENRICHISSEMENT | Restart PHP-FPM
|
||||
become: yes
|
||||
service: name=php5-fpm state=reloaded
|
||||
service: name=php5-fpm state=restarted
|
||||
when: opcache is defined and opcache == "fcgi"
|
@ -1,8 +0,0 @@
|
||||
upload_max_filesize=513M
|
||||
post_max_size=513M
|
||||
memory_limit=512M
|
||||
mbstring.func_overload=0
|
||||
always_populate_raw_post_data=-1
|
||||
default_charset='UTF-8'
|
||||
date.timezone='Europe/Paris'
|
||||
env[APPLICATION_ENV] = "production"
|
@ -1,8 +0,0 @@
|
||||
upload_max_filesize=513M
|
||||
post_max_size=513M
|
||||
memory_limit=512M
|
||||
mbstring.func_overload=0
|
||||
always_populate_raw_post_data=-1
|
||||
default_charset='UTF-8'
|
||||
date.timezone='Europe/Paris'
|
||||
env[APPLICATION_ENV] = "production"
|
@ -26,7 +26,7 @@ resources.view.basePath = APPLICATION_PATH "/views/default"
|
||||
|
||||
; Scores configuration
|
||||
profil.server.name = sd-46528
|
||||
profil.webservice.url = "http://wse.scores-decisions.com:8081";
|
||||
profil.webservice.url = "http://ws-ng.scores-decisions.com";
|
||||
profil.mail.method = sendmail
|
||||
profil.mail.email.support = support@scores-decisions.com
|
||||
profil.mail.email.suivi = suivi@scores-decisions.com
|
@ -26,7 +26,7 @@ resources.view.basePath = APPLICATION_PATH "/views/default"
|
||||
|
||||
; Scores configuration
|
||||
profil.server.name = ns359466
|
||||
profil.webservice.url = "http://wse.scores-decisions.com:8081";
|
||||
profil.webservice.url = "http://ws.scores-decisions.com";
|
||||
profil.mail.method = sendmail
|
||||
profil.mail.email.support = support@scores-decisions.com
|
||||
profil.mail.email.suivi = suivi@scores-decisions.com
|
@ -2,7 +2,7 @@
|
||||
phpSettings.date.timezone = "Europe/Paris"
|
||||
phpSettings.display_startup_errors = 0
|
||||
phpSettings.display_errors = 0
|
||||
phpSettings.soap.wsdl_cache_dir = "PROJECT_DIR/shared/temp/wsdl"
|
||||
phpSettings.soap.wsdl_cache_dir = "PROJECT_DIR/shared/wsdl"
|
||||
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
|
||||
bootstrap.class = "Bootstrap"
|
||||
appnamespace = "Application"
|
||||
@ -26,7 +26,7 @@ resources.view.basePath = APPLICATION_PATH "/views/default"
|
||||
|
||||
; Scores configuration
|
||||
profil.server.name = sd-46528
|
||||
profil.webservice.url = "http://wsrec.scores-decisions.com:8000";
|
||||
profil.webservice.url = "http://ws.scores-decisions.com";
|
||||
profil.mail.method = sendmail
|
||||
profil.mail.email.support = support@scores-decisions.com
|
||||
profil.mail.email.suivi = suivi@scores-decisions.com
|
39
apps/extranet/deploy-inextenso.yml
Normal file
39
apps/extranet/deploy-inextenso.yml
Normal file
@ -0,0 +1,39 @@
|
||||
---
|
||||
- name: Deploy Extranet
|
||||
hosts: all
|
||||
remote_user: deploy
|
||||
become: no
|
||||
vars:
|
||||
# Specific
|
||||
project: extranet
|
||||
project_tree: inextenso
|
||||
webservice_uri: "http://webservice-ng.sd.lan"
|
||||
# Always add a trailing / if you want rsync the content of the directory
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{project}}/"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{project}}-inextenso"
|
||||
ansistrano_version_dir: releases
|
||||
ansistrano_current_dir: current
|
||||
ansistrano_shared_paths: []
|
||||
ansistrano_keep_releases: 3
|
||||
ansistrano_deploy_via: rsync
|
||||
ansistrano_allow_anonymous_stats: no
|
||||
# Variables used in the rsync deployment strategy
|
||||
ansistrano_rsync_extra_params: ""
|
||||
ansistrano_rsync_set_remote_user: yes
|
||||
# Variables used in the Git deployment strategy
|
||||
#ansistrano_git_repo: ssh://git@192.168.78.249:10022/SCORES/flux.git
|
||||
#ansistrano_git_branch: master
|
||||
#ansistrano_git_identity_key_path: ""
|
||||
# Hooks: custom tasks if you need them
|
||||
ansistrano_before_setup_tasks_file: "{{playbook_dir}}/tasks/before-setup.yml"
|
||||
ansistrano_after_setup_tasks_file: "{{playbook_dir}}/tasks/after-setup.yml"
|
||||
ansistrano_before_update_code_tasks_file: "{{playbook_dir}}/tasks/before-updatecode.yml"
|
||||
ansistrano_after_update_code_tasks_file: "{{playbook_dir}}/tasks/after-updatecode.yml"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/tasks/after-symlink.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
roles:
|
||||
- { role: carlosbuenosvinos.ansistrano-deploy }
|
@ -1,2 +1,2 @@
|
||||
sd-46528.dedibox.fr project_env=prod-online
|
||||
91.121.157.194 project_env=prod-ovh
|
||||
sd-46528.dedibox.fr project_env=prod
|
||||
91.121.157.194 project_env=prod
|
@ -6,5 +6,11 @@
|
||||
- name: EXTRANET | Cleanup
|
||||
become: yes
|
||||
file: path="{{ansistrano_shared_path}}/{{item.src}}" state=absent
|
||||
with_items:
|
||||
- { src: 'wsdl' }
|
||||
|
||||
- name: EXTRANET | Project shared directories
|
||||
become: yes
|
||||
file: path="{{ansistrano_shared_path}}/{{item.src}}" state=directory recurse=yes owner=www-data group=www-data
|
||||
with_items:
|
||||
- { src: 'wsdl' }
|
@ -10,7 +10,7 @@
|
||||
|
||||
- name: EXTRANET | Configure
|
||||
become: yes
|
||||
copy: src="./config/application.{{project_env}}.ini" dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini"
|
||||
copy: src="./config/{{project_env}}/{{inventory_hostname}}.ini" dest="{{ansistrano_release_path.stdout}}/application/configs/application.ini"
|
||||
|
||||
- name: EXTRANET | Set path in project config
|
||||
become: yes
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
- name: Intranet | Restart PHP-FPM
|
||||
become: yes
|
||||
service: name=php5-fpm state=reloaded
|
||||
service: name=php5-fpm state=restarted
|
||||
when: opcache is defined and opcache == "fcgi"
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
- name: ODEA | Restart PHP-FPM
|
||||
become: yes
|
||||
service: name=php5-fpm state=reloaded
|
||||
service: name=php5-fpm state=restarted
|
||||
when: opcache is defined and opcache == "fcgi"
|
38
apps/webservice/deploy-inextenso.yml
Normal file
38
apps/webservice/deploy-inextenso.yml
Normal file
@ -0,0 +1,38 @@
|
||||
---
|
||||
- name: Deploy WebService
|
||||
hosts: all
|
||||
remote_user: deploy
|
||||
become: no
|
||||
vars:
|
||||
# Specific
|
||||
project: webservice
|
||||
project_tree: "inextenso"
|
||||
# Always add a trailing / if you want rsync the content of the directory
|
||||
ansistrano_deploy_from: "/home/vhosts/deploy/export/{{project}}/"
|
||||
ansistrano_deploy_to: "/home/vhosts/{{project}}-inextenso"
|
||||
ansistrano_version_dir: releases
|
||||
ansistrano_current_dir: current
|
||||
ansistrano_shared_paths: []
|
||||
ansistrano_keep_releases: 3
|
||||
ansistrano_deploy_via: rsync
|
||||
ansistrano_allow_anonymous_stats: no
|
||||
# Variables used in the rsync deployment strategy
|
||||
ansistrano_rsync_extra_params: ""
|
||||
ansistrano_rsync_set_remote_user: yes
|
||||
# Variables used in the Git deployment strategy
|
||||
#ansistrano_git_repo: ssh://git@192.168.78.249:10022/SCORES/flux.git
|
||||
#ansistrano_git_branch: master
|
||||
#ansistrano_git_identity_key_path: ""
|
||||
# Hooks: custom tasks if you need them
|
||||
ansistrano_before_setup_tasks_file: "{{playbook_dir}}/tasks/before-setup.yml"
|
||||
ansistrano_after_setup_tasks_file: "{{playbook_dir}}/tasks/after-setup.yml"
|
||||
ansistrano_before_update_code_tasks_file: "{{playbook_dir}}/tasks/before-updatecode.yml"
|
||||
ansistrano_after_update_code_tasks_file: "{{playbook_dir}}/tasks/after-updatecode.yml"
|
||||
#ansistrano_before_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-shared-tasks.yml"
|
||||
#ansistrano_after_symlink_shared_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-symlink-shared-tasks.yml"
|
||||
#ansistrano_before_symlink_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-symlink-tasks.yml"
|
||||
ansistrano_after_symlink_tasks_file: "{{playbook_dir}}/tasks/after-symlink.yml"
|
||||
#ansistrano_before_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-before-cleanup-tasks.yml"
|
||||
#ansistrano_after_cleanup_tasks_file: "{{playbook_dir}}/<your-deployment-config>/my-after-cleanup-tasks.yml"
|
||||
roles:
|
||||
- { role: carlosbuenosvinos.ansistrano-deploy }
|
Loading…
Reference in New Issue
Block a user