Coder Social home page Coder Social logo

Comments (2)

tadeboro avatar tadeboro commented on July 29, 2024 1

Hi @michaeldeaton.

The bonsai_asset is an action plugin executed on the control node. What that plugin does is:

  1. Download a list of all available asset versions from the bonsai (GET https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-memory-checks is the URL we hit for memory checks). We do this to make sure we have a valid version.
  2. Get the asset definition for the selected version (GET https://bonsai.sensu.io/api/v1/assets/sensu-plugins/sensu-plugins-memory-checks/4.1.1/release_asset_builds). This is the actual data we need to create a new asset.

The data we retrieved with the second GET request is then used to construct the asset definition that is then fed to the asset module that does the actual creation.

I forgot what exactly was the reason for placing the download onto the control node, but I have a feeling that we did that because the control node usually has better internet access compared to target nodes. But I guess I was wrong about that ;)

Maybe adding a new parameter to the bonsai "module" that would control where the download is done would help here? Then the playbook authors could instruct ansible that the target node should download the data from the bonsai instead of the control node?

from sensu-go-ansible.

michaeldeaton avatar michaeldeaton commented on July 29, 2024

Hey

thank you for that. that explains my issue the. I’ve spent all day on this. Documentation should probably have said something. I do like your suggestion though an option to choose where the download goes would be good.

Thanks

michael

from sensu-go-ansible.

Related Issues (20)

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.