-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
38 additions
and
3 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,19 @@ | ||
# | ||
# Cookbook Name:: tryit-django | ||
# Recipe:: Amazon AWS | ||
# | ||
# Cyberfonica Team | ||
# | ||
|
||
include_recipe 'aws' | ||
|
||
# Get the AWS login data from the databag | ||
aws_data = data_bag_item("aws", "main") | ||
|
||
aws_elastic_lb "eip_load_balancer_production" do | ||
only_if { node['roles'].include?("tryit-ec2") } | ||
aws_access_key aws['aws_access_key_id'] | ||
aws_secret_access_key aws['aws_secret_access_key'] | ||
name "TryIT" | ||
action :register | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
# | ||
# Local settings to Django | ||
# ========================= | ||
# | ||
# Append gunicorn to the appended apps | ||
# Cyberfonica Team | ||
# | ||
# Node: <% node['fqdn'] %> | ||
# | ||
|
||
from settings import INSTALLED_APPS | ||
|
||
INSTALLED_APPS += ('gunicorn',) |
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,5 @@ | ||
{ | ||
"id": "main", | ||
"aws_access_key_id": "ACCESS_KEY", | ||
"aws_secret_access_key": "SECRET_KEY" | ||
} |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
name "tryit-ec2" | ||
description "Gunicorn servers to run TryIT Blog (in AWS)" | ||
run_list( | ||
"recipe[tryit-django]" | ||
"recipe[tryit-django]", | ||
"recipe[tryit-django:aws]" | ||
) |