Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto facettes, auto tags #9

Closed
mastersign opened this issue Apr 25, 2018 · 3 comments
Closed

Auto facettes, auto tags #9

mastersign opened this issue Apr 25, 2018 · 3 comments

Comments

@mastersign
Copy link
Owner

Generate facette values and tags automatically when certain conditions are met.

Examples:

  • If facette host matches regex -production$ set facette environment to production
  • If facette verb is install add tag setup
@mastersign
Copy link
Owner Author

mastersign commented Apr 25, 2018

Draft for configuration format:

auto:
  - match:
      mode: facette
      facette: host
      regex: '-production$'
    facettes:
      environment: production
  - match:
      mode: facette
      facette: verb
      value: install
    tags: ['setup']

@mastersign
Copy link
Owner Author

Counter proposal supporting multiple include and exclude patterns:

auto:
  - include:
      - mode: facette
        facette: host
        regex: '-production$'
    facettes:
      environment: production
  - include:
      - mode: facette
        facette: verb
        value: install
    tags: ['setup']

@mastersign
Copy link
Owner Author

implemented in 421b248

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant