Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
704dc309
Commit
704dc309
authored
Apr 20, 2013
by
jarv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
2e93b7c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
25 deletions
+19
-25
README.md
+19
-25
No files found.
README.md
View file @
704dc309
...
...
@@ -87,25 +87,18 @@ edxapp_custom.yml <-- [ example custom environment playbook ]
pip install -r ansible-requirements.txt
```
### Launching example cloudformation stack
### Launching example cloudformation stack
- Working example
Change the following in playbooks/cloudformation.yaml to suit your environment:
```
args:
template_parameters:
KeyName: deployment
InstanceType: m1.small
NameTag: edx-ec2
GroupTag: edx-group
```
And run:
#### Provision the stack
```
cd playbooks
ansible-playbook
cloudformation.yaml -i inventory.ini
ansible-playbook
-vvv cloudformation.yaml -i inventory.ini -e 'key=<key name> name=<stack name> group=<group name>'
```
* _key_: SSH key name in AWS that is configured for the region
* _name_: Name of the stack, must be a name that is not already in use otherwise the existing stack will update
* _group_: Group name, example: `edxapp_stage`. The group name should correspond to one of the yml files in the `playbooks/`
While this is running you see the cloudformation events in the AWS console as the stack is brought up.
...
...
@@ -113,21 +106,22 @@ Loads the playbooks/cloudformation.yaml template which creates a single small EB
See files/examples for adding other components to the stack.
### Test EC2 tag discovery
This should return a list of tags, assumes you have a
`~/.boto`
file:
`python playbooks/ec2.py`
###
Running the test playboo
k
###
Configure the stac
k
Create a user
* Creates admin and env users
* Creates base directories
* Creates the lms json configuration files
```
```
cd playbooks
ansible-playbook test.yaml -i /path/to/ec2.py --private-key=/path/to/deployment.pem
```
ansible-playbook -v --user=ubuntu edxapp_stage.yml -i ./ec2.py --private-key=/path/to/aws/key.pem
```
*Note: this assumes the group used for the edx stack was "edxapp_stage"*
### CloudFormation TODO for mongo backed LMS stack
1.
Add ElasticCache and RDS configuration to the template
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment