forked from roots/trellis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit 'f1c4fb72009906244f512e82bb02c2f9435dbed0'
* commit 'f1c4fb72009906244f512e82bb02c2f9435dbed0': (52 commits) Add Nginx variable to set fastcgi_buffer_size (roots#586) Require Ansible 2.0.2 and remove deploy_helper Pass cli options to user role's admin_user ping test Add connection-related cli options to ping command Wrap my.cnf password in quotes Update to WP-CLI v0.23.1 Fix roots#563 - Improve remote databases Update salts link to roots.io version Fix roots#569 Only skip subdomains for non-www domains Define development default for Let's Encrypt variable Enable Let's Encrypt to transition http sites to https Add 'reason' to attr extracted for pretty-print Adding dbus to essentials Pass vault cli args to remote-user ping task Tidy up sudoer password definitions and comments 👮 Fix ssmtp role tags 0.9.7 Fix ansible.cfg and Ansible plugins for moved Vagrantfile Enable color output for Vagrant shell provisioner windows.sh Tidy up output.py by moving some methods to utils ... # Conflicts: # roles/deploy/defaults/main.yml
- Loading branch information
Showing
91 changed files
with
1,085 additions
and
773 deletions.
There are no files selected for viewing
File renamed without changes.
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,63 @@ | ||
## Submit a feature request or bug report | ||
|
||
- [ ] This is a feature request | ||
- [ ] This is a bug report | ||
- [ ] This request isn't a duplicate of an [existing issue](https://github.com/roots/trellis/issues) | ||
- [ ] I've read the [docs](https://roots.io/trellis/docs) and followed them (if applicable) | ||
|
||
Replace any `X` with your information. | ||
|
||
--- | ||
|
||
**What is the current behavior?** | ||
|
||
X | ||
|
||
|
||
**What is the expected or desired behavior?** | ||
|
||
X | ||
|
||
--- | ||
|
||
## Bug report | ||
|
||
(delete this section if not applicable) | ||
|
||
**Please provide steps to reproduce, including full log output:** | ||
|
||
X | ||
|
||
**Please describe your local environment:** | ||
|
||
Ansible version: X | ||
|
||
OS: X | ||
|
||
Vagrant version: X | ||
|
||
**Where did the bug happen? Development or remote servers?** | ||
|
||
X | ||
|
||
**Please provide a repository or your `wordpress_sites` config (if possible):** | ||
|
||
X | ||
|
||
**Is there a related [Discourse](https://discourse.roots.io/) thread or were any utilized (please link them)?** | ||
|
||
X | ||
|
||
--- | ||
|
||
## Feature Request | ||
|
||
(delete this section if not applicable) | ||
|
||
**Please provide use cases for changing the current behavior:** | ||
|
||
X | ||
|
||
**Other relevant information:** | ||
|
||
X |
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
.vagrant | ||
vendor/roles | ||
*.py[co] | ||
*.retry |
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 |
---|---|---|
@@ -1,7 +1,13 @@ | ||
[defaults] | ||
roles_path = vendor/roles | ||
callback_plugins = ~/.ansible/plugins/callback_plugins/:/usr/share/ansible_plugins/callback_plugins:lib/trellis/plugins/callback | ||
stdout_callback = output | ||
filter_plugins = ~/.ansible/plugins/filter_plugins/:/usr/share/ansible_plugins/filter_plugins:lib/trellis/plugins/filter | ||
force_color = True | ||
force_handlers = True | ||
inventory = hosts | ||
nocows = 1 | ||
roles_path = vendor/roles | ||
vars_plugins = ~/.ansible/plugins/vars_plugins/:/usr/share/ansible_plugins/vars_plugins:lib/trellis/plugins/vars | ||
|
||
[ssh_connection] | ||
ssh_args = -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s |
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 |
---|---|---|
|
@@ -13,6 +13,15 @@ | |
deploy_finalize_after: "{{ playbook_dir }}/roles/deploy/hooks/finalize-after.yml" | ||
project: "{{ wordpress_sites[site] }}" | ||
project_root: "{{ www_root }}/{{ site }}" | ||
wordpress_env_defaults: | ||
db_host: localhost | ||
db_name: "{{ site | underscore }}_{{ env }}" | ||
db_user: "{{ site | underscore }}" | ||
disable_wp_cron: true | ||
wp_env: "{{ env }}" | ||
wp_home: "{{ project.ssl.enabled | default(false) | ternary('https', 'http') }}://${HTTP_HOST}" | ||
wp_siteurl: "${WP_HOME}/wp" | ||
site_env: "{{ wordpress_env_defaults | combine(project.env | default({}), vault_wordpress_sites[site].env) }}" | ||
|
||
pre_tasks: | ||
- name: Ensure site is valid | ||
|
@@ -26,10 +35,10 @@ | |
fail: | ||
msg: | | ||
Invalid Git repository. | ||
Ensure that your site's `repo` variable is defined in `group_vars/{{ env }}/wordpress_sites.yml` and uses the SSH format (example: [email protected]/roots/bedrock.git) | ||
Ensure that your site's `repo` variable is defined in `group_vars/{{ env }}/wordpress_sites.yml` and uses the SSH format (example: [email protected]:roots/bedrock.git) | ||
More info: | ||
> https://roots.io/trellis/docs/deploys/ | ||
when: project.repo is not defined or not project.repo | match("git@.*.git") | ||
when: project.repo is not defined or not project.repo | match(".*@.*:.*\.git") | ||
|
||
roles: | ||
- deploy |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
acme_tiny_challenges_directory: "{{ www_root }}/letsencrypt" | ||
env: development | ||
ferm_enabled: false | ||
mysql_root_password: "{{ vault_mysql_root_password }}" # Define this variable in group_vars/development/vault.yml | ||
sudoer_passwords: "{{ vault_sudoer_passwords }}" # Define this variable in group_vars/development/vault.yml | ||
web_user: vagrant |
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 |
---|---|---|
@@ -1,28 +1,17 @@ | ||
# Documentation: https://roots.io/trellis/docs/local-development-setup/ | ||
# `wordpress_sites` options: https://roots.io/trellis/docs/wordpress-sites | ||
# Define accompanying passwords/secrets in group_vars/development/vault.yml | ||
|
||
wordpress_sites: | ||
example.com: | ||
site_hosts: | ||
- example.dev | ||
local_path: ../site # path targeting local Bedrock site directory (relative to Ansible root) | ||
site_install: true | ||
site_title: Example Site | ||
admin_user: admin | ||
# admin_password: (defined in group_vars/development/vault.yml) | ||
admin_email: [email protected] | ||
initial_permalink_structure: /%postname%/ # applied only at time of WP install and when `site_install: true` | ||
multisite: | ||
enabled: false | ||
subdomains: false | ||
ssl: | ||
enabled: false | ||
provider: self-signed | ||
cache: | ||
enabled: false | ||
duration: 30s | ||
env: | ||
disable_wp_cron: true | ||
wp_home: http://example.dev | ||
wp_siteurl: http://example.dev/wp | ||
wp_env: development | ||
db_name: example_dev | ||
db_user: example_dbuser | ||
# db_password: (defined in group_vars/development/vault.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
Oops, something went wrong.