From 771a2efcd7c85b394979345e13af6133097ac0c6 Mon Sep 17 00:00:00 2001 From: Goldwaage Date: Sat, 4 Apr 2020 01:33:32 +0200 Subject: [PATCH] Ordnerstruktur angelegt --- README.md | 69 +++++++++++++++++++++++++++++++- inventory | 0 roles/common/handlers/main.yml | 0 roles/common/tasks/main.yml | 0 roles/grafana/handlers/main.yml | 0 roles/grafana/tasks/main.yml | 0 roles/influxdb/handlers/main.yml | 0 roles/influxdb/tasks/main.yml | 0 roles/moodle/handlers/main.yml | 0 roles/moodle/tasks/main.yml | 0 roles/mqtt/handlers/main.yml | 0 roles/mqtt/tasks/main.yml | 0 roles/nodered/handlers/main.yml | 0 roles/nodered/tasks/main.yml | 0 roles/telegraf/handlers/main.yml | 0 roles/telegraf/tasks/main.yml | 0 site.yml | 0 17 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 inventory create mode 100644 roles/common/handlers/main.yml create mode 100644 roles/common/tasks/main.yml create mode 100644 roles/grafana/handlers/main.yml create mode 100644 roles/grafana/tasks/main.yml create mode 100644 roles/influxdb/handlers/main.yml create mode 100644 roles/influxdb/tasks/main.yml create mode 100644 roles/moodle/handlers/main.yml create mode 100644 roles/moodle/tasks/main.yml create mode 100644 roles/mqtt/handlers/main.yml create mode 100644 roles/mqtt/tasks/main.yml create mode 100644 roles/nodered/handlers/main.yml create mode 100644 roles/nodered/tasks/main.yml create mode 100644 roles/telegraf/handlers/main.yml create mode 100644 roles/telegraf/tasks/main.yml create mode 100644 site.yml diff --git a/README.md b/README.md index 2d4994b..845b06a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,70 @@ # raspberrypi-ansible -Ansible Projekt für Marc's Raspberry Pi \ No newline at end of file +Ansible Projekt für Marc's Raspberry Pi + +## ToDo's + +- [ ] Moodle als Test vonhand auf dem Pi installieren +- [ ] Playbook schreiben +- [ ] tasks für alle Rollen schreiben +- [ ] Configdatein der einzelnen Dienste ausarbeiten und als Templates in den Rollen hinterlegen +- [ ] Überlegen, welche Dienste welche Dateien mitbringen/benötigen. (Bei Grafana z. B. Dashboards, Plugin-Module und Flows von NodeRED, etc.) + +## Dienste + +* MQTT +* NodeRED +* InfluxDB +* Telegraf +* Grafana +* Moodle + + +## Ansible-Struktur + +``` + inventory # Allgemeines Inventory-Datei kann gesplittet werden in "production" "staging" Umgebungen. + +group_vars/ + group1.yml # here we assign variables to particular groups + group2.yml +host_vars/ + hostname1.yml # here we assign variables to particular systems + hostname2.yml + +library/ # if any custom modules, put them here (optional) +module_utils/ # if any custom module_utils to support modules, put them here (optional) +filter_plugins/ # if any custom filter plugins, put them here (optional) + +site.yml # master Playbook kann ggf. in mehrere Playbooks aufgeteilt/strukturiert werden + +roles/ + common/ # this hierarchy represents a "role" + tasks/ # + main.yml # <-- tasks file can include smaller files if warranted + handlers/ # + main.yml # <-- handlers file + templates/ # <-- files for use with the template resource + ntp.conf.j2 # <------- templates end in .j2 + files/ # + bar.txt # <-- files for use with the copy resource + foo.sh # <-- script files for use with the script resource + vars/ # + main.yml # <-- variables associated with this role + defaults/ # + main.yml # <-- default lower priority variables for this role + meta/ # + main.yml # <-- role dependencies + library/ # roles can also include custom modules + module_utils/ # roles can also include custom module_utils + lookup_plugins/ # or other types of plugins, like lookup in this case + + mqtt/ # same kind of structure as "common" was above, done for the webtier role + nodered/ # "" + influxdb/ # "" + telegraf/ # "" + grafana/ # "" + moodle/ # "" +``` + +Glück Auf! diff --git a/inventory b/inventory new file mode 100644 index 0000000..e69de29 diff --git a/roles/common/handlers/main.yml b/roles/common/handlers/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/grafana/handlers/main.yml b/roles/grafana/handlers/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/grafana/tasks/main.yml b/roles/grafana/tasks/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/influxdb/handlers/main.yml b/roles/influxdb/handlers/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/influxdb/tasks/main.yml b/roles/influxdb/tasks/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/moodle/handlers/main.yml b/roles/moodle/handlers/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/moodle/tasks/main.yml b/roles/moodle/tasks/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/mqtt/handlers/main.yml b/roles/mqtt/handlers/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/mqtt/tasks/main.yml b/roles/mqtt/tasks/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/nodered/handlers/main.yml b/roles/nodered/handlers/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/nodered/tasks/main.yml b/roles/nodered/tasks/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/telegraf/handlers/main.yml b/roles/telegraf/handlers/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/roles/telegraf/tasks/main.yml b/roles/telegraf/tasks/main.yml new file mode 100644 index 0000000..e69de29 diff --git a/site.yml b/site.yml new file mode 100644 index 0000000..e69de29