An ansible role to install a Tsuru API server.
Only tested on Ubuntu 14.04.
api_port- Port upon which you wish to run the API serverhealing_active_monitoring_interval- Number of seconds between calls to<server>/_pingin each one of the docker nodes, for more information check herehealing_heal_containers_timeout- Number of seconds a container should be unresponsive before triggering the recreation of the container, for more information check heretsuru_api_internal_lb- The hostname of the loadbalancer you wish to run tsuru behind.mongodb_host- MongoDB hostnamemongodb_port- MongoDB server portnumbergandalf_host_external- External hostname of the Gandalf servergandalf_port- The port number upon which you wish to run Gandalfgandalf_host_internal- The internal hostname of the Gandalf server.tsuru_router_type- Type of router.tsuru_router_config- Hash of router config options. Must always includedomain.redis_host- The redis hostname.redis_port- The redis port.docker_registry_host- The Docker registry hostname.docker_registry_port- The Docker registry port.tsuru_server_version- The version of the tsuru server package to be installedtsuru_client_version- The version of the tsuru client package to be installedtsuru_admin_version- The version of the tsuru admin package to be installedtsuru_package_latest- Install the latest version of all packages, note this is mutually exclusive with options,tsuru_server_version,tsuru_client_versionandtsuru_admin_versiontsuru_reporepo argument for Ansible'sapt_repositorymodule, defaults toppa:tsuru/ppa
- None
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: tsuru-api
roles:
- role: tsuru_api
See LICENSE file.