2020-12-09 10:04:54 +01:00
# NO LONGER SUPPORTED, please take a look to [apt_install][debops apt_install role] [resources][debops resources role] roles !
2019-02-27 15:20:06 +01:00
2017-08-01 11:08:16 +02:00
1. [Overview ](#overview )
2. [Role Variables ](#role-variables )
* [OS Specific Variables ](#os-specific-variables )
3. [Example Playbook ](#example-playbook )
4. [Packages ](#packages )
2017-08-01 11:42:43 +02:00
* [New Packages ](#new-packages )
* [Unwanted Packages ](#unwanted-packages )
5. [Configuration ](#configuration )
2017-08-01 14:12:34 +02:00
* [Default Editor ](#default-editor )
2017-08-01 11:42:43 +02:00
* [Updatedb ](#updatedb )
6. [Development ](#development )
7. [License ](#license )
8. [Author Information ](#author-information )
2017-08-01 11:08:16 +02:00
## Overview
2017-08-01 11:42:43 +02:00
Manage some packages installation and configuration from 'utils' section (Apt).
2017-08-01 11:08:16 +02:00
## Role Variables
2017-08-01 11:26:14 +02:00
* **pkg_utils_new_state** : State of new pkg_utils packages [default : `installed` ].
* **pkg_utils_old_manage** : If this role should manage unwanted packages [default : `true` ].
2017-08-01 14:12:34 +02:00
* **pkg_utils_old_state** : State of useless pkg_utils [default : `absent` ].
* **pkg_utils_default_editor_name** : The default editor name [default : `vim.nox` ].
* **pkg_utils_default_editor_path** : The default editor path [default : `/usr/bin/vim.nox` ].
* **pkg_utils_default_editor_manage** : If the default editor should be managed [default : `true` ].
2017-08-01 11:42:43 +02:00
* **pkg_utils_updatedb_conf_path** : Configuration file for **updatedb** [default : `/etc/updatedb.conf` ].
* **pkg_utils_updatedb_conf_tpl** : Template used to generate the previous config file [default : `etc/updatedb.conf.j2` ].
* **pkg_utils_updatedb_prune_bind_mounts** : Whether or not bind mounts are scanned [default: `true` ].
* **pkg_utils_updatedb_prunenames** : A list of directory names (without paths) which should not be scanned [default: `[.bzr, .git, .hg, .svn]` ].
* **pkg_utils_updatedb_prunepaths** : A list of path names of directories which should not be scanned [default: `[/media, /mnt, /tmp, /var/lib/ceph, /var/spool]` ].
* **pkg_utils_updatedb_prunefs** : A list of file system types (as used in /etc/mtab) which should not be scanned [default: `[afs, autofs, binfmt_misc, ceph, cifs, coda, curlftpfs, devfs, devpts, devtmpfs, ecryptfs, fuse.glusterfs, fuse.sshfs, fusesmb, iso9660, lustre, lustre_lite, mfs, ncpfs, NFS, nfs, nfs4, proc, rpc_pipefs, shfs, smbfs, sysfs, ftpfs, tmpfs, udf, usbfs]` ].
2018-01-04 12:16:04 +01:00
* **pkg_utils_purge_installer_log** : If the installer log files should be removed [default : `true` ].
* **pkg_utils_purge_installer_age** : Maximum age of the installer log files before removing [default : `4w` ].
2017-08-01 11:08:16 +02:00
### OS Specific Variables
Please see default value by Operating System file in [vars][vars directory] directory.
* **pkg_utils_new_list** : The list of packages to install to provide `pkg_utils` .
2017-08-01 11:26:14 +02:00
* **pkg_utils_old_list** : The list of unwanted packages to remove.
2017-08-01 11:08:16 +02:00
## Example Playbook
* Use defaults vars :
``` yml
- hosts: serverXYZ
roles:
- role: ipr-cnrs.pkg_utils
```
2017-08-01 11:26:14 +02:00
* Don't remove any packages :
``` yml
- hosts: serverXYZ
roles:
- role: ipr-cnrs.pkg_utils
pkg_utils_old_manage: false
```
2018-01-04 12:16:04 +01:00
* Don't remove installer log files :
``` yml
- hosts: serverXYZ
roles:
- role: ipr-cnrs.pkg_utils
pkg_utils_purge_installer_log: false
```
2017-08-01 11:08:16 +02:00
## Packages
### New Packages
2017-08-25 10:40:10 +02:00
* **apt-transport-https** : https download transport for APT.
2017-08-01 11:08:16 +02:00
* **bdsmainutils** : Collection of more utilities from FreeBSD.
* **colordiff** : Tool to colorize 'diff' output.
* **cpio** : GNU cpio; a program to manage archives of files.
* **debian-goodies** : Small toolbox-style utilities for Debian systems.
* Show which installed packages occupy the most place :
``` sh
dpigs
```
* **htop** : Interactive processes viewer.
* **lsof** : Utility to list open files (eg. useful to redirect stdout).
* **lzip** : Lossless data compressor based on the LZMA algorithm.
* **mlocate** : Quickly find files on the filesystem based on their name.
* **moreutils** : Additionnal Unix utilities.
* `vidir` : Edit directory content as a file with vim
* **multitail** : View multiple logfiles windowed on console :
``` sh
sudo multitail /var/log/auth.log /var/log/syslog
sudo multitail -s 2 /var/log/auth.log /var/log/syslog /var/log/mail.log
```
* **tmux** : Terminal multiplexer.
* **tree** : Displays an indented directory tree,in color.
* **unrar** : Unarchiver for .rar files (non-free version).
* **unzip** : De-archiver for .zip files.
* **vim-nox** : Vi IMproved - enhanced vi editor - with scripting languages support.
* **vim-doc** : Vi IMproved - HTML documentation.
* **vim-scripts** : Plugins for vim, adding bells and whistles.
* **zip** : Archiver for .zip files.
* **zsh** : Shell with lots of features.
2017-08-01 11:26:14 +02:00
### Unwanted Packages
* **vim-tiny** : Compact version of vim editor.
2017-08-01 11:42:43 +02:00
## Configuration
2017-08-01 14:12:34 +02:00
### Default Editor
* Set the *pkg_utils_default_editor.name* var [default : `vim.nox` ] as the default editor on the system.
2017-08-01 11:42:43 +02:00
### Updatedb
Based on the [Oefenweb module][oefenweb ansible updatedb], thanks !
2017-08-01 12:08:53 +02:00
* Set the default configuration file for *updatedb* and update the database for Mlocate with an handler.
2017-08-01 11:42:43 +02:00
* Ensure to not scan some path, directories and filesystem.
2018-01-04 12:16:04 +01:00
### Installer log files
* Debian installer log all the installation in `/var/log/installer` .
* If a system is stable, you should removed these log files.
* After 4 weeks (by default) this role will remove it.
2017-08-01 11:08:16 +02:00
## Development
This source code comes from our [Gogs instance][pkg_utils source] and the [Github repo][pkg_utils github] exist just to be able to send the role to Ansible Galaxy…
But feel free to send issue/PR here :)
Thanks to this [hook][gogs to github hook], Github automatically got updates from our [Gogs instance][pkg_utils source] :)
## License
[WTFPL][wtfpl website]
## Author Information
Jérémy Gardais
* Source : [on IPR's Gogs][pkg_utils source]
* [IPR][ipr website] (Institut de Physique de Rennes)
[vars directory]: ./vars
[gogs to github hook]: https://stackoverflow.com/a/21998477
[pkg_utils source]: https://git.ipr.univ-rennes1.fr/cellinfo/ansible.pkg_utils
[pkg_utils github]: https://github.com/ipr-cnrs/pkg_utils
[wtfpl website]: http://www.wtfpl.net/about/
[ipr website]: https://ipr.univ-rennes1.fr/
2019-02-27 15:20:06 +01:00
[debops apt_install role]: https://docs.debops.org/en/master/ansible/roles/debops.apt_install/index.html
[debops resources role]: https://docs.debops.org/en/master/ansible/roles/debops.resources/index.html