Skip to content
Closed
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
2 changes: 1 addition & 1 deletion Dockerfile.cloud
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ COPY provision/ /opt/docker/provision/

COPY app/ /app/

RUN /opt/docker/bin/provision add --tag bootstrap --tag entrypoint boilerplate-main boilerplate-deployment \
RUN /opt/docker/bin/provision run --tag bootstrap --role boilerplate-main --role boilerplate-deployment \
&& /opt/docker/bin/bootstrap.sh

# Configure volume/workdir
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.development
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ ENV PROVISION_CONTEXT "development"
COPY etc/ /opt/docker/etc/
COPY provision/ /opt/docker/provision/

RUN /opt/docker/bin/provision add --tag bootstrap --tag entrypoint boilerplate-main boilerplate-main-development boilerplate-deployment \
RUN /opt/docker/bin/provision run --tag bootstrap --role boilerplate-main --role boilerplate-main-development --role boilerplate-deployment \
&& /opt/docker/bin/bootstrap.sh

# Configure volume/workdir
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.production
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ ENV PROVISION_CONTEXT "production"
COPY etc/ /opt/docker/etc/
COPY provision/ /opt/docker/provision/

RUN /opt/docker/bin/provision add --tag bootstrap --tag entrypoint boilerplate-main boilerplate-deployment \
RUN /opt/docker/bin/provision run --tag bootstrap --role boilerplate-main --role boilerplate-deployment \
&& /opt/docker/bin/bootstrap.sh

# Configure volume/workdir
Expand Down
2 changes: 1 addition & 1 deletion documentation/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Overview

.. toctree::

Back to Project Overview <http://webdevops-documentation.readthedocs.org/en/latest/>
Back to Project Overview <http://webdevops-documentation.readthedocs.io/en/latest/>
content/introduction

.. toctree::
Expand Down
5 changes: 3 additions & 2 deletions etc/application.development.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---

PROVISION:
systemUpdate: false

install:
apacheModPagespeed: false

Expand All @@ -28,6 +26,9 @@ MAIL:
# - { variable: "relayhost", value: "foobar" }

PHP:
# PHP debugger [xdebug or blackfire or none]
debugger: "xdebug"

fpm:
conf:
# PM
Expand Down
31 changes: 0 additions & 31 deletions etc/application.environment.yml

This file was deleted.

2 changes: 0 additions & 2 deletions etc/application.production.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---

PROVISION:
systemUpdate: true

install:
apacheModPagespeed: false

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---

- include: bootstrap/php-blackfire/debian.yml
when: ansible_distribution == 'CentOS' and PROVISION.install.phpBlackfire is defined and PROVISION.install.phpBlackfire
- include: bootstrap/php-debugger.blackfire.yml
when: PHP.debugger is defined and PHP.debugger == "blackfire"

- include: bootstrap/php-blackfire/redhat.yml
when: ansible_os_family == 'Debian' and PROVISION.install.phpBlackfire is defined and PROVISION.install.phpBlackfire
- include: bootstrap/php-debugger.none.yml
when: PHP.debugger is not defined or PHP.debugger == "" or PHP.debugger == "none"

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---

- name: Disable xdebug
replace:
dest: '{{ item }}'
regexp: '^[;\s]*((zend_)?(extension=))'
replace: ';\1'
ignore_errors: yes
with_items:
# RedHat
- "/etc/php.d/xdebug.ini"
# Debian - PHP 5.x
- "/etc/php5/mods-available/xdebug.ini"
- "/etc/php5/cli/conf.d/20-xdebug.ini"
- "/etc/php5/cli/conf.d/xdebug.ini"
- "/etc/php5/fpm/conf.d/20-xdebug.ini"
- "/etc/php5/fpm/conf.d/xdebug.ini"
# Debian - PHP 7.x
- "/etc/php/7.0/mods-available/xdebug.ini"
- "/etc/php/7.0/cli/conf.d/20-xdebug.ini"
- "/etc/php/7.0/fpm/conf.d/20-xdebug.ini"

- name: Enable blackfire
replace:
dest: '{{ item }}'
regexp: '^[;\s]*((zend_)?(extension=))'
replace: '\1'
ignore_errors: yes
with_items:
# RedHat
- "/etc/php.d/zz-blackfire.ini"
# Debian - PHP 5.x
- "/etc/php5/conf.d/90-blackfire.ini"
- "/etc/php5/conf.d/zz-blackfire.ini"
- "/etc/php5/cli/conf.d/90-blackfire.ini"
- "/etc/php5/cli/conf.d/zz-blackfire.ini"
- "/etc/php5/fpm/conf.d/90-blackfire.ini"
- "/etc/php5/fpm/conf.d/zz-blackfire.ini"
# Debian - PHP 7.x
- "/etc/php/7.0/cli/conf.d/90-blackfire.ini"
- "/etc/php/7.0/fpm/conf.d/90-blackfire.ini"
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---

