Commit a4dcc6e0 by Brian Beggs

Merge pull request #2844 from edx/bbeggs/go-agent-docker-role

Adding go-agent docker server role
parents a66591b1 2e47edd8
# ansible-playbook -i 'admin.edx.org,' ./hotg.yml -e@/path/to/ansible/vars/edx.yml -e@/path/to/secure/ansible/vars/edx_admin.yml
- name: Install go-agent-docker-server
hosts: all
sudo: True
gather_facts: True
roles:
- aws
- go-agent-docker-server
##In order to use this role you must use a specific set of AMIs
[This role is for use with the AWS ECS AMIs listed here](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_container_instance.html)
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
#
# Defaults for role go-agent-docker-server
#
# key for go-agents to autoregister with the go-server
GO_SERVER_AUTO_REGISTER_KEY: "dev-only-override-this-key"
GO_AGENT_DOCKER_RESOURCES: "tubular,python"
GO_AGENT_DOCKER_ENVIRONMENT: "sandbox"
GO_AGENT_DOCKER_CONF_HOME: "/tmp/go-agent/conf"
\ No newline at end of file
---
#
# edX Configuration
#
# github: https://github.com/edx/configuration
# wiki: https://github.com/edx/configuration/wiki
# code style: https://github.com/edx/configuration/wiki/Ansible-Coding-Conventions
# license: https://github.com/edx/configuration/blob/master/LICENSE.TXT
#
#
#
# Tasks for role go-agent-docker-server
#
# Overview:
#
# Deploys go-server using aptitude!
#
# Dependencies:
# - openjdk7
#
# Example play:
#
# - name: Configure instance(s)
# hosts: go-server
# sudo: True
# vars_files:
# - "{{ secure_dir }}/admin/sandbox.yml"
# gather_facts: True
# roles:
# - common
#
- name: install go-server configuration
template:
src: edx/app/go-agent-docker-server/autoregister.properties.j2
dest: "{{ GO_AGENT_DOCKER_CONF_HOME }}/autoregister.properties"
mode: 0600
owner: root
group: root
agent.auto.register.key={{ GO_SERVER_AUTO_REGISTER_KEY }}
agent.auto.register.resources={{ GO_AGENT_DOCKER_RESOURCES }}
agent.auto.register.environments={{ GO_AGENT_DOCKER_ENVIRONMENT }}
\ 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