Giter Site home page Giter Site logo

attribute-match-node-enhancer's People

Contributors

gschueler avatar ltamaster avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

attribute-match-node-enhancer's Issues

Help needed - how to use

Hi,

we are trying to use this node enhancer in our setup, but it doesn't seem to do anything. We've put attribute-match-node-enhancer-0.1.3.jar under /var/lib/rundeck/libext, restarted Rundeck. Now we can define an "Attribute Match" under Project Settings -> Edit Nodes -> Enhancers.

enhancer

Unfortunately the new attribute doesn't show up, when we are searching for the node. (Only the previously defined attributes are visible.)

Nodes are defined with the "URL Source" option and look like this:

rundeck_node

As you can see, the attribute stage is defined as qa, so the Attribute Match should match and add the test_attribute.

Unfortunately we don't see any errors in the logs or even if the Attribute Match worked or not...

Can you please help?

Attribute Match Node Enhancer not accepting more than 1 line

Cannot add more than 1 line inside Attributes Match Node Enhancer.

1 from 7 nodes (Node: desktop-rd) has two attributes that should successfully match to add the new attribute to the only mentioned node (Resource Model Attributes: environment="STG" and region="SV").

image

If it's added more than one line in Attribute Matches, the node enhancer will not add the new attribute, in fact, it adds it to other nodes that don't have the environment="STG" and region="SV" attributes. Test below:

image

Also tested with delimiters like commas, space, or newline. None of this working.

To workaround this, create a unique attribute for the node (i.e: region_env="world_dev"). This way it can be added successfully the new attribute to the correct node only. Examples below:

image

image

Expected Behaviour:
Working with more than one attribute without creation of mixed/unique attributes or multiple additions of Match Attributes Node Enhancers.

Poor readibility due to Markdown not supported

Check how the help text is rendered below the first textarea:

Screenshot 2020-04-17 at 00 38 47

How it should look like:


Attribute name/values to match. All matches must be met to add the additional attributes. Each entry should be of the form:

  • key operator value

Where key is the attribute name, operator is one of:

  • == equality match
  • !! not present match
  • =~ regular expression match
  • != inequality match
  • !~ negative regular expression match

"Attribute name/values to match. All matches must be met to add the additional attributes"

This might help with #1

Show stylised node icons in execution view

The icon node enhancer allows me to style the icons, supporting different icons and colours. These stylised icons show in the Nodes view and the Job view (list of target nodes) but not the Execution view.

Supporting the stylised icons in the Execution view would help for jobs which run against nodes of different attributes, the nodes are pre-selected, and the user doesn't have an intimate knowledge of those nodes. It could give the user some indication of what each node does. For example, web server or file server, depending on the icon, primary or standby depending on the colour.

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.