Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
support for Vagrant
Browse files Browse the repository at this point in the history
  • Loading branch information
obfuscurity committed Mar 2, 2014
1 parent 11f36c6 commit f161178
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vagrant
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,51 @@ The resulting Graphite server __listens only on https port 443__ and has been co

## Dependencies

* An Ubuntu 13.10 VM or server
* Vagrant, an Ubuntu 13.10 VM or a non-production server
* Some mechanism for downloading Synthesize

## Installation

### Manual

```
$ cd synthesize
$ ./install
```

### Vagrant

Synthesize configures the following host ports to forward to the private vagrant box:

```
config.vm.network :forwarded_port, guest: 443, host: 8443
config.vm.network :forwarded_port, guest: 8125, host: 8125
config.vm.network :forwarded_port, guest: 2003, host: 22003
config.vm.network :forwarded_port, guest: 2004, host: 22004
```

```
$ cd synthesize
$ vagrant plugin install vagrant-vbguest
$ vagrant up
```

## Removal

### Manual

```
$ cd synthesize
$ ./uninstall
```

### Vagrant

```
$ cd synthesize
$ vagrant destroy
```

## License

Synthesize is distributed under the MIT license.
Expand Down
15 changes: 15 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "synthesize"
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/saucy/current/saucy-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.network :forwarded_port, guest: 443, host: 8443
config.vm.network :forwarded_port, guest: 8125, host: 8125
config.vm.network :forwarded_port, guest: 2003, host: 22003
config.vm.network :forwarded_port, guest: 2004, host: 22004
config.vm.provision "shell", inline: "cd /vagrant; sudo ./install"
end

0 comments on commit f161178

Please sign in to comment.