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
OpenEdx
configuration
Commits
08e1e21e
Commit
08e1e21e
authored
May 01, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vpc changes
parent
8653a892
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
8 deletions
+20
-8
playbooks/bastion.yml
+5
-0
playbooks/ec2.ini
+1
-1
playbooks/roles/bastion/tasks/main.yml
+11
-7
playbooks/roles/common/tasks/main.yml
+3
-0
No files found.
playbooks/bastion.yml
View file @
08e1e21e
-
hosts
:
tag_group_mlapi-bastion
-
hosts
:
tag_group_mlapi-bastion
vars_files
:
-
[
"
{{
secure_file_dir
}}/users.yml"
,
"
vars/secure_default/users.yml"
]
-
[
"
{{
secure_file_dir
}}/bastion_users.yml"
]
roles
:
roles
:
-
common
-
bastion
-
bastion
\ No newline at end of file
playbooks/ec2.ini
View file @
08e1e21e
[ec2]
[ec2]
regions
=
all
regions
=
all
destination_variable
=
public_dns_name
destination_variable
=
public_dns_name
vpc_destination_variable
=
private_
ip_address
vpc_destination_variable
=
ip_address
cache_path
=
/tmp
cache_path
=
/tmp
cache_max_age
=
300
cache_max_age
=
300
playbooks/roles/bastion/tasks/main.yml
View file @
08e1e21e
...
@@ -7,14 +7,18 @@
...
@@ -7,14 +7,18 @@
file
:
path=$app_base_dir owner=root group=edx mode=2775 state=directory
file
:
path=$app_base_dir owner=root group=edx mode=2775 state=directory
file
:
path=$app_base_dir owner=ubuntu group=edx mode=2775 state=directory
file
:
path=$app_base_dir owner=ubuntu group=edx mode=2775 state=directory
sudo
:
True
sudo
:
True
-
name
:
Update apt cache
sudo
:
True
apt
:
update_cache=yes
-
name
:
install git and its recommends
-
name
:
install git and its recommends
apt
:
pkg=git state=installed install_recommends=yes
apt
:
pkg=git state=installed install_recommends=yes
force=yes
sudo
:
True
sudo
:
True
-
name
:
install python and its recommends
-
name
:
install python and its recommends
apt
:
pkg=python state=installed install_recommends=yes
apt
:
pkg=python state=installed install_recommends=yes force=yes
sudo
:
True
-
name
:
install python pip and its recommends
apt
:
pkg=python-pip state=installed install_recommends=yes force=yes
sudo
:
True
sudo
:
True
-
name
:
git checkout configuration repo into $app_base_dir
-
name
:
git checkout configuration repo into $app_base_dir
git
:
dest=$app_base_dir/configuration repo=git@github.com:edx/configuration.git
git
:
dest=$app_base_dir/configuration repo=git@github.com:edx/configuration.git version=vik/ml-api
\ No newline at end of file
-
name
:
install requirements in python using pip
pip
:
requirements=$app_base_dir/configuration/ansible-requirements.txt
-
name
:
uploads any needed secret config files
file
:
src=../../../../../edx-secret dest=/path/to/symlink owner=ubuntu group=edx state=file
\ No newline at end of file
playbooks/roles/common/tasks/main.yml
View file @
08e1e21e
...
@@ -6,6 +6,9 @@
...
@@ -6,6 +6,9 @@
-
name
:
Create log directory
-
name
:
Create log directory
sudo
:
True
sudo
:
True
file
:
path=/mnt/logs state=directory
file
:
path=/mnt/logs state=directory
-
name
:
Fix EC2 packages in VPC
sudo
:
True
command
:
sed -i -e 's/us-west-2.ec2/us/' /etc/apt/sources.list
-
name
:
Update apt cache
-
name
:
Update apt cache
sudo
:
True
sudo
:
True
apt
:
update_cache=yes
apt
:
update_cache=yes
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