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.
- SaltStack installed on the master and minion nodes.
- Properly configured pillar file with the API key for linuxpatch.com.
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