GithubHelp home page GithubHelp logo

osodevops / ansible-role-confluent-connectors Goto Github PK

View Code? Open in Web Editor NEW
0.0 10.0 0.0 26 KB

An automated way of displaying, configuring and deleting connectors

Home Page: https://oso.sh/kafka-services/

License: Apache License 2.0

Makefile 100.00%
kafka-connect confluent kafka-connectors kafka

ansible-role-confluent-connectors's Introduction

Ansible Role Confluent Connectors

README Header

Ansible role to install / delete Confluent Connectors from json source files.


Usage

Requirements

Ensure that the validated json payload files ready and copied into the correct environment

Adding new replicator jobs

Add the new json payload files to location ansible-role-confluent-connectors/files/<env_name>/

<env_name> can be

  • dev
  • prod

Removing existing replicatos jobs

Remove the respective JSON payload file for the job to be deleted from location ansible-role-confluent-connectors/files/<env_name>/

1. Choose an enviroment

Scope the inital enviroment where you want to submit/remove the replicator jobs. For the example below we consider the dev enviroment

2. Run ansible playbook for adding/deleting the connectors.

Create a playbook which uses the ansible-role-confluent-connectors

Examples

  • myenv should be passed an extra variable to ansible-playbook
  • hostlist should be passed an extra variable to ansible-playbook

HOW TO RUN:

CONFLUENT DEV CONNECT: ansible-playbook -i confluent_connect_inventory -kK -e hostlist="dev" -e myenv="dev" confluent_connectors.yml

CONFLUENT PROD CONNECT:

ansible-playbook -i confluent_connect_inventory  -kK -e hostlist="prod" -e myenv="prod" confluent_connectors.yml

where localinventory is a custom inventory with connect nodes.

- hosts: "{{ hostlist }}"
  become: yes
  gather_facts: yes 
  run_once: yes
  vars:
    env_name: "{{ myenv }}"
  roles:
    - sionsmith.confluent_connectors

Run below command which takes care of adding/removing the replicators based on available json payload files in ansible-role-confluent-connectors/files/dev/ location for dev

ansible-playbook -i localinventory -kK -e hostlist="dev" -e myenv="dev" example.yml

This will take care of connecting to one of the available connect node and manages the replicators.

Please note that above steps manages the jobs which have been defined in location ansible-role-confluent-connectors/files/<env_name>/

Where localinventory file will look like below.

[dev]
connect0.dev.local
connect1.dev.local

[prod]
connect0.prod
connect1.prod

Need some help

File a GitHub issue, send us an email or tweet us.

The legals

Copyright © 2017-2021 OSO | See LICENCE for full details.

OSO who we are

Who we are

We at OSO help teams to adopt emerging technologies and solutions to boost their competitiveness, operational excellence and introduce meaningful innovations that drive real business growth. Our developer-first culture, combined with our cross-industry experience and battle-tested delivery methods allow us to implement the most impactful solutions for your business.

Looking for support applying emerging technologies in your business? We’d love to hear from you, get in touch by email

Start adopting new technologies by checking out our other projects, follow us on twitter, join our team of leaders and challengers, or contact us to find the right technology to support your business.Beacon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.