Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 797 Bytes

File metadata and controls

19 lines (12 loc) · 797 Bytes

SaltStack Module: Install and Manage linuxpatch.com Agent and Service

Description

This SaltStack state module automates the process of downloading, executing, and cleaning up an installation script from linuxpatch.com. Additionally, it ensures that the linuxpatch-agent service is running and enabled at startup. The script is only executed if the file /opt/linuxpatch/bin/linuxpatch does not exist.

Prerequisites

  • SaltStack installed on the master and minion nodes.
  • Properly configured pillar file with the API key for linuxpatch.com.

Pillar Configuration

Create a pillar file (e.g., linuxpatch.sls) with the following content:

linuxpatch:
  lp_key: 'your_lp_key_here'  # Replace with your actual API key