GithubHelp home page GithubHelp logo

jmikedupont2 / functional-ansible Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 28 KB

Functional language ideas for ansible

License: GNU General Public License v3.0

Makefile 3.45% Python 96.55%
ansible-module functional-programming python3

functional-ansible's Introduction

functional-ansible

Functional language experiments for ansible

Current experiments

This current version contains a prototype implementation of the following functions:

  • call_task: call a task by name and expand in memory

For this to be easily implemented we will want to execute this on the controller and do the expansion before anything else.

There are a few places where this could happenn, we do it just after the data is loaded from yaml but before it is compiled.

We implemented a new DataLoader module that runs the expansion after loading. For that we added a new configuration into ansible to allow for overloading the dataloader class and module by user configuration. We replace all the direct construction of that dataloader class with a factory method.

The template tasks are tested here, test/units/functional_modules/functional/call_task/test_call_task_simple.yml there is a new section added called template_tasks, this section is used for call_task. The variables all need to be defined in the file itself for this version.

We want to implement these functions:

  • yq: run jq/yq on lists of data
  • cons : construct new variables in an elegant manner, to be called after the variables are all loaded.
  • generate deb, rpm, setup, wheel distribution for a playbook
  • refactor an existing playbook or role into one following best practices

functional-ansible's People

Contributors

jmikedupont2 avatar

Stargazers

 avatar

Watchers

 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.