- need to have berkshelf installed (update README?) gem install berkshelf # got warning about minitar binary conflict, but it let me override existing vagrant plugin install vagrant-berkshelf
- pull the attributes back into Vagrantfile
- remove unnecessary attributes override from dna.json (eg. fga)
- installing chef-11 failed:
Error installing chef: Failed to build gem native extension. sh: 1: make: not found
- fix: apt-get install -y build-essential
- we install chef-11 ourselves as workaround to hashicorp/vagrant#1372
- instead, consider using different base box: http://cloud-images.ubuntu.com/vagrant/precise/current/
vagrant ssh -- 'cd /var/shared/sites/cooked.drupal/site'
fails due to perms- it's actually owned
www-data:drupal-dev
, butvagrant
is not indrupal-dev
(BUG!?)- Should be
group DRUPAL_TRUSTEES ; append true ; members ['vagrant'] end
- Instead, consider
default['deploy_drupal']['dev_group'] = 'sudo'
- vagrant is in sudo on precise64; see http://askubuntu.com/questions/219083/default-groups-for-user-in-ubuntu-12-10
deploy_drupal/files/default/test/default_test.rb
currently hardcodes "drupal-dev"
- Should be
- it's actually owned
- consider inlining the drush cookbook, to simplify our Berksfile/Cheffile
- should '/usr/local/bin/drupal-perm.sh' really be owned by www-data? instead, root
- figure out how to move DB credentials to settings-priv.php settings-priv.php exists (how to gittify otherwise)?
git clone https://github.com/amirkdv/vagrant_drupal.git
cd vagrant_drupal
# install berkshelf
gem install berkshelf --no-rdoc --no-ri
vagrant plugin install vagrant-berkshelf
vim Vagrantfile # add `apt-get install -y build-essential`
vagrant up
curl localhost:8080 # have Drupal, port is 2201 for me due to conflicts with other VMs
- need curl/git/vim
- precise64-customized (if so, check that permissions work with new setup)
- settings-priv.php
apt-get install -y sass compass
- setting up database backups
drush sql-dump --gzip --result-file
config.vm.synced_folder "drush-backups", "/home/vagrant/drush-backups/"
git-ifying the repo - currently has to happen manually
echo -e "settings-priv.php sites/default/files" >> .gitignore
git init
git add .
git commit -m "Initial commit."
git remote add origin $REPO_URL
git push -u origin master