Commit 49ac3bb7 by Vik Paruchuri

Start working on ml api config

parent b487b983
[ec2] [ec2]
regions=all regions=all
destination_variable=public_dns_name destination_variable=public_dns_name
vpc_destination_variable=ip_address vpc_destination_variable=private_ip_address
cache_path=/tmp cache_path=/tmp
cache_max_age=300 cache_max_age=300
...@@ -378,7 +378,6 @@ class Ec2Inventory(object): ...@@ -378,7 +378,6 @@ class Ec2Inventory(object):
def push(self, my_dict, key, element): def push(self, my_dict, key, element):
''' Pushed an element onto an array that may not have been defined in ''' Pushed an element onto an array that may not have been defined in
the dict ''' the dict '''
if key in my_dict: if key in my_dict:
my_dict[key].append(element); my_dict[key].append(element);
else: else:
......
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuBVxqB7lmP7A03jdQDsB
FzSzHKPsAPHRzEZjfECR71P9gitm6ZsyYReoUwhSPDoYtkXFTlckG3Zc+4CVAuT7
fecT/+JDcKmRrOZ+jXPn/6r0QboCBiBdEbe5BkA7i8X9dj9aW7/OM5VTR6+1k9kF
IB+FVaNf9W+UbSncm5v0u9WRp+MBXaxZ/d2CfZT6Dv/NGVB9lp+HNMvDxeq60wrc
aOgMDmTfl5s/NK30YiWOyeTD7tA+56oNOxvbZyYx4jDZLOE3N0xWK3wCNyG/LQ91
6wG0TteF6NlV8lYfraTF6PNgFNOuD4u4q4NWgXZ5YFLnBo2mwueuSHiGQSou6z/S
FwIDAQAB
-----END PUBLIC KEY-----
\ No newline at end of file
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDLsSijLucpXK1PCvDucbPc6LTbvfUOQE6QJNFruGUgfYXsqyRNuLpIXtj54Btvm5bNc/lt+aCirJbYPmI1HjrUnPSxt3xsFT1+CzCdMQCVZLXHtb8dAo38Y8tSLEvB6G75Ty0GJySF2YR6OPvZSQwvsRPuLmBsvzENNxIm7kTxfETfPDkH/3h2YPgPgznRhGAWEG7Xl1lE8yH9Tnr0jhpJ1HoPgReWuZHLbIPpCrkR3xWYfESNyMjNmYrOJHICi+yF1fr8c7GTqulqMq2uxkofGE8c9TqLGOvLkPfFlkkz7OGGI+q6Qfy3BntlF7TOkj1HvMPyh8YoqnHxAiUCokWH vik.paruchuri@gmail.com
\ No newline at end of file
- hosts: tag_Group_mlapi_prod
vars_files:
- ["{{ secure_file_dir }}/mlapi_prod_vars.yml"]
- ["{{ secure_file_dir }}/users.yml"]
- ["{{ secure_file_dir }}/mlapi_prod_users.yml"]
roles:
- mlapi
- hosts:
- tag_Group_mlapi_sandbox
vars_files:
- ["{{ secure_file_dir }}/mlapi_sandbox_vars.yml"]
- ["{{ secure_file_dir }}/users.yml"]
- ["{{ secure_file_dir }}/mlapi_sandbox_users.yml"]
roles:
- mlapi
- hosts: tag_Group_mlapi_stage
vars_files:
- ["{{ secure_file_dir }}/mlapi_stage_vars.yml"]
- ["{{ secure_file_dir }}/users.yml"]
- ["{{ secure_file_dir }}/mlapi_stage_users.yml"]
roles:
- mlapi
...@@ -32,3 +32,6 @@ ...@@ -32,3 +32,6 @@
sudo: True sudo: True
- name: git checkout mitx repo into $app_base_dir - name: git checkout mitx repo into $app_base_dir
git: dest=$app_base_dir/mitx repo=git@github.com:MITx/mitx.git git: dest=$app_base_dir/mitx repo=git@github.com:MITx/mitx.git
- name: Update apt cache
sudo: True
apt: update_cache=yes
---
- name: create mlapi application config
template: src=env.json.j2 dest=$app_base_dir/env.json
sudo: True
- name: create mlapi auth file
template: src=auth.json.j2 dest=$app_base_dir/auth.json
sudo: True
# Check out mitx repo to $app_base_dir
- name: set permissions on $app_base_dir sgid for edx
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
sudo: True
- name: install git and its recommends
apt: pkg=git state=installed install_recommends=yes
sudo: True
- name: git checkout ml-service-api repo into $app_base_dir
git: dest=$app_base_dir/ml-service-api repo=git@github.com:edx/ml-service-api.git
- name: git checkout ml-service-api repo into $app_base_dir
git: dest=$app_base_dir/machine-learning repo=git@github.com:edx/machine-learning.git
{{ auth_config | to_nice_json }}
\ No newline at end of file
{{ env_config | to_nice_json }}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment