Coder Social home page Coder Social logo

tower-resource-operator's Introduction

Ansible Tower/AWX Resource Operator


NOTE: This operator is experimental and is not considered supported or stable and ready for use


This purpose of this operator is to allow managing one or more Tower and AWX cluster resources. This also attempts to lay out a general model for how to interface with individual resources whether running within an Openshift cluster or being managed off-cluster.

Existing CRDs and Roles

Currently two CRDs are implemented with backing roles:

  • Job Template CRD and Role will create a Job Template against the referenced Tower cluster
  • AnsibleJob CRD and Role given a Job Template name will run a job on the referenced Tower cluster

Connectivity Secrets

All CRDs within this operator depend on a Secret being defined within the desired namespace and this secret name must be given along with any of the CRs that wish, the Secret itself has a particular k/v format:

apiVersion: v1
kind: Secret
metadata:
  name: toweraccess
  namespace: aproject
  type: Opaque
stringData:
  token: XXXXX
  host: https://towerhost.com

Building the Operator

The current codebase has a fixed image location and should be modified, the examples below should also be modified to publish the images into a specific location. Start with building the operator image and publishing:

$ operator-sdk build matburt/tower-resource-operator:0.1.0
...
$ docker push matburt/tower-resource-operator:0.1.0
...

Building the Job launch job container

The Tower Job launch CRD launches a k8s job in a dependent fashion. The k8s Job actually invokes the Tower Job and tracks it, this container needs to be built and published:

$ docker build -t matburt/operator-job-run:latest -f build/Dockerfile.runner .

tower-resource-operator's People

Contributors

matburt avatar mikeshng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.