Skip to content

Commit

Permalink
Installe le plugin Munin django.py depuis zds-site
Browse files Browse the repository at this point in the history
Possible depuis que le module django_munin est inclus dans zds-site,
commit 7a83d90fb34f14746c6604d9be1c42385bb2291a.
  • Loading branch information
philippemilink committed Feb 25, 2024
1 parent 5b0be52 commit 8694686
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 46 deletions.
37 changes: 0 additions & 37 deletions roles/munin/files/plugins/django.py

This file was deleted.

12 changes: 3 additions & 9 deletions roles/munin/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@
dest: "{{ munin_available_plugins_dir }}/wget_page"
mode: u=rwx,g=rx,o=rx

- name: copy django.py munin plugin # to be copied from zds-site tree when merged in it
- name: copy django.py munin plugin
ansible.builtin.copy:
src: plugins/django.py
remote_src: true
src: "{{ appdir }}/django_munin/plugins/django.py"
dest: "{{ munin_available_plugins_dir }}/django.py"
mode: u=rwx,g=rx,o=rx

Expand Down Expand Up @@ -131,10 +132,3 @@
regexp: '^env.mysqluser root'
line: 'env.mysqluser root'
when: env == "beta"

- name: create table for django-munin # should be created with a Django migration, but it is missing...
community.mysql.mysql_query:
login_user: "{{ mysql.user }}"
login_password: "{{ mysql.password }}"
login_db: "{{ mysql.name }}"
query: "CREATE TABLE IF NOT EXISTS munin_test (id integer NOT NULL PRIMARY KEY AUTO_INCREMENT, name varchar(256) NOT NULL);"

0 comments on commit 8694686

Please sign in to comment.