initial ansible deployment scaffolding

This commit is contained in:
Mike Kowalski 2025-10-29 15:20:44 -05:00
commit 3af91c82e2
7 changed files with 40 additions and 0 deletions

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# customer-deploy
Ansible playbooks for deploying the Galion Systems monitoring stack at
customer sites. Internal use only.

View File

@ -0,0 +1,6 @@
---
- name: Deploy Galion monitoring stack
hosts: "{{ target_site }}"
become: true
roles:
- galion_monitor

View File

@ -0,0 +1,11 @@
---
- name: Install dependencies
apt:
name: [python3-pip, prometheus-node-exporter]
state: present
- name: Copy Prometheus config
template:
src: prometheus.yml.j2
dest: /etc/prometheus/prometheus.yml
notify: restart prometheus

View File

@ -0,0 +1,3 @@
site_name: gary_in
plc_hosts: [10.20.1.10]
prometheus_port: 9090

View File

@ -0,0 +1,4 @@
site_name: toledo_oh
site_contact: scada@toledowater.com
plc_hosts: [172.16.5.20]
prometheus_port: 9090

View File

@ -0,0 +1,4 @@
site_name: walnut_creek
site_contact: ops@walnutcreekwater.org
plc_hosts: [10.10.1.5, 10.10.1.6]
prometheus_port: 9090

9
docs/deployment.md Normal file
View File

@ -0,0 +1,9 @@
# Deployment Guide
## Usage
```bash
ansible-playbook deploy/playbooks/site.yml \
-e target_site=walnut_creek \
-e @deploy/site_vars/walnut_creek.yml \
-i inventory/hosts.ini
```