Code Monkey home page Code Monkey logo

Comments (4)

sherl0cks avatar sherl0cks commented on June 16, 2024

This is a real challenge when maintain a source code repository with a team. What happens in practice is that people comment out sections of the inventory since its the easiest thing that works. That of course leads to all the nasty challenges associated with commented code.

I think a simple solution here is to provide a whitelist feature, which you can provide as variable when running the playbook. That whitelist can be a simple comma delimited list, and then the role would be enhanced to only run the objects in the inventory that are on the whitelist. This would give end users fine grain control of execution, without having to modify the inventory.

@InfoSec812 @oybed what do you guys think?

from casl-ansible.

InfoSec812 avatar InfoSec812 commented on June 16, 2024

I think that having a blacklist/whitelist feature would be valuable. I would suggest that we discuss at what level and how granularly to apply them though. Do we apply it at the object level, object:name level, or something else?

from casl-ansible.

oybed avatar oybed commented on June 16, 2024

@InfoSec812 @sherl0cks This requires some discussion as it's deviates from the original plan. I'll schedule a discussion with you guys and @etsauer (once he's back from PTO).

from casl-ansible.

oybed avatar oybed commented on June 16, 2024

@etsauer and I had a follow-up discussion tonight, and think this is a good idea overall. Eric proposed that we look to use a tag & filter strategy instead, as it allows for potential a better way of handling grouping (and more operators), so we'll work on an implementation for that. In essence, it's very similar to this whitelist strategy. However, considering that #102 changes the underlying structure quite a bit as well, we'll be closing out PR #93 and start working on the filter/tags strategy ASAP to get that working as soon as possible.

@InfoSec812 @sherl0cks ^^

from casl-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.