Archives mensuelles : April 2018
Installation de next-cloud sur Debian 9
Prérequis : Mise en place de SSL sur un serveur Apache2 sous Debian 9.
Installation de LAMP avec PHP 7.
root@debian~#: apt install -y apache2 mariadb-server libapache2-mod-php7.0
: le paquet apache2
n’est plus nécessaire si SSL (et donc Apache) est déjà mise en place.
Installation des modules PHP 7.
root@debian~#: apt install -y php7.0-gd php7.0-json php7.0-mysql php7.0-curl php7.0-mbstring
Installation des modules PHP 7.
root@debian~#: apt install -y php7.0-intl php7.0-mcrypt php-imagick php7.0-xml php7.0-zip
by Nicolas SHINEY | April 30, 2018 | No Comments | Système | Tags : cloud debian debian 9
Démarrer avec ansible
Environnement
IP | Nom de l’hôte | Rôle | OS |
---|---|---|---|
172.16.0.10/24 | server.stan.local | Serveur ansible | CentOS 7 |
172.16.0.11/24 | client-01.stan.local | Client ansible | CentOS 7 |
172.16.0.12/24 | client-02.stan.local | Client ansible | CentOS 7 |
by Nicolas SHINEY | April 26, 2018 | No Comments | Système | Tags : ansible configuration de masse
Démarrer avec lxc
Installation de lxc et de quelques packet
[root@cent-os ~]#: yum -y install epel-release lxc lxc-templates libcap-devel libcgroup busybox wget bridge-utils lxc-extra
Vérifier la configuration.
[root@cent-os ~]#: lxc-checkconfig
by Nicolas SHINEY | April 25, 2018 | No Comments | Système | Tags : container lxc
Démarrer avec git
Installation de git
.
root@debian~#: apt install -y git
Cloner un projet dans le répertoire courant.
user@debian~$: git clone https://github.com/stan/projet-bash.git
by Nicolas SHINEY | April 24, 2018 | No Comments | Système | Tags : git versioning
Mise en place de swarm via token
Prérequis : Installer docker et docker-compose.
Environnement
IP | Nom de l’hôte | Rôle |
---|---|---|
172.16.0.10/24 | master.docker.local | Manager |
172.16.0.11/24 | worker-01.docker.local | Nœud client |
172.16.0.12/24 | worker-02.docker.local | Nœud client |
by Nicolas SHINEY | April 20, 2018 | No Comments | Système | Tags : container docker swarn
Mise en place de swarm
: Note : au moment de l’édition de cet article, la gestion de swarn via token est plus simple et est préférée, voir : mise en place de swarm via token.
Prérequis : Installer docker et docker-compose.
Environnement
IP | Nom de l’hôte | Rôle |
---|---|---|
172.16.0.10/24 | master.docker.local | Manager |
172.16.0.11/24 | worker-01.docker.local | Nœud client |
172.16.0.12/24 | worker-02.docker.local | Nœud client |
by Nicolas SHINEY | April 19, 2018 | No Comments | Système | Tags : container docker swarn
Installation de docker-compose
: au moment de l’installation la version docker-compose
est en 1.21.0. Voir la documentation officiel de docker-compose pour avoir la dernière version stable.
: procédure valable fonctionne sous : Debian 9, CentOS 7 et Ubuntu 16.
Téléchargement de docker-compose
.
[root@cent-os ~]#: wget https://github.com/docker/compose/releases/download/1.21.0/docker-compose-$(uname -s)-$(uname -m) -O /tmp/docker-compose
Installation de docker docker-compose
.
[root@cent-os ~]#: mv /tmp/docker-compose /bin/ [root@cent-os ~]#: chmod 755 /bin/docker-compose
by Nicolas SHINEY | April 19, 2018 | No Comments | Système | Tags : container docker docker-compose
Installation de docker-machine
: au moment de l’installation la version docker-machine
est en 0.14.0. Voir la documentation officiel de docker-machine pour avoir la dernière version stable.
: procédure valable fonctionne sous : Debian 9, CentOS 7 et Ubuntu 16.
Téléchargement de docker-machine
.
[root@cent-os ~]#: wget https://github.com/docker/machine/releases/download/v0.14.0/docker-machine-$(uname -s)-$(uname -m) -O /tmp/docker-machine
[root@cent-os ~]#: curl -L $base/docker-machine-$(uname -s)-$(uname -m) > /tmp/docker-machine
Installation de docker machine
.
[root@cent-os ~]#: mv /tmp/docker-machine /bin/ [root@cent-os ~]#: chmod 755 /bin/docker-machine
by Nicolas SHINEY | April 19, 2018 | No Comments | Système | Tags : container docker
Démarrer avec Docker
Liste des commandes courantes
Option | Description |
---|---|
docker build . |
Construit le container à partir de dockerfile présent dans le dossier courant « . » |
by Nicolas SHINEY | April 18, 2018 | No Comments | Système | Tags : container docker
Installation de docker
: procédure valable fonctionne sous : Debian 9, CentOS 7 et Ubuntu 16.
Téléchargement et exécution du script d’installation.
[root@cent-os ~]#: curl -sSL https://get.docker.com/ | sh
Démarrage du service docker
et démarrage au boot.
[root@cent-os ~]#: systemctl enable --now docker
by Nicolas SHINEY | April 17, 2018 | No Comments | Système | Tags : container docker
Installation de VMware Workstation 14 sur CentOS 7
Télécharger VMware sur ce lien : VMware Workstation 14.
Prérequis.
[root@cent-os~]#: yum install -y epel-release kernel-devel kernel-headers dkms gcc
by Nicolas SHINEY | April 16, 2018 | No Comments | Système | Tags : centos centos7 machine virtuel virtualisation
Mise en place de GlusterFS sur CentOS 7
GlusterFS est un système de fichiers réseau évolutif et open-source adapté aux charges de travail intensive en données. Permettant aussi et surtout l’accès concurrent aux ressources de stockage.
Environnement
IP | Nom de l’hôte | Rôle | OS |
---|---|---|---|
172.16.0.10/24 | gluster1.stan.local | Nœud | CentOS 7 |
172.16.0.11/24 | gluster2.stan.local | Nœud | CentOS 7 |
172.16.0.12/24 | client1.stan.local | Client | CentOS 7 |
172.16.0.13/24 | client2.stan.local | Client | CentOS 7 |
by Nicolas SHINEY | April 8, 2018 | No Comments | Système | Tags : centos centos 7 glusterfs HA systeme de fichier
Mise en place de squid CentOS 7
Flusher les règles en cours.
[root@cent-os ~]#: iptables -F
[root@cent-os ~]#: iptables -X
Installation de squid
.
[root@cent-os~]#: yum install -y squid
Démarrage du service squid
.
[root@cent-os~]#: systemctl start squid
by Nicolas SHINEY | April 6, 2018 | No Comments | Système | Tags : centos centos 7 proxy
Mise en place d’un cluster CentOS 7
Environnement
IP | Nom de l’hôte | Rôle | OS |
---|---|---|---|
172.16.0.10/24 | node1.stan.local | Nœud | CentOS 7 |
172.16.0.11/24 | node2.stan.local | Nœud | CentOS 7 |
172.16.0.100/24 | server.stan.local | Serveur de stockage | CentOS 7 |
by Nicolas SHINEY | April 5, 2018 | No Comments | Système | Tags : centos centos 7 cluster HA
Installation de Virtual Box 5.2 sur CentOS 7
Prérequis.
[root@cent-os ~]#: yum install -y epel-release kernel-devel kernel-headers dkms gcc
by Nicolas SHINEY | April 3, 2018 | No Comments | Système | Tags : centos centos 7 virtualisation