Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
docker_nagios
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse du dépôt
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Le Filament
Ansible Roles
docker_nagios
Validations
c98f9f06
Valider
c98f9f06
rédigé
Il y a 11 mois
par
Théo - Le Filament
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
style: update linting rules and format code according to them
parent
c120e2da
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
5
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
5 fichiers modifiés
.yamllint
+1
-1
1 ajout, 1 suppression
.yamllint
defaults/main.yml
+13
-13
13 ajouts, 13 suppressions
defaults/main.yml
handlers/main.yml
+4
-3
4 ajouts, 3 suppressions
handlers/main.yml
meta/main.yml
+14
-14
14 ajouts, 14 suppressions
meta/main.yml
tasks/main.yml
+89
-82
89 ajouts, 82 suppressions
tasks/main.yml
avec
121 ajouts
et
113 suppressions
.yamllint
+
1
−
1
Voir le fichier @
c98f9f06
...
@@ -27,7 +27,7 @@ rules:
...
@@ -27,7 +27,7 @@ rules:
indentation:
indentation:
level: warning
level: warning
indent-sequences: consistent
indent-sequences: consistent
spaces:
4
spaces:
2
check-multi-line-strings: true
check-multi-line-strings: true
key-duplicates: enable
key-duplicates: enable
line-length: disable
line-length: disable
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
defaults/main.yml
+
13
−
13
Voir le fichier @
c98f9f06
Ce diff est replié.
Cliquez pour l'agrandir.
handlers/main.yml
+
4
−
3
Voir le fichier @
c98f9f06
---
---
-
name
:
Restart
n
agios
dock
er
-
name
:
"
Restart
N
agios
contain
er
"
community.docker.docker_compose
:
community.docker.docker_compose
:
project_src
:
/home/docker/nagios/
project_src
:
"
/home/docker/nagios/
"
restarted
:
true
restarted
:
true
listen
:
"
restart
nagios
container"
Ce diff est replié.
Cliquez pour l'agrandir.
meta/main.yml
+
14
−
14
Voir le fichier @
c98f9f06
Ce diff est replié.
Cliquez pour l'agrandir.
tasks/main.yml
+
89
−
82
Voir le fichier @
c98f9f06
---
---
## Install Nagios docker
## Install Nagios docker
-
name
:
Create Nagios docker structure on server in /home/docker/nagios
-
name
:
"
Create
Nagios
docker
structure
on
server
in
/home/docker/nagios
"
ansible.builtin.file
:
ansible.builtin.file
:
name
:
"
{{
item
}}"
name
:
"
{{
item
}}"
state
:
directory
state
:
directory
owner
:
'
999
'
owner
:
"
999
"
group
:
'
1000
'
group
:
"
1000
"
mode
:
'
0755
'
mode
:
"
0755
"
with_items
:
with_items
:
-
/home/docker/nagios/etc/objects
-
"
/home/docker/nagios/etc/objects
"
-
/home/docker/nagios/stylesheets
-
"
/home/docker/nagios/stylesheets
"
-
name
:
Copy nagios docker-compose file
-
name
:
"
Copy
nagios
docker-compose
file
"
ansible.builtin.template
:
ansible.builtin.template
:
src
:
nagios.yaml.j2
src
:
"
nagios.yaml.j2
"
dest
:
/home/docker/nagios/docker-compose.yaml
dest
:
"
/home/docker/nagios/docker-compose.yaml
"
mode
:
'
0644
'
mode
:
"
0644
"
notify
:
R
estart nagios
dock
er
notify
:
"
r
estart
nagios
contain
er
"
-
name
:
Copy configuration files
-
name
:
"
Copy
configuration
files"
tags
:
-
"
nagios_config"
ansible.builtin.copy
:
ansible.builtin.copy
:
src
:
"
{{
item
}}"
src
:
"
{{
item
}}"
dest
:
/home/docker/nagios/etc/{{ item }}
dest
:
"
/home/docker/nagios/etc/{{
item
}}
"
mode
:
'
0644
'
mode
:
"
0644
"
owner
:
'
999
'
owner
:
"
999
"
group
:
'
1000
'
group
:
"
1000
"
with_items
:
with_items
:
-
cgi.cfg
-
"
cgi.cfg"
-
nagios.cfg
-
"
nagios.cfg"
-
resource.cfg
-
"
resource.cfg"
notify
:
Restart nagios docker
notify
:
"
restart
nagios
container"
tags
:
nagios_config
-
name
:
Copy CSS files
-
name
:
"
Copy
CSS
files"
tags
:
-
"
nagios_style"
ansible.builtin.copy
:
ansible.builtin.copy
:
src
:
"
{{
item
}}"
src
:
"
{{
item
}}"
dest
:
/home/docker/nagios/stylesheets/{{ item }}
dest
:
"
/home/docker/nagios/stylesheets/{{
item
}}
"
mode
:
'
0644
'
mode
:
"
0644
"
owner
:
'
999
'
owner
:
"
999
"
group
:
'
1000
'
group
:
"
1000
"
with_items
:
with_items
:
-
avail.css
-
"
avail.css"
-
checksanity.css
-
"
checksanity.css"
-
cmd.css
-
"
cmd.css"
-
common.css
-
"
common.css"
-
config.css
-
"
config.css"
-
extinfo.css
-
"
extinfo.css"
-
histogram.css
-
"
histogram.css"
-
histogramgraph.css
-
"
histogramgraph.css"
-
history.css
-
"
history.css"
-
jsonquery.css
-
"
jsonquery.css"
-
map.css
-
"
map.css"
-
map-directive.css
-
"
map-directive.css"
-
ministatus.css
-
"
ministatus.css"
-
nag_funcs.css
-
"
nag_funcs.css"
-
notifications.css
-
"
notifications.css"
-
outages.css
-
"
outages.css"
-
showlog.css
-
"
showlog.css"
-
status.css
-
"
status.css"
-
statusmap.css
-
"
statusmap.css"
-
summary.css
-
"
summary.css"
-
tac.css
-
"
tac.css"
-
trends.css
-
"
trends.css"
-
trendsgraph.css
-
"
trendsgraph.css"
notify
:
Restart nagios docker
notify
:
"
restart
nagios
docker"
tags
:
nagios_config
-
name
:
Copy objects configuration files
-
name
:
"
Copy
objects
configuration
files"
tags
:
-
"
nagios_config"
ansible.builtin.template
:
ansible.builtin.template
:
src
:
"
{{
item
}}.j2"
src
:
"
{{
item
}}.j2"
dest
:
/home/docker/nagios/etc/objects/{{ item }}
dest
:
"
/home/docker/nagios/etc/objects/{{
item
}}
"
mode
:
'
0644
'
mode
:
"
0644
"
owner
:
'
999
'
owner
:
"
999
"
group
:
'
1000
'
group
:
"
1000
"
with_items
:
with_items
:
-
vps.cfg
-
"
vps.cfg"
-
localhost.cfg
-
"
localhost.cfg"
-
templates.cfg
-
"
templates.cfg"
-
contacts.cfg
-
"
contacts.cfg"
-
commands.cfg
-
"
commands.cfg"
-
timeperiods.cfg
-
"
timeperiods.cfg"
notify
:
Restart nagios docker
notify
:
"
restart
nagios
container"
tags
:
nagios_config
-
name
:
Create apache2 dir on server in /home/docker/nagios
-
name
:
"
Create
apache2
dir
on
server
in
/home/docker/nagios"
tags
:
-
"
nagios_webserver"
ansible.builtin.file
:
ansible.builtin.file
:
name
:
/home/docker/nagios/apache2
name
:
"
/home/docker/nagios/apache2
"
owner
:
'
root
'
owner
:
"
root
"
group
:
'
root
'
group
:
"
root
"
mode
:
'
0755
'
mode
:
"
0755
"
state
:
directory
state
:
directory
-
name
:
Install apache2 configuration files
-
name
:
"
Install
apache2
configuration
files"
tags
:
-
"
nagios_webserver"
ansible.builtin.copy
:
ansible.builtin.copy
:
src
:
"
{{
item
}}"
src
:
"
{{
item
}}"
dest
:
/home/docker/nagios/apache2/{{ item }}
dest
:
"
/home/docker/nagios/apache2/{{
item
}}
"
mode
:
'
0644
'
mode
:
"
0644
"
with_items
:
with_items
:
-
000-default.conf
-
"
000-default.conf
"
-
nagios.conf
-
"
nagios.conf
"
notify
:
R
estart nagios
dock
er
notify
:
"
r
estart
nagios
contain
er
"
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter