Skip to content

snapp-cab/ansible-role-nats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NATS Ansible Role

GitHub Actions Workflow Status

NATS.io is a simple, secure, and high-performance open source messaging system for cloud-native applications, IoT messaging, and microservices architectures. This Ansible role installs it and then provide its configuration.

Installation

# requirments.yaml
- src: [email protected]:snapp-cab/ansible-role-nats.git
  scm: git
  version: main
  name: nats

Role Variables

nats_version: "2.1.6"
nats_host_group: "core"

nats_gateway_host_groups: []

nats_exporter_enabled: "true"
nats_prometheus_exporter_version: "0.6.2"

Please note that this Ansible provides a cluster installation of NATS, so you must group your hosts into the cluster and nats_host_group specifies the cluster.

Example Playbook

- hosts: some_servers
  vars:
    nats_version: "2.1.6"
    nats_host_group: "some_servers"
    nats_exporter_enabled: "true"
    nats_prometheus_exporter_version: "0.6.2"
  roles:
    - nats