Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

Latest commit

 

History

History
39 lines (31 loc) · 1.34 KB

README.md

File metadata and controls

39 lines (31 loc) · 1.34 KB

salt_states

❗ This project is no longer maintained. For a new release, check this project.

The main idea here, is to have salt formulas to do:

All you need are the states here and a pillar. You just have to maintain one pillar file and refresh it on minions.

Here is a sample of the pillar file content:

machines:
  www:
    ip: 26
    user: root
    RsyncShareName:
      - /var/www
      - /var/backups
      - /root
      - /etc
      - /var/lib/mysql
      - /var/log
      - /var/spool/cron
    BackupFilesExclude:
      - /root/.ssh
      - /etc/ssh
    SaltHostname: www.example.com
    services:
      - ssh
      - apache
      - mysql

The monitor_salt_json contains files to read json outputs and create a cron file (it is not real time monitoring, just reports). With this, you have a very brief information of your servers pools in a web page.