Coder Social home page Coder Social logo

roots / trellis Goto Github PK

View Code? Open in Web Editor NEW
2.5K 111.0 604.0 1.94 MB

WordPress LEMP stack with PHP 8.2, Composer, WP-CLI and more

Home Page: https://roots.io/trellis/

License: MIT License

Python 17.92% Ruby 9.27% Jinja 72.80%
vagrant ansible bedrock wordpress wp-cli trellis virtualbox trellis-cli local nginx

trellis's Introduction

Trellis

Build Status Follow Roots

Ansible-powered LEMP stack for WordPress

Website    Documentation    Releases    Community

Sponsors

Trellis is an open source project and completely free to use. If you've benefited from our projects and would like to support our future endeavors, please consider sponsoring Roots.

KM Digital Carrot WordPress.com Worksite Safety

Overview

Trellis is a collection of Ansible playbooks for setting up a LEMP stack for WordPress.

  • Local development environment with Vagrant
  • High-performance production servers
  • Zero-downtime deploys for your Bedrock-based WordPress sites
  • trellis-cli for easier management

Getting Started

See the Trellis installation documentation.

Stay Connected

trellis's People

Contributors

austinpray avatar cfxd avatar chriszarate avatar ckovey avatar craigpearson avatar dalepgrant avatar e-vance avatar emaildano avatar fullyint avatar heyfletch avatar joshuafredrickson avatar kalenjohnson avatar log1x avatar louim avatar lucasdemea avatar medfreeman avatar mockey avatar nathanielks avatar partounian avatar paultibbetts avatar primozcigler avatar qwp6t avatar raph-topo avatar reidab avatar retlehs avatar rifi2k avatar robrecord avatar strarsis avatar swalkinshaw avatar tangrufus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

trellis's Issues

VM guest addition version mismatch with VirtualBox

    default: The guest additions on this VM do not match the installed version of
    default: VirtualBox! In most cases this is fine, but in rare cases it can
    default: prevent things such as shared folders from working properly. If you see
    default: shared folder errors, please make sure the guest additions within the
    default: virtual machine match the version of VirtualBox you have installed on
    default: your host and reload your VM.

edit: accidentally hit enter.

I am using virtualbox version:

$ vboxmanage --version
4.3.12r93733

Maybe the roots/bedrock box needs to be updated? Everything appears to be working okay, but it's a nasty warning message.

Issues with vagrant up

First, had to uninstall my brew installed vagrant. Both the brew install and gem install version 1.5.0. I downloaded the dmg from the vagrant site and installed the latest version 1.6.1.

Then I needed to a directory for my local site at the same level as the bedrock-ansible folder. (probably should be in the docs)

Next I got an error:

ImportError: No module named markupsafe

Fixed that with:

$ sudo pip install markupsafe

That installed with errors, so I did with help from the google:

$ export ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future"
$ sudo pip install markupsafe
Requirement already satisfied (use --upgrade to upgrade): markupsafe in /Library/Python/2.7/site-packages
Cleaning up...

So assuming everything is good, I did a vagrant destroy and a vagrant up. This told me:

TASK: [wordpress-sites | Install Dependencies with Composer] ****************** 
failed: [default] => (item={'site_install': True, 'admin_user': 'admin', 'site_name': 'bedrock.dev', 'system_cron': True, 'user': 'vagrant', 'run_composer': True, 'multisite': {'enabled': False}, 'group': 'www-data', 'site_title': 'bedrock', 'admin_password': 'admin', 'env': {'wp_env': 'development', 'db_user': 'bedrock_dbuser', 'db_password': 'bedrock_dbpassword', 'wp_siteurl': 'http://bedrock.dev/wp', 'db_name': 'bedrock_dev', 'wp_home': 'http://bedrock.dev'}, 'site_hosts': ['192.168.50.5', 'bedrock.dev'], 'admin_email': '[email protected]'}) => {"changed": true, "cmd": ["composer", "install"], "delta": "0:00:00.043257", "end": "2014-05-11 17:27:19.163028", "item": {"admin_email": "[email protected]", "admin_password": "admin", "admin_user": "admin", "env": {"db_name": "bedrock_dev", "db_password": "bedrock_dbpassword", "db_user": "bedrock_dbuser", "wp_env": "development", "wp_home": "http://bedrock.dev", "wp_siteurl": "http://bedrock.dev/wp"}, "group": "www-data", "multisite": {"enabled": false}, "run_composer": true, "site_hosts": ["192.168.50.5", "bedrock.dev"], "site_install": true, "site_name": "bedrock.dev", "site_title": "bedrock", "system_cron": true, "user": "vagrant"}, "rc": 1, "start": "2014-05-11 17:27:19.119771"}
stdout: Composer could not find a composer.json file in /srv/www/bedrock.dev/current
To initialize a project, please create a composer.json file as described in the http://getcomposer.org/ "Getting Started" section

FATAL: all hosts have already failed -- aborting

I added a roots/bedrock current/composer.json to my bedrock.dev directory, did a vagrant provision, which also failed with the same error as above. This was wrong, I should have added the composer.json to the bedrock.dev folder (not add a current/composer.json to bedrock.dev folder). That got me through the above error.

This resulted in the following error where I am stuck:

TASK: [wordpress-sites | WP installed?] *************************************** 
failed: [default] => (item={'site_install': True, 'admin_user': 'admin', 'site_name': 'bedrock.dev', 'system_cron': True, 'user': 'vagrant', 'run_composer': True, 'multisite': {'enabled': False}, 'group': 'www-data', 'site_title': 'bedrock', 'admin_password': 'admin', 'env': {'wp_env': 'development', 'db_user': 'bedrock_dbuser', 'db_password': 'bedrock_dbpassword', 'wp_siteurl': 'http://bedrock.dev/wp', 'db_name': 'bedrock_dev', 'wp_home': 'http://bedrock.dev'}, 'site_hosts': ['192.168.50.5', 'bedrock.dev'], 'admin_email': '[email protected]'}) => {"changed": true, "cmd": ["wp", "core", "is-installed", "--allow-root"], "delta": "0:00:00.045793", "end": "2014-05-11 17:54:59.135343", "item": {"admin_email": "[email protected]", "admin_password": "admin", "admin_user": "admin", "env": {"db_name": "bedrock_dev", "db_password": "bedrock_dbpassword", "db_user": "bedrock_dbuser", "wp_env": "development", "wp_home": "http://bedrock.dev", "wp_siteurl": "http://bedrock.dev/wp"}, "group": "www-data", "multisite": {"enabled": false}, "run_composer": true, "site_hosts": ["192.168.50.5", "bedrock.dev"], "site_install": true, "site_name": "bedrock.dev", "site_title": "bedrock", "system_cron": true, "user": "vagrant"}, "rc": 1, "start": "2014-05-11 17:54:59.089550"}
stderr: Error: This does not seem to be a WordPress install.
Pass --path=`path/to/wordpress` or run `wp core download`.
...ignoring

TASK: [wordpress-sites | Install WP] ****************************************** 
failed: [default] => (item={'item': {'site_install': True, 'admin_user': 'admin', 'site_name': 'bedrock.dev', 'system_cron': True, 'user': 'vagrant', 'run_composer': True, 'multisite': {'enabled': False}, 'group': 'www-data', 'site_title': 'bedrock', 'admin_password': 'admin', 'env': {'wp_env': 'development', 'db_user': 'bedrock_dbuser', 'db_password': 'bedrock_dbpassword', 'wp_siteurl': 'http://bedrock.dev/wp', 'db_name': 'bedrock_dev', 'wp_home': 'http://bedrock.dev'}, 'site_hosts': ['192.168.50.5', 'bedrock.dev'], 'admin_email': '[email protected]'}, u'delta': u'0:00:00.045793', u'cmd': [u'wp', u'core', u'is-installed', u'--allow-root'], u'end': u'2014-05-11 17:54:59.135343', u'stderr': u'Error: This does not seem to be a WordPress install.\nPass --path=`path/to/wordpress` or run `wp core download`.', u'stdout': u'', 'invocation': {'module_name': 'command', 'module_args': u'wp core is-installed --allow-root chdir=/srv/www/bedrock.dev/current/'}, u'changed': True, u'rc': 1, u'start': u'2014-05-11 17:54:59.089550'}) => {"changed": true, "cmd": ["wp", "core", "install", "--allow-root", "--url=http://bedrock.dev", "--title=bedrock", "--admin_user=admin", "--admin_password=admin", "[email protected]"], "delta": "0:00:00.034885", "end": "2014-05-11 17:54:59.274118", "item": {"changed": true, "cmd": ["wp", "core", "is-installed", "--allow-root"], "delta": "0:00:00.045793", "end": "2014-05-11 17:54:59.135343", "invocation": {"module_args": "wp core is-installed --allow-root chdir=/srv/www/bedrock.dev/current/", "module_name": "command"}, "item": {"admin_email": "[email protected]", "admin_password": "admin", "admin_user": "admin", "env": {"db_name": "bedrock_dev", "db_password": "bedrock_dbpassword", "db_user": "bedrock_dbuser", "wp_env": "development", "wp_home": "http://bedrock.dev", "wp_siteurl": "http://bedrock.dev/wp"}, "group": "www-data", "multisite": {"enabled": false}, "run_composer": true, "site_hosts": ["192.168.50.5", "bedrock.dev"], "site_install": true, "site_name": "bedrock.dev", "site_title": "bedrock", "system_cron": true, "user": "vagrant"}, "rc": 1, "start": "2014-05-11 17:54:59.089550", "stderr": "Error: This does not seem to be a WordPress install.\nPass --path=`path/to/wordpress` or run `wp core download`.", "stdout": ""}, "rc": 1, "start": "2014-05-11 17:54:59.239233"}
stderr: Error: This does not seem to be a WordPress install.
Pass --path=`path/to/wordpress` or run `wp core download`.

