Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chef vendor tomcat #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .vagrant/machines/db/virtualbox/action_provision

This file was deleted.

1 change: 0 additions & 1 deletion .vagrant/machines/db/virtualbox/action_set_name

This file was deleted.

1 change: 0 additions & 1 deletion .vagrant/machines/db/virtualbox/id

This file was deleted.

1 change: 0 additions & 1 deletion .vagrant/machines/db/virtualbox/index_uuid

This file was deleted.

27 changes: 0 additions & 27 deletions .vagrant/machines/db/virtualbox/private_key

This file was deleted.

1 change: 0 additions & 1 deletion .vagrant/machines/db/virtualbox/synced_folders

This file was deleted.

2 changes: 1 addition & 1 deletion .vagrant/machines/default/virtualbox/action_provision
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5:62ae6e4c-8a10-4bf2-95f0-b6b61d6c2363
1.5:23025468-c203-4471-aefd-8455a0b8437b
2 changes: 1 addition & 1 deletion .vagrant/machines/default/virtualbox/action_set_name
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1430290894
1431204639
2 changes: 1 addition & 1 deletion .vagrant/machines/default/virtualbox/id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
62ae6e4c-8a10-4bf2-95f0-b6b61d6c2363
23025468-c203-4471-aefd-8455a0b8437b
2 changes: 1 addition & 1 deletion .vagrant/machines/default/virtualbox/index_uuid
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5149007359fc4173a52869d637ed7fe7
0dc80ed9c0b1489aa1ccdf4873ef2927
50 changes: 25 additions & 25 deletions .vagrant/machines/default/virtualbox/private_key
Original file line number Diff line number Diff line change
@@ -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WJjTT42ICUVxVVjMdFubSNtPT/YNuQk8WOC+v9
-----END RSA PRIVATE KEY-----
2 changes: 1 addition & 1 deletion .vagrant/machines/default/virtualbox/synced_folders
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"C:/Users/polaaditya/Documents/project/my-organization","disabled":false},"/var/www":{"guestpath":"/var/www","hostpath":"C:/Users/polaaditya/Documents/project","disabled":false}}}
{"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"C:/Users/polaaditya/Documents/my-organization","disabled":false},"v-csc-1":{"id":"v-csc-1","guestpath":"/tmp/vagrant-chef/a1ce29964ffa095b51ed2276955ed23d/cookbooks","hostpath":"C:/Users/polaaditya/Documents/my-organization/chef/cookbooks","disabled":false}}}
1 change: 0 additions & 1 deletion .vagrant/machines/web/virtualbox/action_provision

This file was deleted.

1 change: 0 additions & 1 deletion .vagrant/machines/web/virtualbox/action_set_name

This file was deleted.

1 change: 0 additions & 1 deletion .vagrant/machines/web/virtualbox/id

This file was deleted.

1 change: 0 additions & 1 deletion .vagrant/machines/web/virtualbox/index_uuid

This file was deleted.

27 changes: 0 additions & 27 deletions .vagrant/machines/web/virtualbox/private_key

This file was deleted.

1 change: 0 additions & 1 deletion .vagrant/machines/web/virtualbox/synced_folders

This file was deleted.

91 changes: 14 additions & 77 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -1,89 +1,26 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.

$script = <<SCRIPT
apt-get -y install mysql
apt-get -y install apache2
apt-get update
SCRIPT

Vagrant.configure(2) do |config|

config.vm.provision "shell", inline: $script
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
# https://docs.vagrantup.com.

# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.

config.vm.box = "hashicorp/precise64"

# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
# config.vm.box_check_update = false
# config.vm.network "forwarded_port", guest: 80, host: 8080

# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessssing "localhost:8080" will access port 80 on the guest machine.
config.vm.network "forwarded_port", guest: 80, host: 8081
# Create a private network, which allows host-only access to the machine
# using a specific IP.
# config.vm.network "private_network", ip: "192.168.33.10"

# config.vm.synced_folder "../data", "/vagrant_data"

# Create a public network, which generally matched to bridged network.
# Bridged networks make the machine appear as another physical device on
# your network.
# config.vm.network "public_network"

# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
config.vm.synced_folder "/Users/polaaditya/Documents/project/", "/var/www"

# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
# Example for VirtualBox:
config.vm.provider "virtualbox" do |vb|
# # Display the VirtualBox GUI when booting the machine
# vb.gui = true
#
config.vm.provider "virtualbox" do |vb|
# Display the VirtualBox GUI when booting the machine
# vb.gui = true

# Customize the amount of memory on the VM:
vb.memory = "1024"
end
#
# View the documentation for the provider you are using for more
# information on available options.

# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
# such as FTP and Heroku are also available. See the documentation at
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
# config.push.define "atlas" do |push|
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
# end

# Enable provisioning with a shell script. Additional provisioners such as
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
# documentation for more information about their specific syntax and use.
# config.vm.provision "shell", inline: <<-SHELL
# sudo apt-get update
# sudo apt-get install -y apache2
# SHELL
config.vm.define "web" do |web|
web.vm.box = "chef/centos-6.5"
# # Customize the amount of memory on the VM:
# vb.memory = "1024"
end

config.vm.define "db" do |db|
db.vm.box = "michaelbrooks/ubuntu-django"
db.vm.network "private_network", ip: "10.255.255.40"
db.vm.hostname = "db.dev.support.geeksquad.com"
end


config.vm.provision "chef_solo" do |chef|
chef.cookbooks_path = "../my-organization/chef/cookbooks"
chef.run_list = [ "recipe[tomcat::default]" ]
end
end
Binary file added chef/chef-sugar.tar
Binary file not shown.
Loading