- name: Disable xdebug
replace:
dest: '{{ item }}'
regexp: '^[;\s]*((zend_)?(extension=))'
replace: ';\1'
ignore_errors: yes
with_items:
# RedHat
- "/etc/php.d/xdebug.ini"
# Debian - PHP 5.x
- "/etc/php5/mods-available/xdebug.ini"
- "/etc/php5/cli/conf.d/20-xdebug.ini"
- "/etc/php5/cli/conf.d/xdebug.ini"
- "/etc/php5/fpm/conf.d/20-xdebug.ini"
- "/etc/php5/fpm/conf.d/xdebug.ini"
# Debian - PHP 7.x
- "/etc/php/7.0/mods-available/xdebug.ini"
- "/etc/php/7.0/cli/conf.d/20-xdebug.ini"
- "/etc/php/7.0/fpm/conf.d/20-xdebug.ini"

- name: Disable blackfire
replace:
dest: '{{ item }}'
regexp: '^[;\s]*((zend_)?(extension=))'
replace: ';\1'
ignore_errors: yes
with_items:
# RedHat
- "/etc/php.d/zz-blackfire.ini"
# Debian - PHP 5.x
- "/etc/php5/conf.d/90-blackfire.ini"
- "/etc/php5/conf.d/zz-blackfire.ini"
- "/etc/php5/cli/conf.d/90-blackfire.ini"
- "/etc/php5/cli/conf.d/zz-blackfire.ini"
- "/etc/php5/fpm/conf.d/90-blackfire.ini"
- "/etc/php5/fpm/conf.d/zz-blackfire.ini"
# Debian - PHP 7.x
- "/etc/php/7.0/cli/conf.d/90-blackfire.ini"
- "/etc/php/7.0/fpm/conf.d/90-blackfire.ini"
9 changes: 0 additions & 9 deletions provision/roles/boilerplate-main/tasks/bootstrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@
# Run tasks
#############################

- include: bootstrap/systemUpdate.centos.yml
when: PROVISION.systemUpdate is defined and PROVISION.systemUpdate and ansible_distribution == 'CentOS'

- include: bootstrap/systemUpdate.ubuntu.yml
when: PROVISION.systemUpdate is defined and PROVISION.systemUpdate and ansible_distribution == 'Ubuntu'

- include: bootstrap/composer.yml
when: PROVISION.install.phpComposer is defined and PROVISION.install.phpComposer

- include: bootstrap/services.yml

- include: bootstrap/cron.yml
Expand Down
14 changes: 0 additions & 14 deletions provision/roles/boilerplate-main/tasks/bootstrap/composer.yml

This file was deleted.

20 changes: 19 additions & 1 deletion provision/roles/boilerplate-main/tasks/bootstrap/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,30 @@

- include_vars: "/opt/docker/etc/application.{{ PROVISION_CONTEXT }}.yml"

#############################
# Stats
#############################

- stat:
path: /opt/docker/etc/php/fpm/php-fpm.conf
register: phpFpmConf

- stat:
path: /opt/docker/etc/php/fpm/pool.d/application.conf
register: phpFpmApplicationPool

#############################
# Tasks
#############################

- name: Configure php-fpm (pool www.conf)
lineinfile:
dest: "/opt/docker/etc/php/fpm/pool.d/application.conf"
regexp: '^[\s;]*{{ item.variable }}[\s]*='
line: '{{ item.variable }} = {{ item.value }}'
with_items: "{{ PHP.fpm.conf }}"
when: PHP.fpm.conf is defined and item.value != ""
when: PHP.fpm.conf is defined and item.value != "" and
phpFpmApplicationPool.stat.exists is defined and phpFpmApplicationPool.stat.exists

- name: Configure php-fpm (php-fpm.conf)
lineinfile:
Expand All @@ -17,6 +34,7 @@
line: '{{ item.key }} = {{ item.value }}'
with_items:
- { key: 'daemonize', value: 'no' }
when: phpFpmConf.stat.exists is defined and phpFpmConf.stat.exists

- name: Set development environment php.ini
file:
Expand Down

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions provision/roles/boilerplate-main/tasks/entrypoint.yml

This file was deleted.

17 changes: 0 additions & 17 deletions provision/roles/boilerplate-main/tasks/entrypoint/mysql.yml

This file was deleted.

12 changes: 0 additions & 12 deletions provision/roles/boilerplate-main/tasks/entrypoint/php.yml

This file was deleted.

4 changes: 0 additions & 4 deletions provision/roles/boilerplate-main/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@
- include: bootstrap.yml
tags:
- bootstrap

- include: entrypoint.yml
tags:
- entrypoint