FATAL: all hosts have already failed -- aborting

PLAY RECAP ******************************************************************** 
           to retry, use: --limit @/Users/rkoberg/site.retry

default                    : ok=44   changed=19   unreachable=0    failed=1   

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

Any ideas how to fix? I am attaching a screen
grab of my dir structure
screen shot 2014-05-11 at 10 58 20 am

I copied the exisiting bedrock-ansible/hosts.example to bedrock-ansible/hosts and did not change anything. Nothing was changed in the site.yml

My bedrock-ansible/group_vars/all looks like:


---
www_root: /srv/www

# Define your WordPress sites here
wordpress_sites:
  - site_name: bedrock.dev
    site_hosts:
      - 192.168.50.5
      - bedrock.dev
    user: vagrant
    group: www-data
    site_install: true
    site_title: bedrock
    admin_user: admin
    admin_password: admin
    admin_email: [email protected]
    system_cron: true
    run_composer: true
    multisite:
      enabled: false
    env:
      wp_home: http://bedrock.dev
      wp_siteurl: http://bedrock.dev/wp
      wp_env: development
      db_name: bedrock_dev
      db_user: bedrock_dbuser
      db_password: bedrock_dbpassword

My Vagrant file looks like:

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.require_version '>= 1.5.1'

Vagrant.configure('2') do |config|
  config.vm.box = 'roots/bedrock'

  config.vm.network :private_network, ip: '192.168.50.5'
  config.vm.hostname = 'bedrock.dev'

  # adjust paths relative to Vagrantfile
  config.vm.synced_folder '../bedrock.dev', '/srv/www/bedrock.dev/current', owner: 'vagrant', group: 'www-data', mount_options: ['dmode=776', 'fmode=775']

  config.vm.provision :ansible do |ansible|
    # adjust paths relative to Vagrantfile
    ansible.playbook = './site.yml'
    ansible.groups = {
      'wordpress-server' => ['default']
    }
    ansible.extra_vars = {
      ansible_ssh_user: 'vagrant',
      user: 'vagrant'
    }
    ansible.sudo = true
  end

  if Vagrant.has_plugin?('vagrant-cachier')
    config.cache.scope = :box

    config.cache.synced_folder_opts = {
      type: :nfs,
      mount_options: ['rw', 'vers=3', 'tcp', 'nolock']
    }
  end
end

chown failed: failed to look up user deploy

With the capistrano task not being run on development servers, the deploy user is never created and ansible provision fails on a vanilla server. Should the nginx conf owner of {{ item.site_name }}.conf be www-data or deploy? I would think it'd be www-data, yeah? Capistrano doesn't ever touch the nginx conf files.

Ansible error creating .env file of sites

I'm really impressed with what you've got going here so far. I've learned a lot from your Ansible configurations.

I've found a couple of small issues. When you first spin up Vagrant, it errors out on the shared folder example. It's easy to comment out.

The main issue I'm unable to get past is the following Ansible error:

TASK: [wordpress-sites | Create .env file of sites] ***************************
fatal: [default] => failed to parse: SUDO-SUCCESS-bbrddfodbxrhgwqvxvikfmtzmlkwtfex
Traceback (most recent call last):
  File "/home/vagrant/.ansible/tmp/ansible-1399263313.38-272708903973937/dotenv", line 1124, in <module>
    main()
  File "/home/vagrant/.ansible/tmp/ansible-1399263313.38-272708903973937/dotenv", line 92, in main
    write_changes(module, contents, dest)
  File "/home/vagrant/.ansible/tmp/ansible-1399263313.38-272708903973937/dotenv", line 38, in write_changes
    tmpfd, tmpfile = tempfile.mkstemp()
NameError: global name 'tempfile' is not defined

Since I'm currently not entirely sure what this does, I'm not sure how to go about fixing it. Any ideas?

Node.js for roots theme? Ruby for others?

Alrighty friends, got another question for us: do we write a role for node.js for roots theme integration? Currently roots/roots ignores any css file named anything like assets/css/main.css as you can see here. We'll need node in order to compile once it's been deployed to the server.

Also, may I also put a request in for supporting ruby as well, as I'm using the sass gem because sassc isn't at feature parity yet. I need 3.3+, whereas it's at ~3.2.

Issues with Provisioning

I'm getting an issue different from those already discussed:

TASK: [common | Update Apt] *************************************************** 
failed: [default] => {"failed": true, "item": ""}
msg: Failed to lock apt for exclusive operation

FATAL: all hosts have already failed -- aborting

Any ideas?

Running OSX latest & master @ HEAD

Improve Vagrant performance

G'day all!

I've been working on a client site and vagrant/virtualbox's performance has been terrible. Did some research and found some methods that have increased performance significantly. I made the changes suggested in this article and I'm not frustrated anymore. Shall we go and do likewise? The main caveat is this is limited to *nix installations, so this won't (entirely) be compatible with windows machines. System resources can be modified, but NFS won't work ( and is where most of the performance gains are found ).

Here's a gist of what our modified Vagrantfile would look like.

nfs: true vs type: "nfs"

Vagrant docs recommend

Vagrant.configure("2") do |config|
  # ...

  config.vm.synced_folder ".", "/vagrant", type: "nfs"
end

Why are we using

config.vm.synced_folder '../example.dev', '/srv/www/example.dev/current', nfs: true

then?

Xdebug

Would you be at all opposed to including Xdebug in the mix as well?

Provisioning failing on log creation

Great playbook, however I've been running into an issue on provisioning the vagrant box. I've checked everything in the vagrantfile, have a bedrock project in the example.dev folder and all my paths seems correct. Could I have a permissions issue or something?

Here's the output.

TASK: [wordpress-sites | Create access log files] *****************************
failed: [default] => (item={'site_install': True, 'admin_user': 'admin', 'site_name': 'example.dev', 'system_cron': True, 'user': 'vagrant', 'run_composer': True, 'multisite': {'enabled': False}, 'group': 'www-data', 'site_title': 'Example Site', 'admin_password': 'admin', 'env': {'wp_env': 'development', 'db_user': 'example_dbuser', 'db_password': 'example_dbpassword', 'wp_siteurl': 'http://example.dev/wp', 'db_name': 'example_dev', 'wp_home': 'http://example.dev'}, 'site_hosts': ['192.168.50.5', 'example.dev'], 'admin_email': '[email protected]'}) => {"failed": true, "item": {"admin_email": "[email protected]", "admin_password": "admin", "admin_user": "admin", "env": {"db_name": "example_dev", "db_password": "example_dbpassword", "db_user": "example_dbuser", "wp_env": "development", "wp_home": "http://example.dev", "wp_siteurl": "http://example.dev/wp"}, "group": "www-data", "multisite": {"enabled": false}, "run_composer": true, "site_hosts": ["192.168.50.5", "example.dev"], "site_install": true, "site_name": "example.dev", "site_title": "Example Site", "system_cron": true, "user": "vagrant"}, "path": "/srv/www/example.dev/logs/example.dev.access.log", "state": "absent"}
msg: file (/srv/www/example.dev/logs/example.dev.access.log) is absent, cannot continue

FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
           to retry, use: --limit @/Users/Mac/site.retry

default                    : ok=39   changed=15   unreachable=0    failed=1

SSH Key management

When you're using multiple SSH Keys it would be nice if you could define the key in group_vars/all. It defaults to ~/.ssh/id_rsa.pub wich I don't have at all and that ends up in an error the first time you run vagrant up. I'm not familiar with ansible, so it took me a while to find out where to set it (roles/capistrano-setup/defaults/main.yml -> deploy_keys), so I could fix the error.

"Something may be wrong with WordPress.org or this server’s configuration" warning

I am getting:

Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /srv/www/test.dev/current/web/wp/wp-includes/update.php on line 287

After simply following the instructions exactly from the readme. Everything works amazing except I just get this warning at the top constantly.

Steps to reproduce: follow exactly the instructions in the readme with install a fresh copy of wordpress with the default theme.

msg: chown failed when vagrant up

vagrant destroy -f && vagrant up

My branch: https://github.com/austinpray/bedrock-ansible/tree/H5BPserverconfigs

TASK: [wordpress-sites | Create web root of sites] **************************** 
failed: [default] => (item={'site_install': True, 'admin_user': 'admin', 'site_name': 'example.dev', 'system_cron': True, 'multisite': {'enabled': False}, 'site_title': 'Example Site', 'user': 'vagrant', 'env': {'db_name': 'example_dev', 'wp_env': 'development', 'db_user': 'example_dbuser', 'db_password': 'example_dbpassword', 'wp_home': 'http://example.dev', 'wp_siteurl': 'http://example.dev/wp'}, 'site_hosts': ['example.dev', '192.168.50.5'], 'group': 'www-data', 'admin_email': '[email protected]', 'admin_password': 'admin'}) => {"failed": true, "gid": 20, "group": "dialout", "item": {"admin_email": "[email protected]", "admin_password": "admin", "admin_user": "admin", "env": {"db_name": "example_dev", "db_password": "example_dbpassword", "db_user": "example_dbuser", "wp_env": "development", "wp_home": "http://example.dev", "wp_siteurl": "http://example.dev/wp"}, "group": "www-data", "multisite": {"enabled": false}, "site_hosts": ["example.dev", "192.168.50.5"], "site_install": true, "site_name": "example.dev", "site_title": "Example Site", "system_cron": true, "user": "vagrant"}, "mode": "0755", "owner": "501", "path": "/srv/www/example.dev/current/web", "size": 170, "state": "directory", "uid": 501}
msg: chown failed

