Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 31 additions & 10 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,40 @@
---
on: [push, pull_request]
name: Linters

jobs:
linters:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install dependencies
- uses: actions/checkout@v4

# Use toolcache Python instead of Debian's /usr/bin/python3
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
cache-dependency-path: |
test_requirements.txt
**/pyproject.toml
**/requirements*.txt

- name: Install OS dependencies
run: |
sudo apt-get update -y
sudo apt-get install jq libyaml-dev git build-essential findutils libsystemd-dev -y
sudo python3 -m pip install -r test_requirements.txt
sudo python3 -m pip install --upgrade --ignore-installed PyYAML
sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install --upgrade virtualenv
sudo python3 -m pip install --upgrade setuptools
- name: Run tox environments
run: tox
sudo apt-get install -y jq libyaml-dev git build-essential findutils libsystemd-dev

- name: Create venv & install Python deps
run: |
python -m venv .venv
. .venv/bin/activate
python -m pip install -U pip
# If you have a lint/CI requirements file, install it here:
pip install -r test_requirements.txt
# Ensure tox is available in the venv
pip install tox

- name: Run tox
run: |
. .venv/bin/activate
tox
9 changes: 9 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ LogicMonitor Ansible Collection Release Notes

.. contents:: Topics

v2.0.4
======

Improvements
------------

- Introduced a new optional "domain" field across all LogicMonitor Ansible playbooks.
It defaults to "logicmonitor.com" if not specified and identifies the LogicMonitor domain associated with the account.

v2.0.3
======

