sensu / uchiwa-chef

Other
33 stars 40 forks source link

Support the users attribute #39

Open palourde opened 9 years ago

palourde commented 9 years ago

A new attribute users is available which allow to define multiple users on the configuration file: http://docs.uchiwa.io/en/latest/configuration/uchiwa/#multiple-users-with-simple-authentication

obazoud commented 8 years ago

+1

obazoud commented 8 years ago

You can define multiple users like this:

node.default['uchiwa']['settings']['users'] = [
      {
        "username" : "admin",
        "password": "secret1",
        "role": {
          "readonly": false
        }
      },
      {
        "username" : "guest",
        "password": "secret1",
        "role": {
          "readonly": true
        }
      }
    ]

Note that node['uchiwa']['settings']['pass'] is overwritten by this configuration.