example.dev is a straight up clone of the bedrock master. Everything was working before I pulled the master and did the NFS upgrade.

this issue blocks: #37

Fresh installation w/ Bedrock. Scripts and stylesheets sent as text/html

Let me know if this is a Bedrock-only issue and I'll move this over to that repo.

Just installed this along with Bedrock and the installation seemed to go just fine. When I visited the site I got an unstyled site along with the following errors:
developer_tools_-http___docs_channeleaton_dev__p_1_and_new_issue _roots_bedrock-ansible

In addition, I get redirected back to the home page when going to wp-admin and wp-login.php throws a 404.

None of the configurations have been changed.

Use Ansible Galaxy Modules

Thinking about 3rd party integrations we'll eventually want/think about baking in: Digital Ocean Support, AWS, etc etc. Perhaps build them as separate modules and submit them to Ansible Galaxy so they can be installed via ansible-galaxy?

Failed Ansible Provisioning

Hi there,

Thank you for all your hard work on this and roots in general. I really appreciate it and the approach it takes to make WP development DRY.
I cloned the repo to a directory and created an ../example.dev directory and ran 'vagrant up', but it failed at the last step it seems. I have put the output from this process in a gist and it is linked here:

https://gist.github.com/peatfirestudios/7eb80a6451cbb182a72e

Can you please let me know what I did wrong?

Thank you,
Warren

Error while linking: [Errno 71] Protocol error

Initially I received this dependency problem:

==> default: A package failed to install.  Trying to recover:
==> default:  * Stopping MariaDB database server mysqld
==> default:    ...done.
==> default:  * Starting MariaDB database server mysqld
==> default:    ...fail!
==> default: invoke-rc.d: initscript mysql, action "start" failed.
==> default: dpkg: error processing package mariadb-server-10.0 (--configure):
==> default:  subprocess installed post-installation script returned error exit status 1
==> default: dpkg: dependency problems prevent configuration of mariadb-server:
==> default:  mariadb-server depends on mariadb-server-10.0 (= 10.0.11+maria-1~trusty); however:
==> default:   Package mariadb-server-10.0 is not configured yet.
==> default:
==> default: dpkg: error processing package mariadb-server (--configure):
==> default:  dependency problems - leaving unconfigured
==> default: Errors were encountered while processing:
==> default:  mariadb-server-10.0
==> default:  mariadb-server

Solved doing this in the guest:

vagrant@example:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up mariadb-server-10.0 (10.0.11+maria-1~trusty) ...
 * Stopping MariaDB database server mysqld                                                                                                                                                                                            [ OK ]
 * Starting MariaDB database server mysqld                                                                                                                                                                                            [ OK ]
 * Checking for corrupt, not cleanly closed and upgrade needing tables.
Setting up mariadb-server (10.0.11+maria-1~trusty) ...

Now I get an error when running ansible (the "hosts" file is the default renamed).
How can I fix this?

==> default:
==> default: TASK: [wordpress-sites | Create .env file of sites] ***************************
==> default: changed: [192.168.50.5] => (item={'site_install': True, 'admin_user': 'admin', 'site_name': 'example.dev', 'system_cron': True, 'user': 'vagrant', 'run_composer': True, 'multisite': {'enabled': False}, 'group': 'www-data', 'site_title': 'Example Site', 'admin_password': 'admin', 'env': {'wp_env': 'development', 'db_user': 'example_dbuser', 'db_password': 'example_dbpassword', 'wp_siteurl': 'http://example.dev/wp', 'db_name': 'example_dev', 'wp_home': 'http://example.dev'}, 'site_hosts': ['192.168.50.5', 'example.dev'], 'admin_email': '[email protected]'})
==> default:
==> default: TASK: [wordpress-sites | Link .env file] **************************************
==> default: failed: [192.168.50.5] => (item={'site_install': True, 'admin_user': 'admin', 'site_name': 'example.dev', 'system_cron': True, 'user': 'vagrant', 'run_composer': True, 'multisite': {'enabled': False}, 'group': 'www-data', 'site_title': 'Example Site', 'admin_password': 'admin', 'env': {'wp_env': 'development', 'db_user': 'example_dbuser', 'db_password': 'example_dbpassword', 'wp_siteurl': 'http://example.dev/wp', 'db_name': 'example_dev', 'wp_home': 'http://example.dev'}, 'site_hosts': ['192.168.50.5', 'example.dev'], 'admin_email': '[email protected]'}) => {"failed": true, "item": {"admin_email":
==> default: "[email protected]", "admin_password": "admin", "admin_user": "admin", "env": {"db_name": "example_dev", "db_password": "example_dbpassword", "db_user": "example_dbuser", "wp_env": "development", "wp_home": "http://example.dev", "wp_siteurl": "http://example.dev/wp"}, "group": "www-data", "multisite": {"enabled": false}, "run_composer": true, "site_hosts": ["192.168.50.5", "example.dev"], "site_install": true, "site_name": "example.dev", "site_title": "Example Site", "system_cron": true, "user": "vagrant"}, "path": "/srv/www/example.dev/current/.env", "state": "absent"}
==> default: msg: Error while linking: [Errno 71] Protocol error
==> default:
==> default: FATAL: all hosts have already failed -- aborting
==> default:
==> default: PLAY RECAP ********************************************************************
==> default:            to retry, use: --limit @/root/site.retry
==> default:
==> default: 192.168.50.5               : ok=40   changed=15   unreachable=0    failed=1

WP installed? site_statuses question

Going through the playbooks and looking over the wordpress-sites playbook. The Install WP task in tasks/main.yml depends on the site_statuses variable. Here's my question: when WP isn't installed, it returns 1. When WP is installed, it returns 0. Is that because on the command line returning 0 means there were no problems and returning non-zero means an error?

Tag roles

Can I propose a motion to tag our roles to make it easier to run just one at a time? To date I've just been commenting out the different lines, using tags would make it a lot easier to re-run a specific role/set of tasks.

New release/version bump?

The current release will not run on Ansible > 1.6.8 since it does not include my patch. Bump version?

failed SSH connection to box after `vagrant up`

I recently updated the roots/bedrock Vagrant box to 0.3.0, and can't get the box to load up. After running vagrant up and booting, the client fails to connect via SSH. Instead, the connection times out and retries repeatedly:

==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...
    default: Warning: Connection timeout. Retrying...

I'm running Vagrant 1.6.5

Provisioning fails

Running vagrant up fails:

PLAY [Install LEMP Stack with PHP 5.5 and MariaDB MySQL] **********************

GATHERING FACTS ***************************************************************
ok: [default]

TASK: [upgrade | Running apt-get update] **************************************
ok: [default]

TASK: [upgrade | Running apt-get upgrade] *************************************
failed: [default] => {"failed": true, "item": ""}
stdout: Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...
Writing extended state information...
The following packages will be upgraded:
  gettext gettext-base gir1.2-glib-2.0 initramfs-tools initramfs-tools-bin
  iputils-ping iputils-tracepath libasprintf-dev libasprintf0c2
  libfreetype6 libgettextpo-dev libgettextpo0 libgirepository-1.0-1
  libjson-c2 libjson0 libmariadbclient18 libmysqlclient18 libpam-systemd
  libselinux1 libssl-dev libssl-doc libssl1.0.0 libsystemd-daemon0
  libsystemd-login0 libtiff5 libudev1 linux-headers-3.13.0-24
  linux-headers-3.13.0-24-generic linux-image-3.13.0-24-generic
  linux-libc-dev mariadb-client-10.0 mariadb-client-core-10.0
  mariadb-common mariadb-server mariadb-server-10.0
  mariadb-server-core-10.0 mysql-common openssl patch php-pear php5-cli
  php5-common php5-composer php5-curl php5-dev php5-fpm php5-gd php5-imap
  php5-mcrypt php5-mysqlnd php5-readline php5-xmlrpc python3-update-manager
  systemd-services tzdata udev update-manager-core
