debops-contrib / ansible-checkmk_server

Setup Check_MK monitoring server
GNU General Public License v3.0
9 stars 3 forks source link

Add definition and template for default role configuration #5

Closed ganto closed 8 years ago

ganto commented 8 years ago

This also allows to specify custom roles. For example:

# Define default roles and custom role
checkmk_server__multisite_roles: '{{ checkmk_server__default_roles |
                                     combine(checkmk_server__custom_roles,
                                             recursive=True) }}'

# Custom role based on the 'user' role with additional 'see_all' permission
checkmk_server__custom_roles:
  myuser:
    alias: 'Custom User'
    builtin: False
    basedon: 'user'
    permissions:
      general.see_all: True
ganto commented 8 years ago

@ypid: thanks for the hint with the new combine filter