ansible-collections / logicmonitor

Repo to house LogicMonitor Collection
BSD 3-Clause "New" or "Revised" License
7 stars 12 forks source link

Create LM Users via play #4

Open henryjarend opened 2 years ago

henryjarend commented 2 years ago
SUMMARY

I'd like to create users (and API keys) via a playbook so I can fully automate my whole lifecycle of deploying LM at a client site

ISSUE TYPE
COMPONENT NAME

lm_user

ADDITIONAL INFORMATION

This would ideally create a user and allow for full management of a LM tenant from purely one point of view. I'm trying to reduce the number of touch points and translation layers (ie using an API driven application and then copy pasting into another) so we can create a full end to end experience in Ansible Below was all the vars I think we'd need. I might have missed one but should be everything that you can access via the API

- name: Create LM User
  logicmonitor.integration.lm_user:
    action: add
    company: batman
    access_id: "temp admin id"
    access_key: "temp admin key"
    roles: [ dark_knight ]
    username: "bruce_wayne"
    email: "bruce@wayneenterprises.com"