Nittany Vagrant package
###What is this This is a Vagrant profile for installing a fully functioning Drupal system that mirrors what people at Penn state use to jump start development of new and existing systems.
###Why use this This allows you to jump start development of a Drupal site using modules that the Penn State Drupal User’s Group recommends. While you won’t need everything included here, you will find that you end up using the same modules on almost all build outs. Nittany’s Vagrant server is a great place to learn both about how Drupal and Linux boxes are setup, but also to experiment and practice system administration in a setup similar to those services provided by the VMHosting group (or any other Virtual hosting cluster).
There are more modules then what’s provided here and we’ll be adding more recipes in the future but the intention of this script is to do the heavy lifting of getting a new site up and do so in a standardized manner.
###How to use this to bring up Nittany Vagrant
- Install VirtualBox (ensure you are on the latest version 4.3+)
- Install Vagrant (you'll need Vagrant 1.7+)
- Install git (recommended) (you may need to authorize installation on Mac OSX)
- Add the below statement to your /etc/hosts (or windows equivalent) so you can access it "over the web" - you may need administrator rights to do this
###Nittany host file addition
sudo vi /etc/hosts hit
copy and paste below
# Nittany Vagrant development address 192.168.18.55 nittany.psudug.dev # Uncomment next line if your site will have non-www prefixed addresses redirected to www prefixed. # 192.168.18.55 www.nittany.psudug.dev
If you can't install git (older versions of OSX prevent this):
- Download this project's zip file and place it in your home directory / move it to the directory just below Downloads
- double click to Unzip
- Open terminal
###Spin up the vagrant instance
git clone https://github.com/psudug/nittany-vagrant.git cd nittany-vagrant vagrant up vagrant ssh
The first time you SSH in it will ask you a series of questions trying to drive at the type of site you are building, building out configuration based on your answers.
Now copy and paste this into your browser: http://nittany.psudug.dev
Log in with
user: admin | password: admin
###SFTP method of management
Vagrant allows you to treat it like it’s a remote server (even though it’s running local to your machine). This allows you to SFTP files to the server using credentials provided in nittany/sftp-config.json. This works OOTB with Sublime Text if you have the SFTP plugin.
###Git method of management Nittany puts everything in version control for you (if you tell it to) but it doesn't actually put this on a git server. To do that, you can issue commands like the following (after selecting bitbucket, github or some other git server):
# local machine vagrant ssh # now logged in cd nittany git remote add origin YOURREPOHERE # make sure we have everything in version control to get up there git push origin master
###Bonus points If you look in the scripts/_nonvagrant directory you’ll find a script called newserver.sh. This allows you to effectively provision the exact same setup onto any server running CentOS 6.x or RHEL 6.x. You can already most likely see why this would be useful (improve nittany-vagrant, get it working everywhere, deploy anywhere on anything using the same development tools you’ve come to use local in this script).