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
# 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: | |
kkangapestcontrol.dev: | |
site_hosts: | |
- canonical: kangapestcontrol.dev | |
redirects: | |
- www.kangapestcontrol.dev |
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
TASK [Install Python 2.x] ****************************************************** | |
System info: | |
Ansible 2.2.1.0; Darwin | |
Trellis at "Check Ansible version before Ansible validates task attributes" | |
--------------------------------------------------- | |
Failed to connect to the host via ssh: Permission denied (publickey). | |
fatal: [staging.kangapestcontrol.com]: UNREACHABLE! => {"changed": false, "unreachable": true} | |
to retry, use: --limit @/Users/spencerhill/Sites/kangapestcontrol.com/trellis/server.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
TASK [deploy : Create file with multisite constants defined as false] ********** | |
changed: [staging.OMITTED.com] | |
TASK [deploy : WordPress Installed?] ******************************************* | |
System info: | |
Ansible 2.2.1.0; Darwin | |
Trellis at "Check Ansible version before Ansible validates task attributes" | |
--------------------------------------------------- | |
Error: This does not seem to be a WordPress install. | |
Pass --path=`path/to/wordpress` or run `wp core download`. |
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
➜ trellis git:(master) ✗ ansible-playbook deploy.yml -e env=staging -e site=staging.kangapestcontrol.com -vvv | |
Using /Users/spencerhill/Sites/kangapestcontrol.com/trellis/ansible.cfg as config file | |
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/deploy/tasks/initialize.yml | |
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/deploy/tasks/update.yml | |
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/deploy/tasks/prepare.yml | |
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/deploy/tasks/build.yml | |
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/deploy/tasks/share.yml | |
statically included: /Users/spencerhill/Sites/kangapestcontrol.com/trellis/roles/deploy/tasks/finalize.yml | |
PLAYBOOK: deploy.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
web@kangapestcontrol:~$ ls -alh /home/web/.ssh | |
total 20K | |
drwx------ 2 web www-data 4.0K Apr 4 23:11 . | |
drwxr-xr-x 4 web www-data 4.0K Apr 4 22:38 .. | |
-rw------- 1 web www-data 426 Apr 4 19:08 authorized_keys | |
-rw------- 1 root root 1.3K Apr 4 23:11 known_hosts | |
-rw-r--r-- 1 web www-data 1.7K Apr 4 22:38 known_hosts.old |
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
# Documentation: https://roots.io/trellis/docs/ssh-keys/ | |
admin_user: admin | |
# Also define 'vault_users' (`group_vars/staging/vault.yml`, `group_vars/production/vault.yml`) | |
users: | |
- name: "{{ web_user }}" | |
groups: | |
- "{{ web_group }}" | |
keys: | |
- "{{ lookup('file', '~/.ssh/id_rsa.pub') }}" |
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
TASK [deploy : Add known_hosts] ************************************************ | |
System info: | |
Ansible 2.2.1.0; Darwin | |
Trellis at "Check Ansible version before Ansible validates task attributes" | |
--------------------------------------------------- | |
ssh-keygen failed (rc=255,stdout='',stderr='do_known_hosts: hostkeys_foreach | |
failed: Permission denied | |
') | |
failed: [staging.OMITTED.com] (item=github.com ssh-rsa OMITTED==) => {"failed": true, "item": "github.com ssh-rsa OMITTED=="} | |
--------------------------------------------------- |
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
# Documentation: https://roots.io/trellis/docs/vault/ | |
vault_mysql_root_password: {omitted} | |
# Documentation: https://roots.io/trellis/docs/security/ | |
vault_users: | |
- name: "{{ admin_user }}" | |
password: {omitted} | |
# Variables to accompany `group_vars/staging/wordpress_sites.yml` | |
# Note: the site name (`example.com`) must match up with the site name in the above file. |
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
, | |
"overrides": { | |
"font-awesome": { | |
"main": [ | |
"./scss/font-awesome.scss", | |
"./fonts/*" | |
] | |
} | |
} |
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
/* ======================================================================== | |
* DOM-based Routing | |
* Based on http://goo.gl/EUTi53 by Paul Irish | |
* | |
* Only fires on body classes that match. If a body class contains a dash, | |
* replace the dash with an underscore when adding it to the object below. | |
* | |
* .noConflict() | |
* The routing is enclosed within an anonymous function so that you can | |
* always reference jQuery with $, even when in .noConflict() mode. |