forked from evolix/ansible-roles
evomaintenance: move upstream files into upstream folder
This commit is contained in:
parent
24f1e72147
commit
f05c8c03c9
|
@ -21,6 +21,7 @@ The **patch** part is incremented if multiple releases happen the same month
|
||||||
* evolinux-base: improve adding the current user to SSH AllowGroups of AllowUsers
|
* evolinux-base: improve adding the current user to SSH AllowGroups of AllowUsers
|
||||||
* evolinux-users: improve SSH configuration
|
* evolinux-users: improve SSH configuration
|
||||||
* evomaintenance: upstream release 24.05
|
* evomaintenance: upstream release 24.05
|
||||||
|
* evomaintenance: move upstream files into upstream folder
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
From: __FULLFROM__
|
|
||||||
Content-Type: text/plain; charset=UTF-8
|
|
||||||
MIME-Version: 1.0
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
To: __TO__
|
|
||||||
Subject: [evomaintenance] Intervention sur __HOSTNAME__ (__USER__)
|
|
||||||
|
|
||||||
Bonjour,
|
|
||||||
|
|
||||||
Une intervention vient de se terminer sur votre serveur.
|
|
||||||
Voici les renseignements sur l'intervention :
|
|
||||||
|
|
||||||
Nom du serveur : __HOSTNAME__
|
|
||||||
Personne ayant réalisée l'intervention : __USER__
|
|
||||||
Intervention réalisée depuis : __IP__
|
|
||||||
Début de l'intervention : __BEGIN_DATE__
|
|
||||||
Fin de l'intervention : __END_DATE__
|
|
||||||
|
|
||||||
###
|
|
||||||
Renseignements sur l'intervention :
|
|
||||||
__TEXTE__
|
|
||||||
###
|
|
||||||
|
|
||||||
__GIT_COMMITS__
|
|
||||||
|
|
||||||
Pour réagir à cette intervention, vous pouvez répondre à ce message
|
|
||||||
(sur l'adresse mail __FROM__). En cas d'urgence, utilisez
|
|
||||||
l'adresse __URGENCYFROM__ ou notre téléphone portable d'astreinte
|
|
||||||
(__URGENCYTEL__)
|
|
||||||
|
|
||||||
Cordialement,
|
|
||||||
--
|
|
||||||
__FULLFROM__
|
|
100
evomaintenance/files/upstream/CHANGELOG.md
Normal file
100
evomaintenance/files/upstream/CHANGELOG.md
Normal file
|
@ -0,0 +1,100 @@
|
||||||
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
||||||
|
and this project **does not adhere to [Semantic Versioning](http://semver.org/spec/v2.0.0.html)**.
|
||||||
|
|
||||||
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
Add missing (but documented) `--(no-)evocheck` options
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
### Deprecated
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
### Security
|
||||||
|
|
||||||
|
## [23.10.1] - 2023-10-09
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* Use a special variable name since USER is always defined from the environment
|
||||||
|
|
||||||
|
## [23.10] - 2023-10-09
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
* Force a user name with `-u,--user` option (default is still `logname(1)`).
|
||||||
|
* More people credited
|
||||||
|
|
||||||
|
### Deprecated
|
||||||
|
|
||||||
|
* `--autosysadmin` is replaced by `--user autosysadmin`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [22.07] - 2022-07-05
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
* Add `--autosysadmin` flag
|
||||||
|
* Commit change in /etc of lxc containers
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
### Deprecated
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
### Security
|
||||||
|
|
||||||
|
## [22.01] - 2022-01-25
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
* version/host/user headers in sent email
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
New version pattern
|
||||||
|
|
||||||
|
## [0.6.4] - 2021-06-17
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
* fallback if findmnt is absent
|
||||||
|
|
||||||
|
## [0.6.3] - 2020-02-02
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
* Notify syslog when partitions are re-mounted (Linux)
|
||||||
|
|
||||||
|
## [0.6.2] - 2020-02-02
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* better detection of read-only partitions (Linux)
|
||||||
|
|
||||||
|
## [0.6.0] - 2019-11-05
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
* commit changes in /usr/share/scripts/ if needed
|
||||||
|
|
||||||
|
## Previous changelog
|
||||||
|
|
||||||
|
* 0.5.0 : options et mode interactif pour l'exécution des actions, meilleure compatibilité POSIX
|
||||||
|
* 0.4.1 : Utilisation de "printf" à la place de "echo" pour mieux gérer les sauts de ligne
|
||||||
|
* 0.4.0 : Amélioration de la récupération d'information (plus de cas gérés). Infos Git avant la saisie.
|
||||||
|
* 0.3.0 : Écriture dans un fichier de log, amélioration de la récupération d'informations, amélioration de la syntaxe shell
|
||||||
|
* 0.2.7 : Correction d'un bug lors de l'utilisation de '&' dans le texte
|
||||||
|
* 0.2.6 : Precision du charset dans les entetes du mail
|
||||||
|
* 0.2.5 : Correction d'un bug avec le path de sendmail sous OpenBSD
|
||||||
|
* 0.2.4 : Correction d'un bug lors de l'utilisation de '/' dans le texte
|
||||||
|
* 0.2.3 : Correction d'un bug avec $REALM
|
30
evomaintenance/files/upstream/README.md
Normal file
30
evomaintenance/files/upstream/README.md
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
# Evomaintenance
|
||||||
|
|
||||||
|
```.plain
|
||||||
|
$ evomaintenance --help
|
||||||
|
evomaintenance is a program that helps reporting what you've done on a server
|
||||||
|
|
||||||
|
Usage: evomaintenance
|
||||||
|
or evomaintenance --message="add new host"
|
||||||
|
or evomaintenance --no-api --no-mail --no-commit
|
||||||
|
or echo "add new vhost" | evomaintenance
|
||||||
|
|
||||||
|
Options
|
||||||
|
-m, --message=MESSAGE set the message from the command line
|
||||||
|
--mail enable the mail hook (default)
|
||||||
|
--no-mail disable the mail hook
|
||||||
|
--db enable the database hook
|
||||||
|
--no-db disable the database hook (default)
|
||||||
|
--api enable the API hook (default)
|
||||||
|
--no-api disable the API hook
|
||||||
|
--commit enable the commit hook (default)
|
||||||
|
--no-commit disable the commit hook
|
||||||
|
--evocheck enable evocheck execution (default)
|
||||||
|
--no-evocheck disable evocheck execution
|
||||||
|
--auto use "auto" mode
|
||||||
|
--no-auto use "manual" mode (default)
|
||||||
|
-v, --verbose increase verbosity
|
||||||
|
-n, --dry-run actions are not executed
|
||||||
|
--help print this message and exit
|
||||||
|
--version print version and exit
|
||||||
|
```
|
|
@ -35,15 +35,12 @@
|
||||||
|
|
||||||
- name: Evomaintenance script and template are installed
|
- name: Evomaintenance script and template are installed
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ item.src }}"
|
src: "upstream/evomaintenance.sh"
|
||||||
dest: "{{ item.dest }}"
|
dest: "/usr/share/scripts/"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: "{{ item.mode }}"
|
mode: "0700"
|
||||||
force: true
|
force: true
|
||||||
backup: yes
|
backup: yes
|
||||||
loop:
|
|
||||||
- { src: 'evomaintenance.sh', dest: '/usr/share/scripts/', mode: '0700' }
|
|
||||||
- { src: 'evomaintenance.tpl', dest: '/usr/share/scripts/', mode: '0600' }
|
|
||||||
tags:
|
tags:
|
||||||
- evomaintenance
|
- evomaintenance
|
Loading…
Reference in a new issue