57 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 49.6 MB of archives. After unpacking 15.4 kB will be freed.
Writing extended state information...
Get: 1 http://mirrors.coreix.net/mariadb/repo/10.0/ubuntu/ trusty/main mariadb-server all 10.0.11+maria-1~trusty [2934 B]
Get: 2 http://ppa.launchpad.net/ondrej/php5/ubuntu/ trusty/main php5-readline amd64 5.5.12+dfsg-2+deb.sury.org~trusty+1 [12.0 kB]
Get: 3 http://mirrors.coreix.net/mariadb/repo/10.0/ubuntu/ trusty/main mysql-common all 10.0.11+maria-1~trusty [8410 B]
Get: 4 http://ppa.launchpad.net/ondrej/php5/ubuntu/ trusty/main php5-cli amd64 5.5.12+dfsg-2+deb.sury.org~trusty+1 [2093 kB]
Get: 5 http://mirrors.coreix.net/mariadb/repo/10.0/ubuntu/ trusty/main mariadb-common all 10.0.11+maria-1~trusty [3216 B]
Get: 6 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libselinux1 amd64 2.2.2-1ubuntu0.1 [58.7 kB]
Get: 7 http://mirrors.coreix.net/mariadb/repo/10.0/ubuntu/ trusty/main libmariadbclient18 amd64 10.0.11+maria-1~trusty [566 kB]
Get: 8 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libssl-doc all 1.0.1f-1ubuntu2.1 [965 kB]
Get: 9 http://mirrors.coreix.net/mariadb/repo/10.0/ubuntu/ trusty/main libmysqlclient18 amd64 10.0.11+maria-1~trusty [2892 B]
Get: 10 http://mirrors.coreix.net/mariadb/repo/10.0/ubuntu/ trusty/main mariadb-client-core-10.0 amd64 10.0.11+maria-1~trusty [766 kB]
Get: 11 http://mirrors.coreix.net/mariadb/repo/10.0/ubuntu/ trusty/main mariadb-client-10.0 amd64 10.0.11+maria-1~trusty [1029 kB]
Get: 12 http://ppa.launchpad.net/ondrej/php5/ubuntu/ trusty/main php5-imap amd64 5.5.12+dfsg-2+deb.sury.org~trusty+1 [30.3 kB]
Get: 13 http://ppa.launchpad.net/ondrej/php5/ubuntu/ trusty/main php5-mcrypt amd64 5.5.12+dfsg-2+deb.sury.org~trusty+1 [14.1 kB]
Get: 14 http://ppa.launchpad.net/ondrej/php5/ubuntu/ trusty/main php5-fpm amd64 5.5.12+dfsg-2+deb.sury.org~trusty+1 [2119 kB]
Get: 15 http://mirrors.coreix.net/mariadb/repo/10.0/ubuntu/ trusty/main mariadb-server-core-10.0 amd64 10.0.11+maria-1~trusty [4367 kB]
Get: 16 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libssl-dev amd64 1.0.1f-1ubuntu2.1 [1070 kB]
Get: 17 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libssl1.0.0 amd64 1.0.1f-1ubuntu2.1 [822 kB]
Get: 18 http://mirrors.coreix.net/mariadb/repo/10.0/ubuntu/ trusty/main mariadb-server-10.0 amd64 10.0.11+maria-1~trusty [5213 kB]
Get: 19 http://archive.ubuntu.com/ubuntu/ trusty-updates/main udev amd64 204-5ubuntu20.2 [734 kB]
Get: 20 http://ppa.launchpad.net/ondrej/php5/ubuntu/ trusty/main php5-xmlrpc amd64 5.5.12+dfsg-2+deb.sury.org~trusty+1 [34.3 kB]
Get: 21 http://ppa.launchpad.net/ondrej/php5/ubuntu/ trusty/main php5-gd amd64 5.5.12+dfsg-2+deb.sury.org~trusty+1 [27.8 kB]
Get: 22 http://ppa.launchpad.net/ondrej/php5/ubuntu/ trusty/main php5-mysqlnd amd64 5.5.12+dfsg-2+deb.sury.org~trusty+1 [135 kB]
Get: 23 http://ppa.launchpad.net/ondrej/php5/ubuntu/ trusty/main php5-curl amd64 5.5.12+dfsg-2+deb.sury.org~trusty+1 [27.3 kB]
Get: 24 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libudev1 amd64 204-5ubuntu20.2 [33.3 kB]
Get: 25 http://ppa.launchpad.net/ondrej/php5/ubuntu/ trusty/main php5-common amd64 5.5.12+dfsg-2+deb.sury.org~trusty+1 [358 kB]
Get: 26 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libasprintf-dev amd64 0.18.3.1-1ubuntu3 [4438 B]
Get: 27 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libasprintf0c2 amd64 0.18.3.1-1ubuntu3 [6712 B]
Get: 28 http://ppa.launchpad.net/ondrej/php5/ubuntu/ trusty/main libjson-c2 amd64 0.11-4+deb.sury.org~trusty+1 [20.8 kB]
Get: 29 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libpam-systemd amd64 204-5ubuntu20.2 [25.5 kB]
Get: 30 http://ppa.launchpad.net/ondrej/php5/ubuntu/ trusty/main php-pear all 5.5.12+dfsg-2+deb.sury.org~trusty+1 [267 kB]
Get: 31 http://archive.ubuntu.com/ubuntu/ trusty-updates/main systemd-services amd64 204-5ubuntu20.2 [197 kB]
Get: 32 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libsystemd-daemon0 amd64 204-5ubuntu20.2 [9748 B]
Get: 33 http://ppa.launchpad.net/duggan/composer/ubuntu/ trusty/main php5-composer amd64 1.0.0-dev-20140505-36~ubuntu14.04.1 [161 kB]
Get: 34 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libsystemd-login0 amd64 204-5ubuntu20.2 [26.8 kB]
Get: 35 http://ppa.launchpad.net/ondrej/php5/ubuntu/ trusty/main php5-dev amd64 5.5.12+dfsg-2+deb.sury.org~trusty+1 [345 kB]
Get: 36 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libfreetype6 amd64 2.5.2-1ubuntu2.1 [305 kB]
Get: 37 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libgettextpo-dev amd64 0.18.3.1-1ubuntu3 [122 kB]
Get: 38 http://ppa.launchpad.net/ondrej/php5/ubuntu/ trusty/main libjson0 amd64 0.11-4+deb.sury.org~trusty+1 [1042 B]
Get: 39 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libgettextpo0 amd64 0.18.3.1-1ubuntu3 [108 kB]
Get: 40 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libtiff5 amd64 4.0.3-7ubuntu0.1 [142 kB]
Get: 41 http://archive.ubuntu.com/ubuntu/ trusty-updates/main initramfs-tools all 0.103ubuntu4.1 [44.3 kB]
Get: 42 http://archive.ubuntu.com/ubuntu/ trusty-updates/main initramfs-tools-bin amd64 0.103ubuntu4.1 [8898 B]
Get: 43 http://archive.ubuntu.com/ubuntu/ trusty-updates/main linux-image-3.13.0-24-generic amd64 3.13.0-24.47 [15.0 MB]
Get: 44 http://archive.ubuntu.com/ubuntu/ trusty-updates/main tzdata all 2014c-0ubuntu0.14.04 [181 kB]
Get: 45 http://archive.ubuntu.com/ubuntu/ trusty-updates/main iputils-ping amd64 3:20121221-4ubuntu1.1 [52.6 kB]
Get: 46 http://archive.ubuntu.com/ubuntu/ trusty-updates/main gettext-base amd64 0.18.3.1-1ubuntu3 [48.8 kB]
Get: 47 http://archive.ubuntu.com/ubuntu/ trusty-updates/main libgirepository-1.0-1 amd64 1.40.0-1ubuntu0.1 [85.5 kB]
Get: 48 http://archive.ubuntu.com/ubuntu/ trusty-updates/main gir1.2-glib-2.0 amd64 1.40.0-1ubuntu0.1 [124 kB]
Get: 49 http://archive.ubuntu.com/ubuntu/ trusty-updates/main iputils-tracepath amd64 3:20121221-4ubuntu1.1 [32.6 kB]
Get: 50 http://archive.ubuntu.com/ubuntu/ trusty-updates/main openssl amd64 1.0.1f-1ubuntu2.1 [489 kB]
Get: 51 http://archive.ubuntu.com/ubuntu/ trusty-updates/main python3-update-manager all 1:0.196.12 [31.5 kB]
Get: 52 http://archive.ubuntu.com/ubuntu/ trusty-updates/main update-manager-core all 1:0.196.12 [5252 B]
Get: 53 http://archive.ubuntu.com/ubuntu/ trusty-updates/main gettext amd64 0.18.3.1-1ubuntu3 [829 kB]
Get: 54 http://archive.ubuntu.com/ubuntu/ trusty-updates/main linux-headers-3.13.0-24 all 3.13.0-24.47 [8865 kB]
Get: 55 http://archive.ubuntu.com/ubuntu/ trusty-updates/main linux-headers-3.13.0-24-generic amd64 3.13.0-24.47 [708 kB]
Get: 56 http://archive.ubuntu.com/ubuntu/ trusty-updates/main linux-libc-dev amd64 3.13.0-24.47 [780 kB]
Get: 57 http://archive.ubuntu.com/ubuntu/ trusty-updates/main patch amd64 2.7.1-4ubuntu1 [84.4 kB]
Fetched 49.6 MB in 1min 9s (709 kB/s)
Preconfiguring packages ...
(Reading database ... 66984 files and directories currently installed.)
Preparing to unpack .../libselinux1_2.2.2-1ubuntu0.1_amd64.deb ...
Unpacking libselinux1:amd64 (2.2.2-1ubuntu0.1) over (2.2.2-1) ...
Setting up libselinux1:amd64 (2.2.2-1ubuntu0.1) ...
Processing triggers for libc-bin (2.19-0ubuntu6) ...
(Reading database ... 66984 files and directories currently installed.)
Preparing to unpack .../libssl-doc_1.0.1f-1ubuntu2.1_all.deb ...
Unpacking libssl-doc (1.0.1f-1ubuntu2.1) over (1.0.1f-1ubuntu2) ...
Preparing to unpack .../libssl-dev_1.0.1f-1ubuntu2.1_amd64.deb ...
Unpacking libssl-dev:amd64 (1.0.1f-1ubuntu2.1) over (1.0.1f-1ubuntu2) ...
Preparing to unpack .../libssl1.0.0_1.0.1f-1ubuntu2.1_amd64.deb ...
Unpacking libssl1.0.0:amd64 (1.0.1f-1ubuntu2.1) over (1.0.1f-1ubuntu2) ...
Preparing to unpack .../udev_204-5ubuntu20.2_amd64.deb ...
Adding 'diversion of /bin/udevadm to /bin/udevadm.upgrade by fake-udev'
Unpacking udev (204-5ubuntu20.2) over (204-5ubuntu20) ...
Preparing to unpack .../libudev1_204-5ubuntu20.2_amd64.deb ...
Unpacking libudev1:amd64 (204-5ubuntu20.2) over (204-5ubuntu20) ...
Preparing to unpack .../libasprintf-dev_0.18.3.1-1ubuntu3_amd64.deb ...
Unpacking libasprintf-dev:amd64 (0.18.3.1-1ubuntu3) over (0.18.3.1-1ubuntu2) ...
Preparing to unpack .../libasprintf0c2_0.18.3.1-1ubuntu3_amd64.deb ...
Unpacking libasprintf0c2:amd64 (0.18.3.1-1ubuntu3) over (0.18.3.1-1ubuntu2) ...
Preparing to unpack .../libpam-systemd_204-5ubuntu20.2_amd64.deb ...
systemd-logind stop/waiting
Unpacking libpam-systemd:amd64 (204-5ubuntu20.2) over (204-5ubuntu20) ...
Preparing to unpack .../systemd-services_204-5ubuntu20.2_amd64.deb ...
Unpacking systemd-services (204-5ubuntu20.2) over (204-5ubuntu20) ...
Preparing to unpack .../libsystemd-daemon0_204-5ubuntu20.2_amd64.deb ...
Unpacking libsystemd-daemon0:amd64 (204-5ubuntu20.2) over (204-5ubuntu20) ...
Preparing to unpack .../libsystemd-login0_204-5ubuntu20.2_amd64.deb ...
Unpacking libsystemd-login0:amd64 (204-5ubuntu20.2) over (204-5ubuntu20) ...
Preparing to unpack .../libfreetype6_2.5.2-1ubuntu2.1_amd64.deb ...
Unpacking libfreetype6:amd64 (2.5.2-1ubuntu2.1) over (2.5.2-1ubuntu2) ...
Preparing to unpack .../libgettextpo-dev_0.18.3.1-1ubuntu3_amd64.deb ...
Unpacking libgettextpo-dev:amd64 (0.18.3.1-1ubuntu3) over (0.18.3.1-1ubuntu2) ...
Preparing to unpack .../libgettextpo0_0.18.3.1-1ubuntu3_amd64.deb ...
Unpacking libgettextpo0:amd64 (0.18.3.1-1ubuntu3) over (0.18.3.1-1ubuntu2) ...
Preparing to unpack .../libtiff5_4.0.3-7ubuntu0.1_amd64.deb ...
Unpacking libtiff5:amd64 (4.0.3-7ubuntu0.1) over (4.0.3-7) ...
Preparing to unpack .../initramfs-tools_0.103ubuntu4.1_all.deb ...
Unpacking initramfs-tools (0.103ubuntu4.1) over (0.103ubuntu4) ...
Preparing to unpack .../initramfs-tools-bin_0.103ubuntu4.1_amd64.deb ...
Unpacking initramfs-tools-bin (0.103ubuntu4.1) over (0.103ubuntu4) ...
Preparing to unpack .../linux-image-3.13.0-24-generic_3.13.0-24.47_amd64.deb ...
Unpacking linux-image-3.13.0-24-generic (3.13.0-24.47) over (3.13.0-24.46) ...
Preparing to unpack .../mariadb-server_10.0.11+maria-1~trusty_all.deb ...
Unpacking mariadb-server (10.0.11+maria-1~trusty) over (10.0.10+maria-1~trusty) ...
Preparing to unpack .../mysql-common_10.0.11+maria-1~trusty_all.deb ...
Unpacking mysql-common (10.0.11+maria-1~trusty) over (5.5.37-0ubuntu0.14.04.1) ...
Preparing to unpack .../mariadb-common_10.0.11+maria-1~trusty_all.deb ...
Unpacking mariadb-common (10.0.11+maria-1~trusty) over (10.0.10+maria-1~trusty) ...
Preparing to unpack .../libmariadbclient18_10.0.11+maria-1~trusty_amd64.deb ...
Unpacking libmariadbclient18 (10.0.11+maria-1~trusty) over (10.0.10+maria-1~trusty) ...
Preparing to unpack .../libmysqlclient18_10.0.11+maria-1~trusty_amd64.deb ...
Unpacking libmysqlclient18 (10.0.11+maria-1~trusty) over (10.0.10+maria-1~trusty) ...
Preparing to unpack .../mariadb-client-core-10.0_10.0.11+maria-1~trusty_amd64.deb ...
Unpacking mariadb-client-core-10.0 (10.0.11+maria-1~trusty) over (10.0.10+maria-1~trusty) ...
Preparing to unpack .../mariadb-client-10.0_10.0.11+maria-1~trusty_amd64.deb ...
Unpacking mariadb-client-10.0 (10.0.11+maria-1~trusty) over (10.0.10+maria-1~trusty) ...
Preparing to unpack .../mariadb-server-core-10.0_10.0.11+maria-1~trusty_amd64.deb ...
Unpacking mariadb-server-core-10.0 (10.0.11+maria-1~trusty) over (10.0.10+maria-1~trusty) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up mysql-common (10.0.11+maria-1~trusty) ...
Installing new version of config file /etc/mysql/my.cnf ...
Setting up mariadb-common (10.0.11+maria-1~trusty) ...
(Reading database ... 66990 files and directories currently installed.)
Preparing to unpack .../mariadb-server-10.0_10.0.11+maria-1~trusty_amd64.deb ...
Unpacking mariadb-server-10.0 (10.0.11+maria-1~trusty) over (10.0.10+maria-1~trusty) ...
Preparing to unpack .../tzdata_2014c-0ubuntu0.14.04_all.deb ...
Unpacking tzdata (2014c-0ubuntu0.14.04) over (2014b-1) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up tzdata (2014c-0ubuntu0.14.04) ...
(Reading database ... 66990 files and directories currently installed.)
Preparing to unpack .../php5-readline_5.5.12+dfsg-2+deb.sury.org~trusty+1_amd64.deb ...
Unpacking php5-readline (5.5.12+dfsg-2+deb.sury.org~trusty+1) over (5.5.11+dfsg-3+deb.sury.org~trusty+1) ...
Preparing to unpack .../php5-cli_5.5.12+dfsg-2+deb.sury.org~trusty+1_amd64.deb ...
Unpacking php5-cli (5.5.12+dfsg-2+deb.sury.org~trusty+1) over (5.5.11+dfsg-3+deb.sury.org~trusty+1) ...
Preparing to unpack .../php5-imap_5.5.12+dfsg-2+deb.sury.org~trusty+1_amd64.deb ...
Unpacking php5-imap (5.5.12+dfsg-2+deb.sury.org~trusty+1) over (5.5.11+dfsg-3+deb.sury.org~trusty+1) ...
Preparing to unpack .../php5-mcrypt_5.5.12+dfsg-2+deb.sury.org~trusty+1_amd64.deb ...
Unpacking php5-mcrypt (5.5.12+dfsg-2+deb.sury.org~trusty+1) over (5.5.11+dfsg-3+deb.sury.org~trusty+1) ...
Preparing to unpack .../php5-fpm_5.5.12+dfsg-2+deb.sury.org~trusty+1_amd64.deb ...
Unpacking php5-fpm (5.5.12+dfsg-2+deb.sury.org~trusty+1) over (5.5.11+dfsg-3+deb.sury.org~trusty+1) ...
Preparing to unpack .../php5-xmlrpc_5.5.12+dfsg-2+deb.sury.org~trusty+1_amd64.deb ...
Unpacking php5-xmlrpc (5.5.12+dfsg-2+deb.sury.org~trusty+1) over (5.5.11+dfsg-3+deb.sury.org~trusty+1) ...
Preparing to unpack .../php5-gd_5.5.12+dfsg-2+deb.sury.org~trusty+1_amd64.deb ...
Unpacking php5-gd (5.5.12+dfsg-2+deb.sury.org~trusty+1) over (5.5.11+dfsg-3+deb.sury.org~trusty+1) ...
Preparing to unpack .../php5-mysqlnd_5.5.12+dfsg-2+deb.sury.org~trusty+1_amd64.deb ...
Unpacking php5-mysqlnd (5.5.12+dfsg-2+deb.sury.org~trusty+1) over (5.5.11+dfsg-3+deb.sury.org~trusty+1) ...
Preparing to unpack .../php5-curl_5.5.12+dfsg-2+deb.sury.org~trusty+1_amd64.deb ...
Unpacking php5-curl (5.5.12+dfsg-2+deb.sury.org~trusty+1) over (5.5.11+dfsg-3+deb.sury.org~trusty+1) ...
Preparing to unpack .../php5-common_5.5.12+dfsg-2+deb.sury.org~trusty+1_amd64.deb ...
Unpacking php5-common (5.5.12+dfsg-2+deb.sury.org~trusty+1) over (5.5.11+dfsg-3+deb.sury.org~trusty+1) ...
Preparing to unpack .../libjson-c2_0.11-4+deb.sury.org~trusty+1_amd64.deb ...
Unpacking libjson-c2:amd64 (0.11-4+deb.sury.org~trusty+1) over (0.11-3ubuntu1) ...
Preparing to unpack .../iputils-ping_3%3a20121221-4ubuntu1.1_amd64.deb ...
Unpacking iputils-ping (3:20121221-4ubuntu1.1) over (3:20121221-4ubuntu1) ...
Preparing to unpack .../gettext-base_0.18.3.1-1ubuntu3_amd64.deb ...
Unpacking gettext-base (0.18.3.1-1ubuntu3) over (0.18.3.1-1ubuntu2) ...
Preparing to unpack .../libgirepository-1.0-1_1.40.0-1ubuntu0.1_amd64.deb ...
Unpacking libgirepository-1.0-1 (1.40.0-1ubuntu0.1) over (1.40.0-1) ...
Preparing to unpack .../gir1.2-glib-2.0_1.40.0-1ubuntu0.1_amd64.deb ...
Unpacking gir1.2-glib-2.0 (1.40.0-1ubuntu0.1) over (1.40.0-1) ...
Preparing to unpack .../iputils-tracepath_3%3a20121221-4ubuntu1.1_amd64.deb ...
Unpacking iputils-tracepath (3:20121221-4ubuntu1.1) over (3:20121221-4ubuntu1) ...
Preparing to unpack .../openssl_1.0.1f-1ubuntu2.1_amd64.deb ...
Unpacking openssl (1.0.1f-1ubuntu2.1) over (1.0.1f-1ubuntu2) ...
Preparing to unpack .../python3-update-manager_1%3a0.196.12_all.deb ...
Unpacking python3-update-manager (1:0.196.12) over (1:0.196.11) ...
Preparing to unpack .../update-manager-core_1%3a0.196.12_all.deb ...
Unpacking update-manager-core (1:0.196.12) over (1:0.196.11) ...
Preparing to unpack .../gettext_0.18.3.1-1ubuntu3_amd64.deb ...
Unpacking gettext (0.18.3.1-1ubuntu3) over (0.18.3.1-1ubuntu2) ...
Preparing to unpack .../linux-headers-3.13.0-24_3.13.0-24.47_all.deb ...
Unpacking linux-headers-3.13.0-24 (3.13.0-24.47) over (3.13.0-24.46) ...
Preparing to unpack .../linux-headers-3.13.0-24-generic_3.13.0-24.47_amd64.deb ...
Unpacking linux-headers-3.13.0-24-generic (3.13.0-24.47) over (3.13.0-24.46) ...
Preparing to unpack .../linux-libc-dev_3.13.0-24.47_amd64.deb ...
Unpacking linux-libc-dev:amd64 (3.13.0-24.47) over (3.13.0-24.46) ...
Preparing to unpack .../patch_2.7.1-4ubuntu1_amd64.deb ...
Unpacking patch (2.7.1-4ubuntu1) over (2.7.1-4) ...
Preparing to unpack .../php-pear_5.5.12+dfsg-2+deb.sury.org~trusty+1_all.deb ...
Unpacking php-pear (5.5.12+dfsg-2+deb.sury.org~trusty+1) over (5.5.11+dfsg-3+deb.sury.org~trusty+1) ...
Preparing to unpack .../php5-composer_1.0.0-dev-20140505-36~ubuntu14.04.1_amd64.deb ...
Unpacking php5-composer (1.0.0-dev-20140505-36~ubuntu14.04.1) over (1.0.0-dev-20140428-35~ubuntu14.04.1) ...
Preparing to unpack .../php5-dev_5.5.12+dfsg-2+deb.sury.org~trusty+1_amd64.deb ...
Unpacking php5-dev (5.5.12+dfsg-2+deb.sury.org~trusty+1) over (5.5.11+dfsg-3+deb.sury.org~trusty+1) ...
Preparing to unpack .../libjson0_0.11-4+deb.sury.org~trusty+1_amd64.deb ...
Unpacking libjson0:amd64 (0.11-4+deb.sury.org~trusty+1) over (0.11-3ubuntu1) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for install-info (5.2.0.dfsg.1-2) ...
Setting up libssl-doc (1.0.1f-1ubuntu2.1) ...
Setting up libssl1.0.0:amd64 (1.0.1f-1ubuntu2.1) ...
Setting up libssl-dev:amd64 (1.0.1f-1ubuntu2.1) ...
Setting up libudev1:amd64 (204-5ubuntu20.2) ...
Setting up udev (204-5ubuntu20.2) ...
udev stop/waiting
udev start/running, process 10709
Removing 'diversion of /bin/udevadm to /bin/udevadm.upgrade by fake-udev'
update-initramfs: deferring update (trigger activated)
Setting up libasprintf0c2:amd64 (0.18.3.1-1ubuntu3) ...
Setting up libasprintf-dev:amd64 (0.18.3.1-1ubuntu3) ...
Setting up libsystemd-daemon0:amd64 (204-5ubuntu20.2) ...
Setting up systemd-services (204-5ubuntu20.2) ...
Installing new version of config file /etc/systemd/logind.conf ...
Setting up libpam-systemd:amd64 (204-5ubuntu20.2) ...
systemd-logind start/running, process 10777
Setting up libsystemd-login0:amd64 (204-5ubuntu20.2) ...
Setting up libfreetype6:amd64 (2.5.2-1ubuntu2.1) ...
Setting up libgettextpo0:amd64 (0.18.3.1-1ubuntu3) ...
Setting up libgettextpo-dev:amd64 (0.18.3.1-1ubuntu3) ...
Setting up libtiff5:amd64 (4.0.3-7ubuntu0.1) ...
Setting up initramfs-tools-bin (0.103ubuntu4.1) ...
Setting up initramfs-tools (0.103ubuntu4.1) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-3.13.0-24-generic (3.13.0-24.47) ...
Setting up php5-common (5.5.12+dfsg-2+deb.sury.org~trusty+1) ...
Setting up php5-cli (5.5.12+dfsg-2+deb.sury.org~trusty+1) ...
Setting up php5-readline (5.5.12+dfsg-2+deb.sury.org~trusty+1) ...
Setting up php5-imap (5.5.12+dfsg-2+deb.sury.org~trusty+1) ...
Setting up php5-mcrypt (5.5.12+dfsg-2+deb.sury.org~trusty+1) ...
Setting up php5-fpm (5.5.12+dfsg-2+deb.sury.org~trusty+1) ...
php5-fpm start/running, process 16550
Setting up php5-xmlrpc (5.5.12+dfsg-2+deb.sury.org~trusty+1) ...
Setting up php5-gd (5.5.12+dfsg-2+deb.sury.org~trusty+1) ...
Setting up php5-mysqlnd (5.5.12+dfsg-2+deb.sury.org~trusty+1) ...
Setting up php5-curl (5.5.12+dfsg-2+deb.sury.org~trusty+1) ...
Setting up libjson-c2:amd64 (0.11-4+deb.sury.org~trusty+1) ...
Setting up iputils-ping (3:20121221-4ubuntu1.1) ...
Setting up gettext-base (0.18.3.1-1ubuntu3) ...
Setting up libgirepository-1.0-1 (1.40.0-1ubuntu0.1) ...
Setting up gir1.2-glib-2.0 (1.40.0-1ubuntu0.1) ...
Setting up iputils-tracepath (3:20121221-4ubuntu1.1) ...
Setting up openssl (1.0.1f-1ubuntu2.1) ...
Setting up python3-update-manager (1:0.196.12) ...
Setting up update-manager-core (1:0.196.12) ...
Setting up gettext (0.18.3.1-1ubuntu3) ...
Setting up linux-headers-3.13.0-24 (3.13.0-24.47) ...
Setting up linux-headers-3.13.0-24-generic (3.13.0-24.47) ...
Setting up linux-libc-dev:amd64 (3.13.0-24.47) ...
Setting up patch (2.7.1-4ubuntu1) ...
Setting up php-pear (5.5.12+dfsg-2+deb.sury.org~trusty+1) ...
Installing new version of config file /etc/pear/pear.conf ...
Setting up php5-composer (1.0.0-dev-20140505-36~ubuntu14.04.1) ...
Setting up php5-dev (5.5.12+dfsg-2+deb.sury.org~trusty+1) ...
Setting up libjson0:amd64 (0.11-4+deb.sury.org~trusty+1) ...
Setting up libmysqlclient18 (10.0.11+maria-1~trusty) ...
Setting up libmariadbclient18 (10.0.11+maria-1~trusty) ...
Setting up mariadb-client-core-10.0 (10.0.11+maria-1~trusty) ...
Setting up mariadb-client-10.0 (10.0.11+maria-1~trusty) ...
Setting up mariadb-server-core-10.0 (10.0.11+maria-1~trusty) ...
Setting up mariadb-server-10.0 (10.0.11+maria-1~trusty) ...
Processing triggers for libc-bin (2.19-0ubuntu6) ...
Processing triggers for initramfs-tools (0.103ubuntu4.1) ...
update-initramfs: Generating /boot/initrd.img-3.13.0-24-generic
Processing triggers for php5-fpm (5.5.12+dfsg-2+deb.sury.org~trusty+1) ...
php5-fpm start/running, process 22235
Setting up mariadb-server-10.0 (10.0.11+maria-1~trusty) ...
Reading package lists...
Building dependency tree...
Reading state information...
Reading extended state information...
Initializing package states...

