├── .gitattributes ├── .gitignore.default ├── CHANGELOG.md ├── LICENSE ├── README.md ├── Vagrantfile.default ├── ansible.cfg.default ├── ansible ├── inventory │ ├── app_name-local │ └── group_vars.default │ │ ├── app_name-local │ │ ├── all.yml │ │ ├── deploy.yml │ │ ├── ops-features.yml │ │ └── varnish.yml │ │ └── app_name │ │ ├── all.yml │ │ ├── deploy.yml │ │ ├── mysql.yml │ │ ├── ops-features.yml │ │ └── ops-features │ │ ├── memcache.yml │ │ ├── memcache_storage.yml │ │ ├── purge.yml │ │ ├── purge_http_purger.yml │ │ ├── securepages.yml │ │ └── varnish.yml ├── playbooks │ ├── bootstrap-deploy.yml │ ├── bootstrap.yml │ ├── codebase-tarballs │ │ └── README.txt │ ├── config-deploy.yml │ ├── config-no-core.yml │ ├── config.yml │ ├── core.yml │ ├── dbdumps │ │ └── README.txt │ ├── deploy-no-core.yml │ ├── deploy.yml │ ├── files-tarballs │ │ └── README.txt │ ├── files │ │ ├── filedotnanorc │ │ └── ops-features │ │ │ └── corepatches │ │ │ ├── 471970_0.patch │ │ │ └── drupal-https-only-961508-23-32.patch │ └── lookup_plugins │ │ ├── task_src.py │ │ └── template_src.py └── requirements.default.yml ├── bin ├── backup.sh ├── configure.sh ├── generate.sh └── ssh-agent.sh ├── d8-packer.profile ├── default.profile ├── scripts ├── app-aliases.sh ├── drupsible-deploy.sh ├── drupsible-provision.sh └── shortcuts.sh └── vagrant.yml.default /.gitattributes: -------------------------------------------------------------------------------- 1 | # Set the default behavior, in case people don't have core.autocrlf set. 2 | * text=auto 3 | 4 | # Declare files that will always have LF line endings on checkout. 5 | *.sh text eol=lf 6 | -------------------------------------------------------------------------------- /.gitignore.default: -------------------------------------------------------------------------------- 1 | /.gitignore 2 | /.vagrant/ 3 | /ansible.cfg 4 | /vagrant.yml 5 | /Vagrantfile 6 | /ansible/requirements.yml 7 | /ansible/inventory/*-* 8 | /ansible/inventory/group_vars 9 | /ansible/inventory/group_vars/* 10 | /ansible/playbooks/ 11 | /ansible/playbooks/* 12 | /ansible/secret/ 13 | /ansible/secret/* 14 | /*.profile 15 | /*.tmp 16 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | Release notes - Drupsible - Version 1.0.1 2 | 3 | ## Bugs 4 | 5 | * [[DRUPSIBLE-289](https://drupsible.atlassian.net/browse/DRUPSIBLE-289)] - 'drush_contrib_modules_destination' is undefined 6 | * [[DRUPSIBLE-290](https://drupsible.atlassian.net/browse/DRUPSIBLE-290)] - Remove warnings on english translations 7 | * [[DRUPSIBLE-292](https://drupsible.atlassian.net/browse/DRUPSIBLE-292)] - Disable ferm on local when gmail smtp (and postfix) is enabled 8 | * [[DRUPSIBLE-293](https://drupsible.atlassian.net/browse/DRUPSIBLE-293)] - app_memcached_enabled needs to take into account pluggable ops features 9 | 10 | ## Stories 11 | 12 | * [[DRUPSIBLE-288](https://drupsible.atlassian.net/browse/DRUPSIBLE-288)] - Override memory limit in drush 13 | 14 | Release Notes - Drupsible - Version 1.0 15 | 16 | ## Task 17 | 18 | * [[DRUPSIBLE-138](https://drupsible.atlassian.net/browse/DRUPSIBLE-138)] - Move Twig's C extension to its own role 19 | * [[DRUPSIBLE-164](https://drupsible.atlassian.net/browse/DRUPSIBLE-164)] - Prefix some more vars 20 | * [[DRUPSIBLE-174](https://drupsible.atlassian.net/browse/DRUPSIBLE-174)] - Enable memcache_storage also for D8 21 | * [[DRUPSIBLE-175](https://drupsible.atlassian.net/browse/DRUPSIBLE-175)] - Add no_log to tasks/templates with secrets 22 | * [[DRUPSIBLE-178](https://drupsible.atlassian.net/browse/DRUPSIBLE-178)] - Fix warning 23 | * [[DRUPSIBLE-184](https://drupsible.atlassian.net/browse/DRUPSIBLE-184)] - Rename webdomain to app_webdomain 24 | * [[DRUPSIBLE-193](https://drupsible.atlassian.net/browse/DRUPSIBLE-193)] - update settings.php to D8.1 25 | * [[DRUPSIBLE-203](https://drupsible.atlassian.net/browse/DRUPSIBLE-203)] - Upgrade drupsible-vm (normal and large) to Debian Jessie 8.4 and Ansible 2.0.2.0 26 | * [[DRUPSIBLE-204](https://drupsible.atlassian.net/browse/DRUPSIBLE-204)] - Upgrade to latest version of debops.php5 27 | * [[DRUPSIBLE-207](https://drupsible.atlassian.net/browse/DRUPSIBLE-207)] - Remove previous workaround 28 | * [[DRUPSIBLE-218](https://drupsible.atlassian.net/browse/DRUPSIBLE-218)] - Replace admin for user 1, as admin is not always the user 1 name 29 | * [[DRUPSIBLE-221](https://drupsible.atlassian.net/browse/DRUPSIBLE-221)] - Improve messages and don't ask for SSH key if doing tarballs 30 | * [[DRUPSIBLE-222](https://drupsible.atlassian.net/browse/DRUPSIBLE-222)] - Update README for 1.0 release 31 | * [[DRUPSIBLE-225](https://drupsible.atlassian.net/browse/DRUPSIBLE-225)] - Remove MySQL dependencies (secret/ferm/tcpwrappers) 32 | * [[DRUPSIBLE-254](https://drupsible.atlassian.net/browse/DRUPSIBLE-254)] - Decouple Drush role variables 33 | * [[DRUPSIBLE-256](https://drupsible.atlassian.net/browse/DRUPSIBLE-256)] - Upgrade drupsible vm (-large) to Debian Jessie to 8.7.1 and latest vbox guest additions 34 | * [[DRUPSIBLE-259](https://drupsible.atlassian.net/browse/DRUPSIBLE-259)] - Get the Samba share back (reloaded) 35 | * [[DRUPSIBLE-260](https://drupsible.atlassian.net/browse/DRUPSIBLE-260)] - Better structure dependencies with tags 36 | * [[DRUPSIBLE-261](https://drupsible.atlassian.net/browse/DRUPSIBLE-261)] - Provision Drupsible VM 37 | * [[DRUPSIBLE-266](https://drupsible.atlassian.net/browse/DRUPSIBLE-266)] - Optimize mysql 38 | * [[DRUPSIBLE-267](https://drupsible.atlassian.net/browse/DRUPSIBLE-267)] - Make skipping tcpwrappers and ferm roles the default playbook behavior in local 39 | * [[DRUPSIBLE-269](https://drupsible.atlassian.net/browse/DRUPSIBLE-269)] - Support BigPipe 40 | * [[DRUPSIBLE-273](https://drupsible.atlassian.net/browse/DRUPSIBLE-273)] - Upgrade to Ansible Container 0.3.0 41 | * [[DRUPSIBLE-274](https://drupsible.atlassian.net/browse/DRUPSIBLE-274)] - I want smtp settings to be generated automatically from configure.sh 42 | * [[DRUPSIBLE-275](https://drupsible.atlassian.net/browse/DRUPSIBLE-275)] - Upgrade Drupsible to Ansible 2.3 43 | 44 | ## Bug 45 | 46 | * [[DRUPSIBLE-167](https://drupsible.atlassian.net/browse/DRUPSIBLE-167)] - Varnish control key must be stored per host, not per app 47 | * [[DRUPSIBLE-170](https://drupsible.atlassian.net/browse/DRUPSIBLE-170)] - DOMAIN is not regex-replaced correctly after the first time 48 | * [[DRUPSIBLE-183](https://drupsible.atlassian.net/browse/DRUPSIBLE-183)] - Fix firewall issues with the Samba access 49 | * [[DRUPSIBLE-189](https://drupsible.atlassian.net/browse/DRUPSIBLE-189)] - Fix memcache config for D8 50 | * [[DRUPSIBLE-220](https://drupsible.atlassian.net/browse/DRUPSIBLE-220)] - vagrant up fails when box_url not given (which is not the default) 51 | * [[DRUPSIBLE-226](https://drupsible.atlassian.net/browse/DRUPSIBLE-226)] - Fix and improve ssh-agent.ssh 52 | * [[DRUPSIBLE-230](https://drupsible.atlassian.net/browse/DRUPSIBLE-230)] - Fix reverse proxy headers 53 | * [[DRUPSIBLE-231](https://drupsible.atlassian.net/browse/DRUPSIBLE-231)] - tcpwrappers locked me out of the VM 54 | * [[DRUPSIBLE-239](https://drupsible.atlassian.net/browse/DRUPSIBLE-239)] - Fix sed in OSX 55 | * [[DRUPSIBLE-241](https://drupsible.atlassian.net/browse/DRUPSIBLE-241)] - Fatal error due to undefined vars deploy_modules_present_app and deploy_modules_absent_app 56 | * [[DRUPSIBLE-245](https://drupsible.atlassian.net/browse/DRUPSIBLE-245)] - Random IP generation broken 57 | * [[DRUPSIBLE-246](https://drupsible.atlassian.net/browse/DRUPSIBLE-246)] - Fix timezone detection in OSX 58 | * [[DRUPSIBLE-249](https://drupsible.atlassian.net/browse/DRUPSIBLE-249)] - composer install runs out of memory 59 | * [[DRUPSIBLE-250](https://drupsible.atlassian.net/browse/DRUPSIBLE-250)] - Keep up with varnishlog being removed from Debian pkg in 4.1 60 | * [[DRUPSIBLE-251](https://drupsible.atlassian.net/browse/DRUPSIBLE-251)] - varnish_app_name cannot contain hyphens 61 | * [[DRUPSIBLE-264](https://drupsible.atlassian.net/browse/DRUPSIBLE-264)] - Config sync directory 62 | * [[DRUPSIBLE-265](https://drupsible.atlassian.net/browse/DRUPSIBLE-265)] - Error on pki role while provisioning 63 | * [[DRUPSIBLE-283](https://drupsible.atlassian.net/browse/DRUPSIBLE-283)] - Deploy disrupted by securepages 64 | * [[DRUPSIBLE-284](https://drupsible.atlassian.net/browse/DRUPSIBLE-284)] - Postfix fails when /etc/postifx/sasl does not exist 65 | * [[DRUPSIBLE-285](https://drupsible.atlassian.net/browse/DRUPSIBLE-285)] - pyopenssl needs upgrade 66 | * [[DRUPSIBLE-286](https://drupsible.atlassian.net/browse/DRUPSIBLE-286)] - missing square brackets 67 | 68 | ## Story 69 | 70 | * [[DRUPSIBLE-37](https://drupsible.atlassian.net/browse/DRUPSIBLE-37)] - I want Varnish to cache and serve disencrypted HTTPS requests 71 | * [[DRUPSIBLE-53](https://drupsible.atlassian.net/browse/DRUPSIBLE-53)] - Support D8 caching 72 | * [[DRUPSIBLE-139](https://drupsible.atlassian.net/browse/DRUPSIBLE-139)] - Add source/upstream configuration to be entered from the beginning with configure.sh 73 | * [[DRUPSIBLE-141](https://drupsible.atlassian.net/browse/DRUPSIBLE-141)] - Make homepage redirection not be the default in case of i18n sites 74 | * [[DRUPSIBLE-157](https://drupsible.atlassian.net/browse/DRUPSIBLE-157)] - I want to decide whether or not to change the admin password once deployed 75 | * [[DRUPSIBLE-158](https://drupsible.atlassian.net/browse/DRUPSIBLE-158)] - I want to tell deploy_xdebug_enabled (per target environment) instead of having an app_xdebug_targets list 76 | * [[DRUPSIBLE-159](https://drupsible.atlassian.net/browse/DRUPSIBLE-159)] - I want more in-line help when configuring the app for the first time. 77 | * [[DRUPSIBLE-160](https://drupsible.atlassian.net/browse/DRUPSIBLE-160)] - I want to decide whether translations are updated, per environment 78 | * [[DRUPSIBLE-161](https://drupsible.atlassian.net/browse/DRUPSIBLE-161)] - I want to make my D8 website accessible through HTTPS, like I do with my D7 sites 79 | * [[DRUPSIBLE-163](https://drupsible.atlassian.net/browse/DRUPSIBLE-163)] - I want to build my D8 project using composer 80 | * [[DRUPSIBLE-166](https://drupsible.atlassian.net/browse/DRUPSIBLE-166)] - I want an alias for the playbooks so my life is easier 81 | * [[DRUPSIBLE-168](https://drupsible.atlassian.net/browse/DRUPSIBLE-168)] - I need to update Composer's checksum 82 | * [[DRUPSIBLE-169](https://drupsible.atlassian.net/browse/DRUPSIBLE-169)] - Remove vagrant-cachier plugin from Vagrantfile 83 | * [[DRUPSIBLE-171](https://drupsible.atlassian.net/browse/DRUPSIBLE-171)] - I want improvements to the wizard bin/configure.sh 84 | * [[DRUPSIBLE-172](https://drupsible.atlassian.net/browse/DRUPSIBLE-172)] - I want to specify the local hostname 85 | * [[DRUPSIBLE-173](https://drupsible.atlassian.net/browse/DRUPSIBLE-173)] - I want to improve the injection of config into settings.php 86 | * [[DRUPSIBLE-176](https://drupsible.atlassian.net/browse/DRUPSIBLE-176)] - I want to use varnishlog and varnishncsa too 87 | * [[DRUPSIBLE-177](https://drupsible.atlassian.net/browse/DRUPSIBLE-177)] - I want to use Varnish latest version 4.1 (has xhkey for D8 caching and 8.1's big pipe) 88 | * [[DRUPSIBLE-179](https://drupsible.atlassian.net/browse/DRUPSIBLE-179)] - As a new user, I want to easily enable SMTP from the beginning, so that my Drupal app can send out emails 89 | * [[DRUPSIBLE-180](https://drupsible.atlassian.net/browse/DRUPSIBLE-180)] - I want to install the new Drupal 8.1 90 | * [[DRUPSIBLE-181](https://drupsible.atlassian.net/browse/DRUPSIBLE-181)] - I want my git password stored outside main app.profile and YAML config files 91 | * [[DRUPSIBLE-182](https://drupsible.atlassian.net/browse/DRUPSIBLE-182)] - Fine-tune Varnish probe parameters 92 | * [[DRUPSIBLE-185](https://drupsible.atlassian.net/browse/DRUPSIBLE-185)] - I don't want composer version to change, unless I want it to be a specific one 93 | * [[DRUPSIBLE-186](https://drupsible.atlassian.net/browse/DRUPSIBLE-186)] - I want to be asked about the VM's IP (static or dynamic) 94 | * [[DRUPSIBLE-187](https://drupsible.atlassian.net/browse/DRUPSIBLE-187)] - I want to specify guest param in vagrant.yml for all providers (and some guidance) (was: I want to be asked about the VM box (normal or large or custom) 95 | * [[DRUPSIBLE-197](https://drupsible.atlassian.net/browse/DRUPSIBLE-197)] - Inform real client IP in access log 96 | * [[DRUPSIBLE-198](https://drupsible.atlassian.net/browse/DRUPSIBLE-198)] - I want feedback of the defaults when running configure.sh 97 | * [[DRUPSIBLE-199](https://drupsible.atlassian.net/browse/DRUPSIBLE-199)] - Add shallow-clone option to drush make 98 | * [[DRUPSIBLE-208](https://drupsible.atlassian.net/browse/DRUPSIBLE-208)] - Support PHP7 and PHP5 in debops.php 99 | * [[DRUPSIBLE-209](https://drupsible.atlassian.net/browse/DRUPSIBLE-209)] - Support PHP7 and PHP5 in drupsible.apache2 in Xenial 100 | * [[DRUPSIBLE-210](https://drupsible.atlassian.net/browse/DRUPSIBLE-210)] - Support PHP7 and PHP5 in drupsible.deploy in Xenial 101 | * [[DRUPSIBLE-211](https://drupsible.atlassian.net/browse/DRUPSIBLE-211)] - Support PHP7 and PHP5 in drupsible.memcached in Xenial 102 | * [[DRUPSIBLE-212](https://drupsible.atlassian.net/browse/DRUPSIBLE-212)] - Support drupsible.mysql in Xenial 103 | * [[DRUPSIBLE-213](https://drupsible.atlassian.net/browse/DRUPSIBLE-213)] - Support PHP7 and PHP5 in drupsible.newrelic in Xenial 104 | * [[DRUPSIBLE-214](https://drupsible.atlassian.net/browse/DRUPSIBLE-214)] - Support PHP7 and PHP5 in drupsible.project in Xenial 105 | * [[DRUPSIBLE-215](https://drupsible.atlassian.net/browse/DRUPSIBLE-215)] - Support PHP7 and PHP5 in drupsible.twigc in Xenial 106 | * [[DRUPSIBLE-216](https://drupsible.atlassian.net/browse/DRUPSIBLE-216)] - Support PHP7 and PHP5 in drupsible.uploadprogress in Xenial 107 | * [[DRUPSIBLE-217](https://drupsible.atlassian.net/browse/DRUPSIBLE-217)] - Support PHP7 and PHP5 in drupsible.xdebug in Xenial 108 | * [[DRUPSIBLE-219](https://drupsible.atlassian.net/browse/DRUPSIBLE-219)] - I want to have drupal console available in Drupal 8 (as it happens with drush) 109 | * [[DRUPSIBLE-223](https://drupsible.atlassian.net/browse/DRUPSIBLE-223)] - As a first-time user, I want to have /etc/host automatically edited for me 110 | * [[DRUPSIBLE-228](https://drupsible.atlassian.net/browse/DRUPSIBLE-228)] - Upon vagrant up, I want a 3-tier architecture, with one host per tier 111 | * [[DRUPSIBLE-229](https://drupsible.atlassian.net/browse/DRUPSIBLE-229)] - Configure "Logging and errors" to use syslog 112 | * [[DRUPSIBLE-233](https://drupsible.atlassian.net/browse/DRUPSIBLE-233)] - Enable Varnish to be run inside a docker container 113 | * [[DRUPSIBLE-234](https://drupsible.atlassian.net/browse/DRUPSIBLE-234)] - Prevent httpoxy 114 | * [[DRUPSIBLE-235](https://drupsible.atlassian.net/browse/DRUPSIBLE-235)] - Enable Apache2 and the other deploy roles to be run inside a docker container 115 | * [[DRUPSIBLE-236](https://drupsible.atlassian.net/browse/DRUPSIBLE-236)] - Enable MySQL to be run inside a docker container 116 | * [[DRUPSIBLE-238](https://drupsible.atlassian.net/browse/DRUPSIBLE-238)] - Enable memcache_storage default 117 | * [[DRUPSIBLE-240](https://drupsible.atlassian.net/browse/DRUPSIBLE-240)] - Provide a variable for root folder inside the codebase repo 118 | * [[DRUPSIBLE-242](https://drupsible.atlassian.net/browse/DRUPSIBLE-242)] - Add variable to customize drush contrib dir 119 | * [[DRUPSIBLE-244](https://drupsible.atlassian.net/browse/DRUPSIBLE-244)] - Improved management of SSH 120 | * [[DRUPSIBLE-247](https://drupsible.atlassian.net/browse/DRUPSIBLE-247)] - Remove Pageant req 121 | * [[DRUPSIBLE-248](https://drupsible.atlassian.net/browse/DRUPSIBLE-248)] - Replace external samba share by Vagrant's sync'ed folder 122 | * [[DRUPSIBLE-252](https://drupsible.atlassian.net/browse/DRUPSIBLE-252)] - Configurable drupal log rotation 123 | * [[DRUPSIBLE-253](https://drupsible.atlassian.net/browse/DRUPSIBLE-253)] - Allow to opt-out of features requiring fixed IPs in Varnish and Apache 124 | * [[DRUPSIBLE-255](https://drupsible.atlassian.net/browse/DRUPSIBLE-255)] - I want to be able to opt-out of creating a hotfix branch 125 | * [[DRUPSIBLE-268](https://drupsible.atlassian.net/browse/DRUPSIBLE-268)] - Enable deployment to work inside a docker container 126 | * [[DRUPSIBLE-270](https://drupsible.atlassian.net/browse/DRUPSIBLE-270)] - I want to export and import D8 configuration as part of the deployments to different environments. 127 | * [[DRUPSIBLE-271](https://drupsible.atlassian.net/browse/DRUPSIBLE-271)] - As a sysadmin, I want to ensure CHANGELOG.txt isn't readable by the public 128 | * [[DRUPSIBLE-272](https://drupsible.atlassian.net/browse/DRUPSIBLE-272)] - I want latest version of drupal-console installed by default 129 | * [[DRUPSIBLE-276](https://drupsible.atlassian.net/browse/DRUPSIBLE-276)] - As a sysadmin I want to easily configure and deploy any drupal module and its requirements 130 | * [[DRUPSIBLE-282](https://drupsible.atlassian.net/browse/DRUPSIBLE-282)] - As a developer, I want to specify a prefix for my database tables 131 | 132 | Release Notes - Drupsible - Version 0.9.9 133 | 134 | ## Tasks 135 | 136 | * [[DRUPSIBLE-106](https://drupsible.atlassian.net/browse/DRUPSIBLE-106)] - Check compatibility 137 | * [[DRUPSIBLE-112](https://drupsible.atlassian.net/browse/DRUPSIBLE-112)] - Upgrade PKI role to its newest release 138 | * [[DRUPSIBLE-120](https://drupsible.atlassian.net/browse/DRUPSIBLE-120)] - Release memcached role to Ansible Galaxy 139 | * [[DRUPSIBLE-121](https://drupsible.atlassian.net/browse/DRUPSIBLE-121)] - Release composer role to Ansible Galaxy 140 | * [[DRUPSIBLE-122](https://drupsible.atlassian.net/browse/DRUPSIBLE-122)] - Reorganize playbooks and groups of hosts in the inventory. Remove hard deps of Varnish and release it on Ansible Galaxy. 141 | * [[DRUPSIBLE-123](https://drupsible.atlassian.net/browse/DRUPSIBLE-123)] - Release newrelic role to Ansible Galaxy 142 | * [[DRUPSIBLE-124](https://drupsible.atlassian.net/browse/DRUPSIBLE-124)] - Update drush versions for D7 and D8 143 | * [[DRUPSIBLE-133](https://drupsible.atlassian.net/browse/DRUPSIBLE-133)] - Improve drupsible's "enable/disable modules" 144 | * [[DRUPSIBLE-134](https://drupsible.atlassian.net/browse/DRUPSIBLE-134)] - Provide ability to ignore errors of drush make 145 | * [[DRUPSIBLE-136](https://drupsible.atlassian.net/browse/DRUPSIBLE-136)] - Improved handling of Drupal versions 146 | * [[DRUPSIBLE-143](https://drupsible.atlassian.net/browse/DRUPSIBLE-143)] - Normalize passwords location under secret folder 147 | * [[DRUPSIBLE-144](https://drupsible.atlassian.net/browse/DRUPSIBLE-144)] - Skip copy of vagrant.yml and ansible.cfg if exists 148 | * [[DRUPSIBLE-147](https://drupsible.atlassian.net/browse/DRUPSIBLE-147)] - Make app_env values all scalar, to simplify the configuration needed 149 | * [[DRUPSIBLE-154](https://drupsible.atlassian.net/browse/DRUPSIBLE-154)] - Tidy up apache2 role 150 | * [[DRUPSIBLE-155](https://drupsible.atlassian.net/browse/DRUPSIBLE-155)] - Replace sudo by become 151 | 152 | ## Bugs 153 | 154 | * [[DRUPSIBLE-30](https://drupsible.atlassian.net/browse/DRUPSIBLE-30)] - Ansible bug in unarchive module for non-ASCII chars in filenames 155 | * [[DRUPSIBLE-111](https://drupsible.atlassian.net/browse/DRUPSIBLE-111)] - deploy.yml playbook fails on apt dependency of newrelic role (with_items receives an empty var) 156 | * [[DRUPSIBLE-114](https://drupsible.atlassian.net/browse/DRUPSIBLE-114)] - On Ansible 2, debops.pki role fails restart ferm 157 | * [[DRUPSIBLE-115](https://drupsible.atlassian.net/browse/DRUPSIBLE-115)] - Varnish fail to start due to port in use by apache2 158 | * [[DRUPSIBLE-127](https://drupsible.atlassian.net/browse/DRUPSIBLE-127)] - A few minor bugs in D8 159 | * [[DRUPSIBLE-135](https://drupsible.atlassian.net/browse/DRUPSIBLE-135)] - Varnish virtual hosts task do not work well 160 | * [[DRUPSIBLE-145](https://drupsible.atlassian.net/browse/DRUPSIBLE-145)] - Logrotate (daily): duplicate log entry for drupal.log 161 | * [[DRUPSIBLE-146](https://drupsible.atlassian.net/browse/DRUPSIBLE-146)] - Fix db clone 162 | * [[DRUPSIBLE-152](https://drupsible.atlassian.net/browse/DRUPSIBLE-152)] - New Relic sysmond not started after Drupsible playbooks ran 163 | 164 | ## Stories 165 | 166 | * [[DRUPSIBLE-52](https://drupsible.atlassian.net/browse/DRUPSIBLE-52)] - Support drush make in custom profiles 167 | * [[DRUPSIBLE-72](https://drupsible.atlassian.net/browse/DRUPSIBLE-72)] - Install xdebug 168 | * [[DRUPSIBLE-73](https://drupsible.atlassian.net/browse/DRUPSIBLE-73)] - Install uploadprogress 169 | * [[DRUPSIBLE-83](https://drupsible.atlassian.net/browse/DRUPSIBLE-83)] - get_url instead of curl 170 | * [[DRUPSIBLE-102](https://drupsible.atlassian.net/browse/DRUPSIBLE-102)] - Configure full backups per target environment 171 | * [[DRUPSIBLE-103](https://drupsible.atlassian.net/browse/DRUPSIBLE-103)] - Upgrade to users v0.1.5 172 | * [[DRUPSIBLE-105](https://drupsible.atlassian.net/browse/DRUPSIBLE-105)] - Remove workaround now Vagrant 1.8 is out (and enforce the new version) 173 | * [[DRUPSIBLE-107](https://drupsible.atlassian.net/browse/DRUPSIBLE-107)] - Upgrade Drupsible VM to Ansible 2 174 | * [[DRUPSIBLE-109](https://drupsible.atlassian.net/browse/DRUPSIBLE-109)] - Document Samba role 175 | * [[DRUPSIBLE-110](https://drupsible.atlassian.net/browse/DRUPSIBLE-110)] - set/force location for downloading modules with drush dl 176 | * [[DRUPSIBLE-116](https://drupsible.atlassian.net/browse/DRUPSIBLE-116)] - Update apache vhost common definition, as per new .htaccess in D7.42 177 | * [[DRUPSIBLE-117](https://drupsible.atlassian.net/browse/DRUPSIBLE-117)] - Improvements to requirements.default.yml for the new galaxy 178 | * [[DRUPSIBLE-118](https://drupsible.atlassian.net/browse/DRUPSIBLE-118)] - Replace hard role dependencies of apache2 179 | * [[DRUPSIBLE-125](https://drupsible.atlassian.net/browse/DRUPSIBLE-125)] - Switch drush defaults to use Drupal 8 180 | * [[DRUPSIBLE-126](https://drupsible.atlassian.net/browse/DRUPSIBLE-126)] - Switch default Drupal version to Drupal 8 181 | * [[DRUPSIBLE-129](https://drupsible.atlassian.net/browse/DRUPSIBLE-129)] - Setup Twig's C extension 182 | * [[DRUPSIBLE-132](https://drupsible.atlassian.net/browse/DRUPSIBLE-132)] - Remove debops.apt, debops.apt_preferences as they are not needed anymore 183 | * [[DRUPSIBLE-148](https://drupsible.atlassian.net/browse/DRUPSIBLE-148)] - Allow to enable Xdebug for PHP-CLI (default disabled) 184 | * [[DRUPSIBLE-149](https://drupsible.atlassian.net/browse/DRUPSIBLE-149)] - I want to forget about the communication method between PHP and Apache2 (socket or port) 185 | * [[DRUPSIBLE-150](https://drupsible.atlassian.net/browse/DRUPSIBLE-150)] - Add HTTPS enabled? and Varnish enabled? questions to configure.sh 186 | * [[DRUPSIBLE-151](https://drupsible.atlassian.net/browse/DRUPSIBLE-151)] - Improve logic and error handling in bin/ssh-agent.sh 187 | 188 | # Release Notes - Drupsible - Version 0.9.8 189 | 190 | ## Bugs 191 | 192 | * [[DRUPSIBLE-61](https://drupsible.atlassian.net/browse/DRUPSIBLE-61)] - Samba does not work after a reboot. ferm service needs to be flushed. 193 | * [[DRUPSIBLE-100](https://drupsible.atlassian.net/browse/DRUPSIBLE-100)] - Reverse proxy header not properly set 194 | * [[DRUPSIBLE-101](https://drupsible.atlassian.net/browse/DRUPSIBLE-101)] - Skip full backups setup if not in PROD 195 | 196 | ## Stories 197 | 198 | * [[DRUPSIBLE-42](https://drupsible.atlassian.net/browse/DRUPSIBLE-42)] - I want to be able to add custom code to Drupal settings.php 199 | 200 | # Release Notes - Drupsible - Version 0.9.7 201 | 202 | ## Bugs 203 | 204 | * [[DRUPSIBLE-99](https://drupsible.atlassian.net/browse/DRUPSIBLE-99)] - New handling of dependencies in debops locked me out of the VM 205 | 206 | # Release Notes - Drupsible - Version 0.9.6 207 | 208 | ## Stories 209 | 210 | * [[DRUPSIBLE-93](https://drupsible.atlassian.net/browse/DRUPSIBLE-93)] - Ability to specify a Git password as a secret 211 | * [[DRUPSIBLE-95](https://drupsible.atlassian.net/browse/DRUPSIBLE-95)] - Use ControlPersist and pipelining 212 | * [[DRUPSIBLE-96](https://drupsible.atlassian.net/browse/DRUPSIBLE-96)] - Enable pipelining default 213 | * [[DRUPSIBLE-98](https://drupsible.atlassian.net/browse/DRUPSIBLE-98)] - Update apache vhost common definition, as per new .htaccess in D7.40 214 | 215 | # Release Notes - Drupsible - Version 0.9.5 216 | 217 | ## Bugs 218 | 219 | * [[DRUPSIBLE-75](https://drupsible.atlassian.net/browse/DRUPSIBLE-75)] - Avoid New Relic PHP Agent being skipped 220 | 221 | ## Stories 222 | 223 | * [[DRUPSIBLE-52](https://drupsible.atlassian.net/browse/DRUPSIBLE-52)] - Support drush make in custom profiles 224 | * [[DRUPSIBLE-76](https://drupsible.atlassian.net/browse/DRUPSIBLE-76)] - Customize max_execution_time 225 | * [[DRUPSIBLE-88](https://drupsible.atlassian.net/browse/DRUPSIBLE-88)] - Provide a random private IP to avoid conflict with other Drupsible projects in the local environment 226 | * [[DRUPSIBLE-89](https://drupsible.atlassian.net/browse/DRUPSIBLE-89)] - Configure a VM with a larger disk size 227 | * [[DRUPSIBLE-90](https://drupsible.atlassian.net/browse/DRUPSIBLE-90)] - Reduce VM default disk size to 5G 228 | * [[DRUPSIBLE-91](https://drupsible.atlassian.net/browse/DRUPSIBLE-91)] - Update VBox Guest Additions ISO version 229 | 230 | # Release Notes - Drupsible - Version 0.9.4 231 | 232 | ## Bugs 233 | 234 | * [[DRUPSIBLE-81](https://drupsible.atlassian.net/browse/DRUPSIBLE-81)] - Fix PKI installation 235 | * [[DRUPSIBLE-82](https://drupsible.atlassian.net/browse/DRUPSIBLE-82)] - Fix Newrelic PHP Agent configuration 236 | * [[DRUPSIBLE-85](https://drupsible.atlassian.net/browse/DRUPSIBLE-85)] - drush dl site_audit fails because of home dir 237 | * [[DRUPSIBLE-87](https://drupsible.atlassian.net/browse/DRUPSIBLE-87)] - Trying to branch when importing 238 | 239 | ## Stories 240 | 241 | * [[DRUPSIBLE-77](https://drupsible.atlassian.net/browse/DRUPSIBLE-77)] - Ability to disable trusted host pattern (teapot error) in Varnish 242 | * [[DRUPSIBLE-78](https://drupsible.atlassian.net/browse/DRUPSIBLE-78)] - Ability to specify more paths for piping 243 | * [[DRUPSIBLE-79](https://drupsible.atlassian.net/browse/DRUPSIBLE-79)] - Customize frequency and quantity of backups 244 | * [[DRUPSIBLE-84](https://drupsible.atlassian.net/browse/DRUPSIBLE-84)] - Skip base_url and cookie_domain if the webapp spans multiple different domains 245 | * [[DRUPSIBLE-86](https://drupsible.atlassian.net/browse/DRUPSIBLE-86)] - Copy and decompress codebase tarball failed 246 | 247 | # Release Notes - Drupsible - Version 0.9.3 248 | 249 | ## Bugs 250 | 251 | * [[DRUPSIBLE-70](https://drupsible.atlassian.net/browse/DRUPSIBLE-70)] Escape slashes when expanding paths 252 | 253 | ## Stories 254 | 255 | * [[DRUPSIBLE-56](https://drupsible.atlassian.net/browse/DRUPSIBLE-56)] Test on Ubuntu Trusty 256 | * [[DRUPSIBLE-51](https://drupsible.atlassian.net/browse/DRUPSIBLE-51)] Fix backup in OSX 257 | * [[DRUPSIBLE-63](https://drupsible.atlassian.net/browse/DRUPSIBLE-63)] Varnish 4 and systemd in Debian/Ubuntu 258 | * [[DRUPSIBLE-63](https://drupsible.atlassian.net/browse/DRUPSIBLE-63)] Varnish 4 and systemd in Ubuntu Trusty 259 | * [[DRUPSIBLE-69](https://drupsible.atlassian.net/browse/DRUPSIBLE-69)] Varnish does not autostart on systemd 260 | 261 | # Release Notes - Drupsible - Version 0.9.2 262 | 263 | ## Bugs 264 | * [[DRUPSIBLE-46](https://drupsible.atlassian.net/browse/DRUPSIBLE-46)] - shell scripts in bin need x privilege 265 | * [[DRUPSIBLE-47](https://drupsible.atlassian.net/browse/DRUPSIBLE-47)] - SSH agent handling is broken 266 | 267 | ## Stories 268 | * [[DRUPSIBLE-48](https://drupsible.atlassian.net/browse/DRUPSIBLE-48)] - Add support (experimental) for Drupal 8 269 | 270 | # Release Notes - Drupsible - Version 0.9.1 271 | ## Stories 272 | * [[DRUPSIBLE-17](https://drupsible.atlassian.net/browse/DRUPSIBLE-17)] - Add specific versions to requirements.default.yml 273 | * [[DRUPSIBLE-22](https://drupsible.atlassian.net/browse/DRUPSIBLE-22)] - Create a Drupsible Controller box for Virtualbox (based upon Debian Jessie) 274 | * [[DRUPSIBLE-44](https://drupsible.atlassian.net/browse/DRUPSIBLE-44)] - I want to easily install a Drupal profile/distribution 275 | * [[DRUPSIBLE-45](https://drupsible.atlassian.net/browse/DRUPSIBLE-45)] - Backups not being done 276 | 277 | # Release Notes - Drupsible - Version 0.9 278 | ## Stories 279 | * [[DRUPSIBLE-17](https://drupsible.atlassian.net/browse/DRUPSIBLE-17)] - Add specific versions to requirements.default.yml 280 | * [[DRUPSIBLE-23](https://drupsible.atlassian.net/browse/DRUPSIBLE-23)] - I want each deploy to be a new/fresh deploy, but I want to reduce deployment time as much as possible. 281 | * [[DRUPSIBLE-27](https://drupsible.atlassian.net/browse/DRUPSIBLE-27)] - I want my webapp to be able to send email notifications. 282 | * [[DRUPSIBLE-28](https://drupsible.atlassian.net/browse/DRUPSIBLE-28)] - Provide a tarball option for deploying the codebase 283 | * [[DRUPSIBLE-29](https://drupsible.atlassian.net/browse/DRUPSIBLE-29)] - I want to deploy real SSL certificates to the web server. 284 | * [[DRUPSIBLE-31](https://drupsible.atlassian.net/browse/DRUPSIBLE-31)] - I want to configure my Drupal webapp to serve HTTPS 285 | * [[DRUPSIBLE-32](https://drupsible.atlassian.net/browse/DRUPSIBLE-32)] - Fine-tune SSL settings of Apache 286 | * [[DRUPSIBLE-33](https://drupsible.atlassian.net/browse/DRUPSIBLE-33)] - Fix access to Samba share 287 | * [[DRUPSIBLE-34](https://drupsible.atlassian.net/browse/DRUPSIBLE-34)] - I want my webapp to be served faster (using Varnish as a front-end) 288 | * [[DRUPSIBLE-35](https://drupsible.atlassian.net/browse/DRUPSIBLE-35)] - I want to use my own Jinja2 template for the VCL. 289 | * [[DRUPSIBLE-36](https://drupsible.atlassian.net/browse/DRUPSIBLE-36)] - I want to specify an error page. 290 | * [[DRUPSIBLE-38](https://drupsible.atlassian.net/browse/DRUPSIBLE-38)] - I want better mgmt of my configs 291 | * [[DRUPSIBLE-40](https://drupsible.atlassian.net/browse/DRUPSIBLE-40)] - I want to run vagrant up instead of bin/up.sh 292 | * [[DRUPSIBLE-41](https://drupsible.atlassian.net/browse/DRUPSIBLE-41)] - I want users browsers to internally cache all the static content of my webapp 293 | 294 | # Release Notes - Drupsible - Version 0.8.5 295 | ## Story changelog ## 296 | * [DRUPSIBLE-4](https://drupsible.atlassian.net/browse/DRUPSIBLE-4) - I want to run drupsible immediately on new remote servers 297 | * [DRUPSIBLE-5](https://drupsible.atlassian.net/browse/DRUPSIBLE-5) - I want a solid sshd configuration of the remote servers 298 | * [DRUPSIBLE-6](https://drupsible.atlassian.net/browse/DRUPSIBLE-6) - Create a new config playbook, cutting tasks from the deploy playbook 299 | * [DRUPSIBLE-12](https://drupsible.atlassian.net/browse/DRUPSIBLE-12) - I want my configs to survive code updates from drupsible-project 300 | * [DRUPSIBLE-13](https://drupsible.atlassian.net/browse/DRUPSIBLE-13) - Improve ssh-agent handling in Vagrantfile 301 | * [DRUPSIBLE-24](https://drupsible.atlassian.net/browse/DRUPSIBLE-24) - I want to install a fresh Drupal 7 using any given install profile 302 | * [DRUPSIBLE-26](https://drupsible.atlassian.net/browse/DRUPSIBLE-26) - I want my website accessible through HTTPS in my local. 303 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | {one line to give the program's name and a brief idea of what it does.} 635 | Copyright (C) {year} {name of author} 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | {project} Copyright (C) {year} {fullname} 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | 676 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # drupsible-project 2 | 3 | Drupsible is a DevOps tool for Drupal continuous delivery, based on Ansible. By using Drupsible, your team will be able to provision, import, integrate, deploy and maintain Drupal websites across complex infrastructures using a simple set of YAML configuration files. 4 | 5 | Drupsible project is the starting point of Drupsible, and it is the only thing you need to download/clone, as every other component will be handled by Drupsible automatically. 6 | 7 | # Requirements 8 | 9 | ## Local 10 | * Any Windows, Linux or MacOS workstation 11 | * 1G of free RAM, 6G of free disk space (or alternatively, 30G for the 'mbarcia/drupsible-large' VirtualBox box) 12 | * A Virtual Machine provider 13 | * [Virtualbox](https://www.virtualbox.org/wiki/Downloads), or 14 | * VMWare Fusion or VMWare Workstation, or 15 | * Parallels Desktop 10+ for Mac 16 | * [Vagrant](http://www.vagrantup.com/downloads) 1.8.1+ 17 | * requires commercial plug-in for VMWare 18 | * [Git Bash](https://git-scm.com/download/win) (only if you are on Windows) 19 | * Make sure VT-x (or AMD-V) virtualization is enabled on the host machine 20 | * [I'm on a Linux host](http://www.cyberciti.biz/faq/linux-xen-vmware-kvm-intel-vt-amd-v-support/) 21 | * [I'm on a Windows host](http://amiduos.com/support/knowledge-base/article/how-can-i-get-to-know-my-processor-supports-virtualization-technology) 22 | * [I'm on a Mac host](http://kb.parallels.com/5653) 23 | 24 | This setting must be enabled for 64-bit OS guests like the Drupsible VM. 25 | * If you want to import an ongoing development: 26 | * Have your Drupal website codebase. If using a tarball/archive, make sure the archive you provide produces index.php at the top-most level when decompressed (a.k.a. 'tarbomb') and does not include sites/default/files. 27 | * If using a Git repository, have a "deployment key" setup and present in your local workstation. 28 | * Have a separate files tarball/archive of sites/default/files. Make sure the archive you provide produces a files folder when decompressed. 29 | * Have a DB dump of your Drupal website. Make sure the SQL statements do NOT start with a CREATE DATABASE. 30 | * If your project is a distibution (using drush make and/or composer), you can also use Drupsible to manage it. 31 | * If you want to try a Drupal distribution, type its name during bin/configure.sh when asked. 32 | 33 | ## Remote servers 34 | All remote target servers must be Debian (jessie) or Ubuntu (trusty/xenial) stock boxes. 35 | In the future, Drupsible may run on other *nix platforms. 36 | 37 | # Basic usage 38 | 39 | ## Local 40 | 1. If you are on Windows, run Git Bash 41 | 1. Git-clone mbarcia/drupsible-project and put it in a folder named after your project, like _~/drupsible/my-project_ 42 | 43 | ``` 44 | cd ~/drupsible 45 | git clone https://github.com/mbarcia/drupsible-project.git myproject 46 | cd myproject 47 | ``` 48 | 1. Run the configuration wizard 49 | 50 | ``` 51 | source ./bin/configure.sh 52 | ``` 53 | 1. Drupsible will start an interactive session, asking for the handful of values that really matter (app name, domain name, etc.). 54 | 1. Drupsible will 55 | 1. create your app's drupsible profile in a file called myproject.profile 56 | 2. setup SSH keys and SSH forwarding as needed 57 | 2. customize your vagrant.yml for development (which you can edit further for advanced usage) 58 | 3. create an Ansible inventory file for your local environment (which you can edit further for advanced usage) 59 | 3. generate all the needed Ansible configuration for you 60 | 1. Next, run ```vagrant up``` 61 | 1. Grab a cup of green tea, well deserved! 62 | 1. For one time only, it will download the drupsible box (~400M). 63 | 1. If your user is not admin, Vagrant should ask for your OS admin password 64 | 1. When you see it's done, you will see a message like this: 65 | 66 | ``` 67 | ==> local: local.doma.in : ok=493 changed=190 unreachable=0 failed=0 68 | ==> local: Drupsible box has been provisioned and configured, YAY! 69 | ==> local: ======================================================= 70 | ``` 71 | 1. Your Drupal app has been deployed! Point your browser to your website: http://local.doma.in. Voilà. 72 | 2. If your browser is not able to resolve local.doma.in, follow the instructions after the YAY! message and edit /etc/hosts if needed. 73 | 74 | ## Windows host support 75 | 76 | There are a number of additional requirements depending on the version of Windows you're running 77 | 78 | - [Git Bash](https://git-scm.com/download/win) 79 | - Command prompt must be "Run as administrator" for Vagrant to automatically maintain the hosts file. 80 | - If you're on a Professional/Enterprise version of Windows 8.1 or 10, make sure Hyper-V is disabled. 81 | - .NET Framework 4 or higher (for Windows 7) and Windows Management Framework 3.0 (PowerShell 3) for versions of Windows under 8.1. PowerShell 3 is installed after installing Windows Management Framework 3.0 and rebooting. 82 | - Make sure [long file names are supported](http://stackoverflow.com/questions/22575662/filename-too-long-in-git-for-windows) (by doing `git config --system core.longpaths true`) and [tune MAX_PATH on Windows 10](https://msdn.microsoft.com/en-us/library/aa365247.aspx#maxpath) 83 | - If you are using a custom [VAGRANT_HOME](http://docs.vagrantup.com/v2/other/environmental-variables.html), ensure that the directory does not have a space in it. To properly set this env variable permanently, run the following command within an administration command prompt. 84 | 85 | ``` 86 | setx VAGRANT_HOME "c:\vagrant\home\path" /M 87 | ``` 88 | 89 | ## No multisite but multiple apps 90 | Drupal is able to accomodate multiple applications in the same VM, that you may deploy to a single server in PROD as well. Just run 91 | 92 | ``` 93 | . ./bin/configure.sh myotherproject 94 | ``` 95 | answering to the questionnaire. 96 | As a final step, simply run 97 | 98 | ``` 99 | vagrant provision 100 | ``` 101 | *Drupsible does not (on purpose) support the Drupal multisite approach, avoiding future pains and handling multiple Drupal websites in a more flexible way.* 102 | 103 | ### Comments and observations ### 104 | * Your default credentials at http://local.doma.in/user/login are admin/drups1ble. You can override it later, per environment. 105 | * If anything changes, ie. your Git credentials, run bin/configure.sh again but this time 106 | * You will be asked if you want to start over 107 | * Say no, and you will be automatically presented with the edition of `myproject.profile` 108 | * Edit your new value, save, and run `bin/generate.sh` 109 | * Run `vagrant provision` (instead of `vagrant up`) 110 | * If you have chosen Dynamic IP for your VM, potentially all of the workstations in your LAN will be able to access your website docroot. Although this is considered a feature (and not a security hole!), please use with caution. 111 | * If you use Static IP for your VMs, Drupsible will manage /etc/hosts for you (also on Windows), so you can access http(s)://local.doma.in immediately from your browser. 112 | * If you want to customize more, please read section "Advanced usage" below. 113 | * In your local environment, and on a per-app basis, Drupsible sets up these very handy shell aliases: 114 | * myproject-config 115 | * myproject-deploy 116 | * myproject-config-deploy 117 | You can even use these with tags or more extra-vars as if you were using `ansible-playbook`. 118 | Type `alias` at the command prompt for more info. 119 | 120 | ## Other target environments 121 | Once your Drupal website is working on your local, you can proceed to deploy to the upper environments. 122 | 123 | 1. Write your Ansible inventory for the target environment. This inventory _must_ have 3 groups: 124 | 125 | ``` 126 | myproject 127 | └── myproject-prod 128 | ├── deploy 129 | │   ├── web-server1 130 | │   ├── web-server2 131 | │   └── web-server3 132 | ├── mysql 133 | │   └── db-server 134 | └── varnish 135 | └── server1 136 | ``` 137 | Check out the [local inventory](https://github.com/mbarcia/drupsible-project/blob/master/ansible/inventory/app_name-local) provided for details. 138 | 1. Choose an Ansible controller server. A good starting point is to use the VM itself as a controller, since it has already provisioned and configured your local. However, it is wise to consider having a separate "production" Ansible controller. 139 | 1. In your controller, make sure you have your public key in ~/.ssh/id_rsa.pub. This key will authorize your Drupsible SSH connections to all the hosts. 140 | 141 | ### Example 142 | Say you are deploying your app to the live/prod environment, using the VM as the Ansible controller. Simply run the bootstrap-deploy playbook. 143 | 144 | ``` 145 | $ vagrant ssh 146 | ... 147 | vagrant@local:~$ ansible-playbook -i ansible/inventory/-prod ansible/playbooks/bootstrap-deploy.yml --extra-vars "app_name= app_target=prod" 148 | ``` 149 | Once you've run that, subsequent deployments will be simpler, taking this form: 150 | 151 | ``` 152 | $ vagrant ssh 153 | ... 154 | vagrant@local:~$ ansible-playbook -i ansible/inventory/-prod ansible/playbooks/deploy.yml --extra-vars "app_name= app_target=prod" 155 | ``` 156 | If you just want to re-configure, say a parameter in Varnish, you would just run the config playbook: 157 | 158 | ``` 159 | vagrant@local:~$ ansible-playbook -i ansible/inventory/-prod ansible/playbooks/config.yml --extra-vars "app_name= app_target=prod" --tags varnish 160 | ``` 161 | This will reconfigure Varnish, without triggering a new deployment of you Drupal webapp. 162 | 163 | ### Restarting the local VM ### 164 | Whenever your local VM may go down (ie. after your workstation has been restarted), you need to `$ vagrant up` in your myproject directory. 165 | 166 | # Developing on local 167 | 168 | ## Work your Drupal code 169 | * On Windows Explorer, you will notice a new "LOCAL" server in your network when the Vagrant VM is up. 170 | * On OSX Finder, Go->Connect to Server... and type `smb://Guest:@local.doma.in` in Server Address. 171 | A list with shared folders will display: mount (at least) the app share. 172 | 173 | The app share is the important one, but you still have access to the home folder in case you want to make changes there. 174 | 175 | Open `app` and you will see a list of folders, something like this: 176 | 177 | ``` 178 | logs 179 | public_html 180 | public\_html.20160114_1138 181 | public_html.bak 182 | public\_html.20160113_1452 183 | ``` 184 | 185 | `public\_html` and `public\_html.bak` are symbolic links to the matching `public\_html._