Skip to content
This repository has been archived by the owner on Sep 10, 2020. It is now read-only.

This role will deploy all Amun components to a given OpenShift Project.

License

Notifications You must be signed in to change notification settings

thoth-station/ansible-role-amun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Thoth: Amun

This role will deploy all Amun components to a given OpenShift Project.

Role Variables

This role requires a few variables:

AMUN_INFRA_NAMESPACE: "<namespace containing the templates>"
AMUN_API_NAMESPACE: "<namespace hosting the amun api>"
AMUN_INSPECTION_NAMESPACE: "<namespace for running the inspection jobs>"
AMUN_API_APP_SECRET_KEY: "<Amun API key>"
PROMETHEUS_PUSHGATEWAY_HOST: "<Prometheus host>"
PROMETHEUS_PUSHGATEWAY_PORT: "<Pormetheus port>"
SENTRY_DSN: "<Sentry DSN>"

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters):

- hosts: localhost
  connection: local
  gather_facts: False

  # additional variables
  vars:
    # Defaults to the SA specified in amunInspectionNamespace-template
    SERVICE_ACCOUNT_NAME: "inspector"
    # Image registry specific to the cluster (by default for OpenShift)
    # for minishift use <host>:5000, e.g. 172.30.1.1:5000
    IMAGE_REGISTRY: docker-registry.default.svc:5000

  roles:
    - role: thoth-station.anum
      AMUN_INFRA_NAMESPACE: "thoth-test-core"
      AMUN_API_NAMESPACE: "thoth-test-core"
      AMUN_INSPECTION_NAMESPACE: "thoth-test-core"
      AMUN_API_APP_SECRET_KEY: "{{ lookup('env','AMUN_API_APP_SECRET_KEY') }}"
      PROMETHEUS_PUSHGATEWAY_HOST: "{{ lookup('env','PROMETHEUS_PUSHGATEWAY_HOST') }}"
      PROMETHEUS_PUSHGATEWAY_PORT: "{{ lookup('env','PROMETHEUS_PUSHGATEWAY_PORT') }}"
      SENTRY_DSN: "{{ lookup('env','SENTRY_DSN') }}"
```yaml

License
-------

GPLv3

Author Information
------------------

The Thoth Station Team.