-
Notifications
You must be signed in to change notification settings - Fork 7
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
1 parent
8969a36
commit 5ea82b8
Showing
5 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
Submodule django-basic-apps
deleted from
35f372
Submodule url-shortener
deleted from
8447a4
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,31 @@ | ||
class oppian { | ||
|
||
package { "mysql": } | ||
package { "mysql-devel": | ||
require => Package["mysql"], | ||
} | ||
|
||
class { "webapp::python": owner => "root", | ||
group => "wheel", | ||
src_root => "/deploy", | ||
nginx_workers => 2, | ||
monit_admin => "matt@oppian.com", | ||
monit_interval => 30, | ||
require => Package["mysql-devel"], | ||
} | ||
|
||
webapp::python::instance { "oppianproj": | ||
domain => "oppian.com", | ||
django => true, | ||
requirements => true, | ||
pythonpath => ["lib/django", "apps", "apps/oppianapp/utils", "lib/django-storages"], | ||
} | ||
|
||
$debug_django = "False" | ||
|
||
file { "/deploy/oppianproj/settings_local.py": | ||
ensure => file, | ||
content => template('oppian/settings.py.erb'), | ||
} | ||
|
||
} |
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,23 @@ | ||
|
||
DEBUG = <%= debug_django %> | ||
TEMPLATE_DEBUG = DEBUG | ||
|
||
DATABASE_ENGINE = 'mysql' | ||
DATABASE_NAME = '<%= cfn_database %>' | ||
DATABASE_USER = '<%= cfn_user %>' | ||
DATABASE_PASSWORD = '<%= cfn_password %>' | ||
DATABASE_HOST = '<%= cfn_host %>' | ||
DATABASE_PORT = '' | ||
|
||
SITE_DOMAIN = "oppian.com" | ||
|
||
# the twitter email account of the site | ||
TWITTER_EMAIL = "twitter@oppian.com" | ||
TWITTER_USER = "oppian" | ||
# the password for the account referenced by the twitter email address above | ||
TWITTER_PASSWORD = "deteenee52" # oppian | ||
# the name of the agent making the requests | ||
TWITTER_AGENT_STR = "oppian.com" | ||
|
||
# s3 storage | ||
AWS_STORAGE_BUCKET_NAME = 'oppian-prod-files' |