msg: '/usr/bin/aptitude full-upgrade' failed: perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Extracting templates from packages: 100%
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Done.
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.13.0-24-generic /boot/vmlinuz-3.13.0-24-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.13.0-24-generic /boot/vmlinuz-3.13.0-24-generic
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
 * Stopping MariaDB database server mysqld
   ...done.
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
 * Stopping MariaDB database server mysqld
   ...done.
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory

Current default time zone: 'Etc/UTC'
Local time is now:      Tue May 13 22:39:51 UTC 2014.
Universal Time is now:  Tue May 13 22:39:51 UTC 2014.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Running depmod.
update-initramfs: deferring update (hook will be called later)
Not updating initrd symbolic links since we are being updated/reinstalled
(3.13.0-24.46 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(3.13.0-24.46 was configured last, according to dpkg)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-24-generic /boot/vmlinuz-3.13.0-24-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.13.0-24-generic /boot/vmlinuz-3.13.0-24-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-24-generic /boot/vmlinuz-3.13.0-24-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-24-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-24-generic /boot/vmlinuz-3.13.0-24-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.0-24-generic /boot/vmlinuz-3.13.0-24-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.13.0-24-generic
Found initrd image: /boot/initrd.img-3.13.0-24-generic
done
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
php5_invoke pdo: already enabled for fpm SAPI
php5_invoke pdo: already enabled for cli SAPI
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
php5_invoke opcache: already enabled for fpm SAPI
php5_invoke opcache: already enabled for cli SAPI
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Replacing config file /etc/php5/cli/php.ini with new version
php5_invoke mysql: already enabled for cli SAPI
php5_invoke curl: already enabled for cli SAPI
php5_invoke mysqli: already enabled for cli SAPI
php5_invoke xmlrpc: already enabled for cli SAPI
php5_invoke mcrypt: already enabled for cli SAPI
php5_invoke pdo_mysql: already enabled for cli SAPI
php5_invoke imap: already enabled for cli SAPI
php5_invoke json: already enabled for cli SAPI
php5_invoke gd: already enabled for cli SAPI
php5_invoke opcache: already enabled for cli SAPI
php5_invoke readline: already enabled for cli SAPI
php5_invoke pdo: already enabled for cli SAPI
php5_invoke mysqlnd: already enabled for cli SAPI
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
php5_invoke readline: already enabled for fpm SAPI
php5_invoke readline: already enabled for cli SAPI
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
php5_invoke imap: already enabled for fpm SAPI
php5_invoke imap: already enabled for cli SAPI
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
php5_invoke mcrypt: already enabled for fpm SAPI
php5_invoke mcrypt: already enabled for cli SAPI

Configuration file '/etc/php5/fpm/pool.d/www.conf'
 ==> Deleted (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
 ==> Keeping old config file as default.
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Replacing config file /etc/php5/fpm/php.ini with new version
php5_invoke mysql: already enabled for fpm SAPI
php5_invoke curl: already enabled for fpm SAPI
php5_invoke mysqli: already enabled for fpm SAPI
php5_invoke xmlrpc: already enabled for fpm SAPI
php5_invoke mcrypt: already enabled for fpm SAPI
php5_invoke pdo_mysql: already enabled for fpm SAPI
php5_invoke imap: already enabled for fpm SAPI
php5_invoke json: already enabled for fpm SAPI
php5_invoke gd: already enabled for fpm SAPI
php5_invoke opcache: already enabled for fpm SAPI
php5_invoke readline: already enabled for fpm SAPI
php5_invoke pdo: already enabled for fpm SAPI
php5_invoke mysqlnd: already enabled for fpm SAPI
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
php5_invoke xmlrpc: already enabled for fpm SAPI
php5_invoke xmlrpc: already enabled for cli SAPI
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
php5_invoke gd: already enabled for fpm SAPI
php5_invoke gd: already enabled for cli SAPI
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
php5_invoke mysqlnd: already enabled for fpm SAPI
php5_invoke mysqlnd: already enabled for cli SAPI
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
php5_invoke mysql: already enabled for fpm SAPI
php5_invoke mysql: already enabled for cli SAPI
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
php5_invoke mysqli: already enabled for fpm SAPI
php5_invoke mysqli: already enabled for cli SAPI
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
php5_invoke pdo_mysql: already enabled for fpm SAPI
php5_invoke pdo_mysql: already enabled for cli SAPI
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
php5_invoke curl: already enabled for fpm SAPI
php5_invoke curl: already enabled for cli SAPI
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.13.0-24-generic /boot/vmlinuz-3.13.0-24-generic
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
 * Stopping MariaDB database server mysqld
   ...done.
 * Starting MariaDB database server mysqld
   ...fail!
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mariadb-server-10.0 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mariadb-server:
 mariadb-server depends on mariadb-server-10.0 (= 10.0.11+maria-1~trusty); however:
  Package mariadb-server-10.0 is not configured yet.

dpkg: error processing package mariadb-server (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
 mariadb-server-10.0
 mariadb-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
 * Stopping MariaDB database server mysqld
   ...done.
 * Starting MariaDB database server mysqld
   ...fail!
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing package mariadb-server-10.0 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mariadb-server:
 mariadb-server depends on mariadb-server-10.0 (= 10.0.11+maria-1~trusty); however:
  Package mariadb-server-10.0 is not configured yet.

dpkg: error processing package mariadb-server (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 mariadb-server-10.0
 mariadb-server


FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
           to retry, use: --limit @/Users/ionutzp/site.retry

default                    : ok=2    changed=0    unreachable=0    failed=1

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

HHVM support

Would be nice to optionally support HHVM as it's much faster. http://hhvm.com/

Pretty sure WP 3.9 is 100% compatible although some plugins may have issues.

MULTISITE not working

Hi guys,

I'm having a problem getting multisite to run:

I get the error:
Notice: Constant MULTISITE already defined in /srv/www/content.flyvictor.com/current/web/wp-config.php on line 10

And if I remove that file, it says multisite is not enabled:

And there's no network functionality in the UI.

To try to isolate the issue I've run up the bedrock and bedrock ansible, using the master branches, made the minimal changes (as on the README) and it has the same issue.

Any ideas?

Problems installing Compass (conflicting Ruby versions?)

Hello and thanks again for awesome development stacks!

My situation: I am struggling to install Compass to my virtual machine (although everything else works perfectly and out of the box). After intense debugging, it seems that the problem lies in conflicting Ruby versions according to ouput of gem env on fresh enviroment (that is, provisioned only from Ansible scripts made by you):

RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.23
  - RUBY VERSION: 1.9.3 (2013-11-22 patchlevel 484) [x86_64-linux]
  - INSTALLATION DIRECTORY: /var/lib/gems/1.9.1
  - RUBY EXECUTABLE: /usr/bin/ruby1.9.1
  - EXECUTABLE DIRECTORY: /usr/local/bin
  - RUBYGEMS PLATFORMS:
  - ruby
  - x86_64-linux
  - GEM PATHS:
  - /var/lib/gems/1.9.1
  - /home/vagrant/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
  - :update_sources => true
  - :verbose => true
  - :benchmark => false
  - :backtrace => false
  - :bulk_threshold => 1000
  - REMOTE SOURCES:
  - http://rubygems.org/

See Ruby version (1.9.3) vs Ruby executable (1.9.1) etc.? Compass error: You don't have /root/.gem/ruby/1.9.1/bin in your PATH, gem executables will not run. (...) Gem files will remain installed in /root/.gem/ruby/1.9.1/gems/ffi-1.9.3 for inspection. Results logged to /root/.gem/ruby/1.9.1/gems/ffi-1.9.3/ext/ffi_c/gem_make.out.

And finally, to my question

  1. Is there any existing Ansible setup of Grunt / Bower / Compass installation that is known to work in the Bedrock-Ansible stack?
  2. If not, is it possible to replace roots/bedrock-ansible box with some more common one (like hashicorp/precise64) that has those setups available?

I can provide much more information about my errors, however they are a little hard to narrow down. However if it would help, I will definitely try to.

Thanks!

roots/bedrock 0.3.0 box URL redirect has bad parameter

https://vagrantcloud.com/roots/bedrock/versions

The redirect URL for the latest roots/bedrock box includes dl=0 which causes dropbox to output HTML instead of the file. This causes a first-time vagrant up to fail.

$ curl -sI https://vagrantcloud.com/roots/bedrock/version/2/provider/virtualbox.box | grep Location
Location: https://www.dropbox.com/s/4x8wlvt4hod4sid/bedrock-ansible.box?dl=0

The error:

==> default: Adding box 'roots/bedrock' (v0.3.0) for provider: virtualbox
    default: Downloading: https://vagrantcloud.com/roots/bedrock/version/2/provider/virtualbox.box
The box failed to unpackage properly. Please verify that the box
file you're trying to add is not corrupted and try again. The
output from attempting to unpackage (if any):

bsdtar: Error opening archive: Unrecognized archive format

Solution is to change parameter to dl=1
https://www.dropbox.com/s/4x8wlvt4hod4sid/bedrock-ansible.box?dl=1

Workaround was to manually configure the box URL in the Vagrantfile.

SSH connectivity (on Windows) with vagrant up --provision

I've followed the instructions in OS Notes for WIndows about vagrantfile and windows.sh. Current error indicates:
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Error: Connection timeout. Retrying...

I do not have the vagrant insecure ssh keys stored in id_rsa which #10 mentions may be related. I have tried modifying the /roles/capistrano_setup/defaults/main.yml to no success either.

EDIT: You can delete this issue - Switching to a ubuntu/trusty32 resolved the ssh connectivity issue.

PHP opcache leads to slow reloads

My machine: OS X Yosemite Beta 2, Vagrant 1.6.5 using VirtualBox as a provider.

I'm finding that PHP's opcache setting means it takes about 60 seconds for any change to a PHP file to be "picked up" when developing using synced folders. Changes to any other synced file are picked up instantly, and it's not related to caching in the browser.

Disabling the opcache in /etc/php5/fpm/php.ini (opcache.enable = 0) lead to instant reloads, as expected.

If anyone else is experiencing this, perhaps the opcache could be disabled during development?

PHP configuration

This project is amazing and so nice to use. However, one issue I ran into was with the default PHP upload/POST limit being too small to upload media files of any substantial size. I added a couple of lines to the PHP template to fix it, but it could also be useful to allow this setting in the group_vars.

I added the following to roles/wordpress-sites/templates/php-fpm.conf.j2

php_value[memory_limit] = 96M
php_value[max_execution_time] = 120
php_value[max_input_time] = 300
php_value[php_post_max_size] = 25M
php_value[upload_max_filesize] = 25M

To allow unlimited uploads through Nginx, I added client_max_body_size to roles/nginx/templates/wordpress.conf.j2

location ~ \.php$ {
  try_files $uri =404;
  include fastcgi_params;
  fastcgi_pass unix:/var/run/php5-fpm-$site_name.sock;
  client_max_body_size 0;
}

Some of these values may be unnecessary.

Thanks,
Jason

Provisioner Failing

When I run vagrant up, I'm getting a failure at the provisioner step. Here's the output:

==> default: Running provisioner: ansible...

PLAY [Install LEMP Stack with PHP 5.5 and MariaDB MySQL] ********************** 

GATHERING FACTS *************************************************************** 
fatal: [default] => SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue

TASK: [common | Update Apt] *************************************************** 
FATAL: no hosts matched or all hosts have already failed -- aborting


PLAY RECAP ******************************************************************** 
           to retry, use: --limit @/Users/yossarian/site.retry

default                    : ok=0    changed=0    unreachable=1    failed=0   

Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.

It looks like a problem with the ssh key, but running vagrant ssh gets me in no problem. I'm on OS X.

On storing Passwords

Another option to consider bringing up in the README would be the password lookup.

password generates a random plaintext password and stores it in a file at a given filepath.

If the file exists previously, it will retrieve its contents, behaving just like with_file. Usage of variables like “{{ inventory_hostname }}” in the filepath can be used to set up random passwords per host (what simplifies password management in ‘host_vars’ variables).

add ssh-agent to startup

Hey guys,

My id_rsa has a passphrase, as I am sure most of yours do. Running capistrano from the vagrant box (for db syncing and such) means I need to reconfigure and start my ssh-agent every time I boot or reprovision.

What do you guys think about adding an ssh-agent configuration as a part of the provisioning process?

Error: This does not seem to be a WordPress install

I'm experimenting with bedrock-ansible and I'm getting the following error. Seems it's not properly downloading Wordpress when it detects that it hasn't been installed yet. I'm not sure what the best way to address this is?

TASK: [wordpress-sites | WP installed?] *************************************** 
failed: [default] => (item={'site_install': True, 'admin_user': 'admin', 'site_name': 'gal-aa.dev', 'user': 'vagrant', 'multisite': {'enabled': False}, 'group': 'www-data', 'site_title': 'GaL-AA', 'admin_password': 'admin', 'env': {'wp_env': 'development', 'db_user': 'galaa_dbuser', 'db_password': 'galaa_dbpassword', 'wp_siteurl': 'http://gal-aa.dev/wp', 'db_name': 'galaa_dev', 'wp_home': 'http://gal-aa.dev'}, 'site_hosts': ['192.168.50.5', 'gal-aa.dev'], 'admin_email': '[email protected]'}) => {"changed": true, "cmd": ["wp", "core", "is-installed", "--allow-root"], "delta": "0:00:00.269877", "end": "2014-04-21 10:15:14.034539", "item": {"admin_email": "[email protected]", "admin_password": "admin", "admin_user": "admin", "env": {"db_name": "galaa_dev", "db_password": "galaa_dbpassword", "db_user": "galaa_dbuser", "wp_env": "development", "wp_home": "http://gal-aa.dev", "wp_siteurl": "http://gal-aa.dev/wp"}, "group": "www-data", "multisite": {"enabled": false}, "site_hosts": ["192.168.50.5", "gal-aa.dev"], "site_install": true, "site_name": "gal-aa.dev", "site_title": "GaL-AA", "user": "vagrant"}, "rc": 1, "start": "2014-04-21 10:15:13.764662"}
stderr: Error: This does not seem to be a WordPress install.
Pass --path=`path/to/wordpress` or run `wp core download`.
...ignoring

TASK: [wordpress-sites | Install WP] ****************************************** 
failed: [default] => (item={'item': {'site_install': True, 'admin_user': 'admin', 'site_name': 'gal-aa.dev', 'user': 'vagrant', 'multisite': {'enabled': False}, 'group': 'www-data', 'site_title': 'GaL-AA', 'admin_password': 'admin', 'env': {'wp_env': 'development', 'db_user': 'galaa_dbuser', 'db_password': 'galaa_dbpassword', 'wp_siteurl': 'http://gal-aa.dev/wp', 'db_name': 'galaa_dev', 'wp_home': 'http://gal-aa.dev'}, 'site_hosts': ['192.168.50.5', 'gal-aa.dev'], 'admin_email': '[email protected]'}, u'delta': u'0:00:00.269877', u'cmd': [u'wp', u'core', u'is-installed', u'--allow-root'], u'end': u'2014-04-21 10:15:14.034539', u'stderr': u'Error: This does not seem to be a WordPress install.\nPass --path=`path/to/wordpress` or run `wp core download`.', u'stdout': u'', 'invocation': {'module_name': 'command', 'module_args': u'wp core is-installed --allow-root chdir=/var/www/gal-aa.dev/current/'}, u'changed': True, u'rc': 1, u'start': u'2014-04-21 10:15:13.764662'}) => {"changed": true, "cmd": ["wp", "core", "install", "--allow-root", "--url=http://gal-aa.dev", "--title=GaL-AA", "--admin_user=admin", "--admin_password=admin", "[email protected]"], "delta": "0:00:00.242223", "end": "2014-04-21 10:15:14.824123", "item": {"changed": true, "cmd": ["wp", "core", "is-installed", "--allow-root"], "delta": "0:00:00.269877", "end": "2014-04-21 10:15:14.034539", "invocation": {"module_args": "wp core is-installed --allow-root chdir=/var/www/gal-aa.dev/current/", "module_name": "command"}, "item": {"admin_email": "[email protected]", "admin_password": "admin", "admin_user": "admin", "env": {"db_name": "galaa_dev", "db_password": "galaa_dbpassword", "db_user": "galaa_dbuser", "wp_env": "development", "wp_home": "http://gal-aa.dev", "wp_siteurl": "http://gal-aa.dev/wp"}, "group": "www-data", "multisite": {"enabled": false}, "site_hosts": ["192.168.50.5", "gal-aa.dev"], "site_install": true, "site_name": "gal-aa.dev", "site_title": "GaL-AA", "user": "vagrant"}, "rc": 1, "start": "2014-04-21 10:15:13.764662", "stderr": "Error: This does not seem to be a WordPress install.\nPass --path=`path/to/wordpress` or run `wp core download`.", "stdout": ""}, "rc": 1, "start": "2014-04-21 10:15:14.581900"}
stderr: Error: This does not seem to be a WordPress install.
Pass --path=`path/to/wordpress` or run `wp core download`.

FATAL: all hosts have already failed -- aborting

PLAY RECAP ******************************************************************** 
                     to retry, use: --limit @/Users/Rob/site.retry

default                    : ok=46   changed=3    unreachable=0    failed=1 

Missing php5-memcache?

Curious why php5-memcache isn't being installed now that the memcached role has been added?

Site broken after upgrade

I used bedrock-ansible to provision by server on DigitalOcean, and the other day I upgraded the software on it (via the standard apt-get) and now I just get a white screen when I visit the site. I was able to reproduce this with my vagrant box, but I'm having trouble narrowing down the issue, although I'm thinking the problem is with nginx (there are some new default config files moved into place on upgrade). Has anyone else had this problem and how did they resolve?

run PHP-FPM and friends under a common group

re #30 (comment)

In order for the deploy user to be able to restart PHP-fpm and friends via capistrano the web processes should be run under a common group. Common group could contain deploy, the nginx user, and whoever else needs to be at the party.

Thoughts?

Playbook tests

Hey there,

I have had great success modifying bedrock-ansible to run lean wordpress servers on Digital Ocean and Linode. It made me real happy to see that some commits made it in to help deploy to remote servers out of the box.

It would be great if we targeted a couple of platforms and ran test deploys against them on an ongoing basis. Possibly even writing a bit of documentation to standardize the process. Basically sort of do something like the new Heroku button (https://blog.heroku.com/archives/2014/8/7/heroku-button).

I would be willing to bankroll the tests, running them on my accounts wouldn't be a problem.

Let me know what you think!

Cron job for wordpress, is working?

The cronjob added in wordpress-sites role is really working?

  cron: name="{{ item.site_name }} WordPress cron"

"site_name" is actually the domain name that contains a dot, but dots are not allowed in cron files on debian. For ubuntu seems to be the same:

  filename requirements of run-parts: they must be entirely  made  up  of
  letters,  digits  and  can  only  contain the special signs underscores
  ('_') and hyphens ('-'). Any  file  that  does  not  conform  to  these
  requirements  will not be executed by run-parts.  For example, any file
  containing dots will be ignored. 

from: http://manpages.ubuntu.com/manpages/trusty/en/man8/cron.8.html

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.