This repository has been archived by the owner on Feb 22, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Vagrant support and fix bug when registering with only email
- Loading branch information
Matt Wright
committed
Dec 5, 2012
1 parent
fe15319
commit 4c61afb
Showing
13 changed files
with
77 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[submodule "cookbooks/postgresql"] | ||
path = cookbooks/postgresql | ||
url = https://github.com/opscode-cookbooks/postgresql.git | ||
[submodule "cookbooks/openssl"] | ||
path = cookbooks/openssl | ||
url = https://github.com/opscode-cookbooks/openssl.git | ||
[submodule "cookbooks/database"] | ||
path = cookbooks/database | ||
url = https://github.com/opscode-cookbooks/database.git | ||
[submodule "cookbooks/xfs"] | ||
path = cookbooks/xfs | ||
url = https://github.com/opscode-cookbooks/xfs.git | ||
[submodule "cookbooks/build-essential"] | ||
path = cookbooks/build-essential | ||
url = https://github.com/opscode-cookbooks/build-essential.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
Vagrant::Config.run do |config| | ||
config.vm.define :flask_social_example_vm do |config| | ||
config.vm.box = "precise64" | ||
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | ||
config.vm.network :hostonly, "192.168.0.10" | ||
config.vm.provision :chef_solo do |chef| | ||
chef.cookbooks_path = "cookbooks" | ||
chef.add_recipe "flask-social-example" | ||
chef.json.merge!({ | ||
:postgresql => { | ||
:config => { | ||
:listen_addresses => "*" | ||
}, | ||
:password => { | ||
:postgres => "password" | ||
}, | ||
:pg_hba => [ | ||
{:type => 'local', :db => 'all', :user => 'postgres', :addr => nil, :method => 'trust'}, | ||
{:type => 'local', :db => 'all', :user => 'all', :addr => nil, :method => 'trust'}, | ||
{:type => 'host', :db => 'all', :user => 'all', :addr => 'all', :method => 'trust'} | ||
] | ||
} | ||
}) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule build-essential
added at
2e9aad
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name "flask-social-example" | ||
maintainer "Matt Wright" | ||
maintainer_email "matt@nobien.net" | ||
license "Apache 2.0" | ||
description "Installs and configures various software to run flask-social-example" | ||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) | ||
version "0.1.0" | ||
recipe "flask-social-example", "Installs and configures various software to run flask-social-example" | ||
|
||
supports "ubuntu" | ||
depends "database" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
include_recipe "postgresql::server" | ||
include_recipe "database::postgresql" | ||
|
||
postgresql_connection_info = { | ||
:host => 'localhost' , | ||
:port => 5432, | ||
:username => 'postgres', | ||
:password => node['postgresql']['password']['postgres'] | ||
} | ||
|
||
postgresql_database "flask_social_example_development" do | ||
connection postgresql_connection_info | ||
action :create | ||
end |
Submodule postgresql
added at
5d7f69