Coder Social home page Coder Social logo

yifatmakias / foreman_ansible Goto Github PK

View Code? Open in Web Editor NEW

This project forked from theforeman/foreman_ansible

0.0 1.0 0.0 902 KB

:arrow_forward: Ansible integration in Foreman

License: GNU General Public License v3.0

Ruby 75.26% Makefile 0.72% Python 0.69% HTML 11.93% Shell 0.48% CSS 0.04% JavaScript 10.57% SCSS 0.31%

foreman_ansible's Introduction

Code Climate Gem Version GPL License

Foreman Ansible ▶️

Reporting and facts import from Ansible to Foreman.

Features

  • Import facts
  • Monitor playbook and Ansible runs runtime
  • Sends Ansible reports to Foreman that contain what changed on your system after an ansible run.
  • Stores a list of roles applicable to your hosts and 'plays' them
  • Looking for an Ansible dynamic inventory for Foreman? Use foreman_ansible_inventory

Documentation (installation and configuration)

Check out the official manual at theforeman.org

Registering a new host in Foreman

sign up gif

Host with failed and successful reports

reports

Assigning roles to a host and 'playing' them

role list role play multiple role play

Compatibility

Foreman Plugin
>= 1.15 1.4
>= 1.16 2.0
>= 1.18 2.2
>= 1.21 2.3

Devs

The callback sends a POST request to /api/v2/hosts/facts with the format you can see in the API docs.

Facts must contain the output of ansible -m setup $HOSTNAME, plus a '_type' and '_timestamp' keys. You can see an example on test/fixtures/sample_facts.json in this repository.

After that request, you should have a host registered in Foreman with the Ansible facts. It takes into account some facter and ohai facts if these are available on the system as well.

Copyright

Copyright (c) Daniel Lobato Garcia

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

foreman_ansible's People

Contributors

adamruzicka avatar agx avatar amasolov avatar ares avatar bastilian avatar bkearney avatar dlobatog avatar ezr-ondrej avatar gerrit91 avatar hao-yu avatar inecas avatar karras avatar lphiri avatar lzap avatar mmalchuk avatar mmoll avatar mriedel-pgdx avatar ofedoren avatar parthaa avatar patilsuraj767 avatar paulcalabro avatar rabajaj0509 avatar sharvit avatar snagoor avatar stbenjam avatar stejskalleos avatar tbrisker avatar tek0011 avatar uxabre avatar xprazak2 avatar

Watchers

 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.