https://github.com/dcsg/vagrant-puppet-python-mongo
Vagrant configuration with puppet to create a Virtual Box machine with Ubuntu Server 12.10, Python 2.7 (with easy_install, pymongo and bottle) and MongoDB 2.4.1
https://github.com/dcsg/vagrant-puppet-python-mongo
Last synced: about 1 year ago
JSON representation
Vagrant configuration with puppet to create a Virtual Box machine with Ubuntu Server 12.10, Python 2.7 (with easy_install, pymongo and bottle) and MongoDB 2.4.1
- Host: GitHub
- URL: https://github.com/dcsg/vagrant-puppet-python-mongo
- Owner: dcsg
- Created: 2013-04-08T20:12:38.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2013-04-08T21:52:46.000Z (about 13 years ago)
- Last Synced: 2025-04-01T15:13:37.255Z (about 1 year ago)
- Language: Puppet
- Size: 102 KB
- Stars: 10
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Vagrant and Puppet configuration for Python & MongoDB
This is a sample Vagrant configuration with puppet provisioning to create a Virtual Box machine with Ubuntu Server 12
.10 to use Python and MongoDB.
It provides a sample example how to use it and is explained on `Usage` section.
#### Installation
1. Install [Vagrant 1.1.0](http://downloads.vagrantup.com/tags/v1.1.0)
2. Install [Virtual Box 4.2.10](https://www.virtualbox.org/wiki/Downloads)
3. Clone the repository `git clone https://github.com/danielcsgomes/vagrant-puppet-python-mongo.git`
4. Run `vagrant up` on terminal or command line
5. The step 4 should not output any error
**Note:** Vagrant will forward default MongoDB port on the created box to 50004, so if you want to connect from your local machine you can do it: `mongo localhost:500004 -u vagrant`
#### Puppet Manifest will install:
* Python 2.7 (already installed)
* MongoDB 2.4.1
* Easy_install
* Bottle
* pymongo
* wget
* git
* vim
#### Usage
1. Make sure vagrant is running (`vagrant up` or `vagrant reload`)
2. Connect to the box via ssh `vagrant ssh`, if you are on windows you need to connect via PuTTy
3. Run it: `python /vagrant/src/sample.py`
4. The output should be a list of countries.