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

Create "default" configuration variables #3

Open
lightpriest opened this issue Apr 28, 2013 · 0 comments
Open

Create "default" configuration variables #3

lightpriest opened this issue Apr 28, 2013 · 0 comments

Comments

@lightpriest
Copy link
Member

Find a way to make configuration variables act as "default", i.e. set at the end of check_parameters, extra_service_conf, etc.

For example, this attribute set:

{
  'check_mk': {
    'config': {
      // ...
      '_default': {
        'extra_service_conf': {
          'max_check_attempts': '3'
        }
      }
    }
  }
}

Would be mapped to:

# main.mk
extra_service_conf["max_check_attempts"] += [
  # ...
  ( "3", ALL_HOSTS, ALL_SERVICES )
]
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