Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #599 from cibox/ansible_lamp
Ansible 1.9.6. MariaDB, support Ubuntu 16.04
- Loading branch information
Showing
11 changed files
with
112 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
|
||
. ./requirements.sh | ||
|
||
export PYTHONUNBUFFERED=1 | ||
|
||
# Get server IP from config.yml | ||
IP=$(grep -E '^server_ip:\s.*$' config.yml | cut -d" " -f2) | ||
|
||
if [ -z "${IP}" ]; then | ||
echo "Please specify IP address in config.yml" | ||
exit | ||
fi | ||
|
||
ansible-playbook -vvvv -i "${IP}", services/cilamp.yml --connection=local --extra-vars "@config.yml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# CIBox Core: LAMP | ||
|
||
Main Ansible Role that installs LAMP server. | ||
|
||
## Requirements | ||
|
||
This role should contain only `meta.yml` file with dependencies. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
dependencies: | ||
- { role: '../core/cibox-env' } | ||
- { role: '../core/cibox-swap' } | ||
- { role: '../core/facade-apache' } | ||
- { role: '../core/facade-php' } | ||
- { role: '../core/facade-composer' } | ||
- { role: '../core/cibox-drush' } | ||
- { role: '../core/facade-php-pear' } | ||
# - { role: '../core/facade-php-xhprof' } | ||
- { role: '../core/cibox-php-pcntl' } | ||
# - { role: '../core/facade-mysql' } | ||
# - { role: '../core/cibox-jenkins' } | ||
# - { role: '../core/cibox-jetty-solr' } | ||
# - { role: '../core/cibox-sniffers' } | ||
- { role: '../core/facade-ssl-config' } | ||
# - { role: '../core/cibox-behat-selenium2' } | ||
- { role: '../core/cibox-security' } | ||
# - { role: '../core/facade-docker' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
# Do not run this playbook manually! Use 'run.sh'. | ||
- hosts: all | ||
gather_facts: yes | ||
remote_user: root | ||
|
||
vars: | ||
drush_composer_version: 8.1.17 | ||
|
||
drushrc: | ||
drush_usage_log: 1 | ||
drush_usage_send: 1 | ||
|
||
# PHP configs. | ||
php_apc_enabled_in_ini: true | ||
|
||
cibox_php_pcntl: no | ||
# Apache config. | ||
cibox_ssl_folder: /etc/apache/ssl | ||
apache_create_vhosts: true | ||
apache_vhosts_filename: "vhosts.conf" | ||
apache_remove_default_vhost: true | ||
apache_default_vhost_filename: "000-default.conf" | ||
apache_vhosts: | ||
- { | ||
servername: "openy", | ||
serveralias: "*.*", | ||
documentroot: "/var/www" | ||
} | ||
apache_vhosts_ssl: | ||
- { | ||
servername: "openy", | ||
serveralias: "*.*", | ||
documentroot: "/var/www", | ||
certificate_file: "{{ cibox_ssl_folder }}/apache.crt", | ||
certificate_key_file: "{{ cibox_ssl_folder }}/apache.key", | ||
} | ||
apache_mods_enabled: | ||
- rewrite.load | ||
- ssl.load | ||
|
||
pre_tasks: | ||
- name: Check if the playbook was executed with the runner | ||
fail: | ||
msg: "Please, run this playbook with provision.sh." | ||
when: server_ip is not defined | ||
|
||
roles: | ||
- { role: '../core/core-lamp' } |