Expand Down
22 changes: 22 additions & 0 deletions docs/logicmonitor.integration.lm_alert_rule_module.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,25 @@ Manage LogicMonitor alert rules
</ul>
</td>
</tr>
<tr>
<td colspan="1">
<b>domain</b>
<div>
<span>string</span>
</div>
<td>
<b>Default:</b>
<ul>
<li>logicmonitor.com</li>
</ul>
</td>
<td>
<ul>
<li>The LogicMonitor domain name associated with the account.</li>
<li>A user logging into "batman.lmgov.us" would use "lmgov.us" as the domain.</li>
</ul>
</td>
</tr>
<tr>
<td colspan="1">
<b>access_id</b>
Expand Down Expand Up @@ -391,6 +410,7 @@ Manage LogicMonitor alert rules
lm_alert_rule:
action: add
company: batman
domain: lmgov.us
access_id: "id123"
access_key: "key123"
name: Ansible-Rule
Expand All @@ -409,6 +429,7 @@ Manage LogicMonitor alert rules
lm_alert_rule:
action: update
company: batman
domain: lmgov.us
access_id: "id123"
access_key: "key123"
name: Ansible-Rule
Expand All @@ -434,6 +455,7 @@ Manage LogicMonitor alert rules
lm_alert_rule:
action: remove
company: batman
domain: lmgov.us
access_id: "id123"
access_key: "key123"
name: Ansible-Rule
Expand Down
22 changes: 22 additions & 0 deletions docs/logicmonitor.integration.lm_collector_group_module.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,25 @@ Manage LogicMonitor collector groups
</ul>
</td>
</tr>
<tr>
<td colspan="1">
<b>domain</b>
<div>
<span>string</span>
</div>
<td>
<b>Default:</b>
<ul>
<li>logicmonitor.com</li>
</ul>
</td>
<td>
<ul>
<li>The LogicMonitor domain name associated with the account.</li>
<li>A user logging into "batman.lmgov.us" would use "lmgov.us" as the domain.</li>
</ul>
</td>
</tr>
<tr>
<td colspan="1">
<b>access_id</b>
Expand Down Expand Up @@ -304,6 +323,7 @@ Manage LogicMonitor collector groups
lm_collector_group:
action: add
company: batman
domain: lmgov.us
access_id: "id123"
access_key: "key123"
name: "Collector Group"
Expand All @@ -321,6 +341,7 @@ Manage LogicMonitor collector groups
lm_collector_group:
action: update
company: batman
domain: lmgov.us
access_id: "id123"
access_key: "key123"
id: 123
Expand All @@ -339,6 +360,7 @@ Manage LogicMonitor collector groups
lm_collector_group:
action: remove
company: batman
domain: lmgov.us
access_id: "id123"
access_key: "key123"
name: "collector group"
Expand Down
23 changes: 23 additions & 0 deletions docs/logicmonitor.integration.lm_collector_module.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,25 @@ Manage LogicMonitor collectors
</ul>
</td>
</tr>
<tr>
<td colspan="1">
<b>domain</b>
<div>
<span>string</span>
</div>
<td>
<b>Default:</b>
<ul>
<li>logicmonitor.com</li>
</ul>
</td>
<td>
<ul>
<li>The LogicMonitor domain name associated with the account.</li>
<li>A user logging into "batman.lmgov.us" would use "lmgov.us" as the domain.</li>
</ul>
</td>
</tr>
<tr>
<td colspan="1">
<b>access_id</b>
Expand Down Expand Up @@ -526,6 +545,7 @@ Manage LogicMonitor collectors
lm_collector:
action: add
company: batman
domain: lmgov.us
access_id: "id123"
access_key: "key123"
description: "localhost"
Expand All @@ -542,6 +562,7 @@ Manage LogicMonitor collectors
- lm_collector:
action: Update LogicMonitor collector
company: batman
domain: lmgov.us
access_id: "id123"
access_key: "key123"
id: 1
Expand All @@ -563,6 +584,7 @@ Manage LogicMonitor collectors
lm_collector:
action: remove
company: batman
domain: lmgov.us
access_id: "id123"
access_key: "key123"
id: 1
Expand All @@ -575,6 +597,7 @@ Manage LogicMonitor collectors
lm_collector:
action: sdt
company: batman
domain: lmgov.us
access_id: "id123"
access_key: "key123"
description: "localhost"
Expand Down
20 changes: 20 additions & 0 deletions docs/logicmonitor.integration.lm_datasource_module.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,25 @@ Manage LogicMonitor device datasources
</ul>
</td>
</tr>
<tr>
<td colspan="1">
<b>domain</b>
<div>
<span>string</span>
</div>
<td>
<b>Default:</b>
<ul>
<li>logicmonitor.com</li>
</ul>
</td>
<td>
<ul>
<li>The LogicMonitor domain name associated with the account.</li>
<li>A user logging into "batman.lmgov.us" would use "lmgov.us" as the domain.</li>
</ul>
</td>
</tr>
<tr>
<td colspan="1">
<b>access_id</b>
Expand Down Expand Up @@ -283,6 +302,7 @@ Manage LogicMonitor device datasources
logicmonitor:
action: sdt
company: batman
domain: lmgov.us
access_id: "id123"
access_key: "key123"
name: "ping"
Expand Down
23 changes: 23 additions & 0 deletions docs/logicmonitor.integration.lm_device_group_module.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,25 @@ Manage LogicMonitor device groups
</ul>
</td>
</tr>
<tr>
<td colspan="1">
<b>domain</b>
<div>
<span>string</span>
</div>
<td>
<b>Default:</b>
<ul>
<li>logicmonitor.com</li>
</ul>
</td>
<td>
<ul>
<li>The LogicMonitor domain name associated with the account.</li>
<li>A user logging into "batman.lmgov.us" would use "lmgov.us" as the domain.</li>
</ul>
</td>
</tr>
<tr>
<td colspan="1">
<b>access_id</b>
Expand Down Expand Up @@ -397,6 +416,7 @@ Manage LogicMonitor device groups
lm_device_group:
action: add
company: batman
domain: lmgov.us
access_id: "id123"
access_key: "key123"
full_path: "Devices by Type/Collectors/Ansible Group"
Expand All @@ -416,6 +436,7 @@ Manage LogicMonitor device groups
lm_device_group:
action: update
company: batman
domain: lmgov.us
access_id: "id123"
access_key: "key123"
full_path: "Devices by Type/Collectors"
Expand All @@ -436,6 +457,7 @@ Manage LogicMonitor device groups
lm_device_group:
action: remove
company: batman
domain: lmgov.us
access_id: "id123"
access_key: "key123"
id: 123
Expand All @@ -448,6 +470,7 @@ Manage LogicMonitor device groups
lm_device_group:
action: sdt
company: batman
domain: lmgov.us
access_id: "id123"
access_key: "key123"
full_path: "Devices by Type/Collectors"
Expand Down
23 changes: 23 additions & 0 deletions docs/logicmonitor.integration.lm_device_module.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,25 @@ Manage LogicMonitor devices
</ul>
</td>
</tr>
<tr>
<td colspan="1">
<b>domain</b>
<div>
<span>string</span>
</div>
<td>
<b>Default:</b>
<ul>
<li>logicmonitor.com</li>
</ul>
</td>
<td>
<ul>
<li>The LogicMonitor domain name associated with the account.</li>
<li>A user logging into "batman.lmgov.us" would use "lmgov.us" as the domain.</li>
</ul>
</td>
</tr>
<tr>
<td colspan="1">
<b>access_id</b>
Expand Down Expand Up @@ -453,6 +472,7 @@ Manage LogicMonitor devices
lm_device:
action: add
company: batman
domain: lmgov.us
access_id: "id123"
access_key: "key123"
display_name: "Ansible Device"
Expand All @@ -474,6 +494,7 @@ Manage LogicMonitor devices
lm_device:
action: update
company: batman
domain: lmgov.us
access_id: "id123"
access_key: "key123"
id: 1
Expand All @@ -497,6 +518,7 @@ Manage LogicMonitor devices
lm_device:
action: remove
company: batman
domain: lmgov.us
access_id: "id123"
access_key: "key123"
display_name: "Ansible_Device"
Expand All @@ -509,6 +531,7 @@ Manage LogicMonitor devices
logicmonitor:
action: sdt
company: batman
domain: lmgov.us
access_id: "id123"
access_key: "key123"
display_name: "127.0.0.1_collector_4"
Expand Down
Loading