Skip to content

Instantly share code, notes, and snippets.

@dimitrieh
Last active December 16, 2015 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dimitrieh/5436689 to your computer and use it in GitHub Desktop.
Save dimitrieh/5436689 to your computer and use it in GitHub Desktop.
Vagrant Configuration File LAMP
# encoding: utf-8
site 'http://community.opscode.com/api/v1'
cookbook "apt"
cookbook "php", {}
cookbook "apache2", {}
cookbook "mysql", {}
cookbook "app", {}
cookbook "build-essential", {}
cookbook "composer", {}
cookbook "cron", {}
cookbook "database", {}
cookbook "ntp", {}
cookbook "openssl", {}
cookbook "sqlite", {}
cookbook "vim", {}
cookbook "xml", {}
TODO: <link type="text/plain" rel="author" href="http://domain/humans.txt" /> and img http://humanstxt.org/#
/* TEAM */
Your title: Dimitrie Hoekstra
Contact: dimitriehoekstra [at] gmail.com
Site: http://dhesign.com
Twitter: @strages33
Location: Breda, the Netherlands
[...]
/* THANKS */
Name: name or url
[...]
/* SITE */
Last update: YYYY/MM/DD
Standards: HTML5, CSS3,..
Language: Dutch / English
Doctype:HTML5
Components: Modernizr, jQuery, etc.
Software: Software used for the development
$script = <<SCRIPT
apt-get update
echo "Ready to go sir!"
echo "Open up with localhost:3000 | 192.168.100.100"
SCRIPT
Vagrant.configure("2") do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.ssh.forward_agent = true
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "cookbooks"
chef.roles_path = "recipes/roles"
chef.add_role = "web"
chef.data_bags_path = "../my-recipes/data_bags"
chef.json = {
"mysql" => {
"server_root_password" => "vagrant",
"server_repl_password" => "vagrant",
"server_debian_password" => "vagrant"
}
}
end
# config.vm.synced_folder "src/", "/srv/website"
config.vm.provision :shell, :inline => $script
config.vm.network :forwarded_port, host: 3000, guest: 80, auto_correct: true
config.vm.network :private_network, ip: "192.168.100.100"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment