documentator 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/documentator/templates/en/redis.md +34 -0
- data/lib/documentator/templates/fr/elasticsearch.md +4 -4
- data/lib/documentator/templates/fr/grunt.md +1 -1
- data/lib/documentator/templates/fr/neo4j.md +4 -5
- data/lib/documentator/templates/fr/nodejs.md +38 -0
- data/lib/documentator/templates/fr/postgresql.md +68 -12
- data/lib/documentator/templates/fr/redis.md +32 -0
- data/lib/documentator/templates/fr/zeromq.md +1 -1
- data/lib/documentator/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb646a36cd36840293d199b18b7057c4aa2e6f91
|
4
|
+
data.tar.gz: 029d8d2b1cda5b1691263facf54d12b42b0d8236
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2cfba5891611382740343eee5f76cf4aa1d6565331075465ec3c30460fe1f698709f6075d7cf08ed7d8380ca9b7de4235d57701b78f7965c1188048df016add
|
7
|
+
data.tar.gz: b76beb09ad815d9c78334d7d3aba86bfb1bff0f973e5ddbcfa05c4092fbc67c0d8f2bcc98db175744187a2a60db6dc6b647fffb1c3eacea20fd10103f1af7c4e
|
data/README.md
CHANGED
@@ -0,0 +1,34 @@
|
|
1
|
+
# Redis
|
2
|
+
|
3
|
+
[Redis](http://redis.io/) is an open source, BSD licensed, advanced key-value store. It is
|
4
|
+
often referred to as a data structure server since keys can contain
|
5
|
+
strings, hashes, lists, sets and sorted sets.
|
6
|
+
|
7
|
+
## Install Redis
|
8
|
+
|
9
|
+
### Debian
|
10
|
+
|
11
|
+
As root:
|
12
|
+
|
13
|
+
```shell
|
14
|
+
aptitude install redis-server
|
15
|
+
```
|
16
|
+
|
17
|
+
## Configuration
|
18
|
+
|
19
|
+
The configuration file is located at /etc/redis.redis.conf. The
|
20
|
+
meaning of each configuration variable is documented in the file.
|
21
|
+
|
22
|
+
## Usage
|
23
|
+
|
24
|
+
### Redis shell
|
25
|
+
|
26
|
+
The `redis-cli` command opens a command-line console to a Redis
|
27
|
+
server. All the commands documented on the [Redis documentation
|
28
|
+
page](http://redis.io/commands) are allowed.
|
29
|
+
|
30
|
+
The `INFO` command displays the current state of the Redis server
|
31
|
+
including the memory usage. The `MONITOR` command shows all the
|
32
|
+
operations currently executed on the Redis server.
|
33
|
+
|
34
|
+
|
@@ -82,10 +82,10 @@ $ bin/plugin install karmi/elasticsearch-paramedic
|
|
82
82
|
|
83
83
|
Ces plugins seront accessibles sur les URLs suivantes :
|
84
84
|
|
85
|
-
* http://localhost:9200
|
86
|
-
* http://localhost:9200
|
87
|
-
* http://localhost:9200
|
88
|
-
* http://localhost:9200
|
85
|
+
* http://localhost:9200/\_plugin/head/
|
86
|
+
* http://localhost:9200/\_plugin/inquisitor/
|
87
|
+
* http://localhost:9200/\_plugin/bigdesk/
|
88
|
+
* http://localhost:9200/\_plugin/paramedic/
|
89
89
|
|
90
90
|
|
91
91
|
|
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
[The Market Leader Property Graph Database](http://www.neo4j.org/)
|
4
4
|
|
5
|
-
Une base de données graphe est un système de stockage supportant
|
6
|
-
la persistance des données sous forme de graphe (noeuds, relations) nativement.
|
5
|
+
Une base de données graphe est un système de stockage supportant
|
6
|
+
la persistance des données sous forme de graphe (noeuds, relations) nativement.
|
7
7
|
|
8
8
|
## Installation
|
9
9
|
|
10
|
-
Version
|
10
|
+
Version recommandée stable en édition 'community': 1.8.2
|
11
11
|
|
12
12
|
* Debian
|
13
13
|
|
@@ -15,7 +15,7 @@ Version recommandé stable en édition 'community': 1.8.2
|
|
15
15
|
# start root shell
|
16
16
|
sudo -s
|
17
17
|
# Import our signing key
|
18
|
-
wget -O - http://debian.neo4j.org/neotechnology.gpg.key | apt-key add -
|
18
|
+
wget -O - http://debian.neo4j.org/neotechnology.gpg.key | apt-key add -
|
19
19
|
# Create an Apt sources.list file
|
20
20
|
echo 'deb http://debian.neo4j.org/repo stable/' > /etc/apt/sources.list.d/neo4j.list
|
21
21
|
# Find out about the files in our repository
|
@@ -32,4 +32,3 @@ via Homebrew
|
|
32
32
|
brew update && brew install neo4j
|
33
33
|
neo4j start
|
34
34
|
```
|
35
|
-
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# Nodejs
|
2
|
+
|
3
|
+
[Nodejs](http://nodejs.org/)
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Version recommandée : version majeur pair (ex 0.10.6)
|
8
|
+
Installation sans droit administrateur.
|
9
|
+
|
10
|
+
prérequis :
|
11
|
+
|
12
|
+
* GNU make >= 3.81
|
13
|
+
* python == 2.6 ou 2.7.
|
14
|
+
|
15
|
+
``` shell
|
16
|
+
git clone https://github.com/joyent/node.git
|
17
|
+
cd node
|
18
|
+
git checkout v0.10.6
|
19
|
+
./configure --prefix=$HOME/.node && make -j 3 && make install
|
20
|
+
export PATH=$PATH:$HOME/node/bin
|
21
|
+
```
|
22
|
+
|
23
|
+
ou utiliser les [binaires](http://nodejs.org/download/)
|
24
|
+
|
25
|
+
``` shell
|
26
|
+
wget http://nodejs.org/dist/v0.10.6/node-v0.10.6-linux-x64.tar.gz
|
27
|
+
tar xzvf node-v0.10.6-linux-x64.tar.gz
|
28
|
+
export PATH=$PATH:$HOME/node-v0.10.6-linux-x64/bin
|
29
|
+
```
|
30
|
+
|
31
|
+
Ajouter la derniere ligne à ~/.profile ou ~/.bash_profile ou ~/.bashrc ou ~/.zshenv
|
32
|
+
|
33
|
+
## Utilisation
|
34
|
+
|
35
|
+
``` shell
|
36
|
+
npm --help
|
37
|
+
node --help
|
38
|
+
```
|
@@ -2,37 +2,93 @@
|
|
2
2
|
|
3
3
|
## Installation
|
4
4
|
|
5
|
+
Les exemples ci-dessus prennent comme version de référence la version 9.1, [la
|
6
|
+
version de PostgreSQL la plus récente qui soit disponible dans
|
7
|
+
squeeze-backports](http://packages.debian.org/squeeze-backports/postgresql)
|
8
|
+
|
5
9
|
### Debian
|
6
10
|
|
7
|
-
En tant que root:
|
11
|
+
En tant que root :
|
8
12
|
|
9
13
|
``` bash
|
10
|
-
aptitude install postgresql postgresql-server-dev-9.1 postgresql-client
|
14
|
+
aptitude install postgresql postgresql-server-dev-9.1 postgresql-client postgresql-contrib-9.1
|
11
15
|
libpq-dev
|
12
16
|
```
|
13
17
|
|
14
|
-
|
18
|
+
## Authentification sur une machine de développment
|
15
19
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
```
|
20
|
+
Pour une utilisation en dévelopment, il est généralement beaucoup plus simple
|
21
|
+
de changer les paramètres d'authentification de PostgreSQL pour autoriser tout
|
22
|
+
utilisateur local à se connecter à n'importe quelle base avec n'importe quel
|
23
|
+
rôle (_user_).
|
21
24
|
|
22
|
-
|
23
|
-
|
25
|
+
Pour cela, éditer le fichier `/etc/postgresql/9.?/main/pg_hba.conf` et changez
|
26
|
+
les méthodes `peer` (accès autorisés pour tout utilisateur ayant un nom de
|
27
|
+
compte Unix identique au rôle PG demandé) ou `md5` (password crypté) en `trust`
|
28
|
+
(confiance absolue, aucune vérification de l'identité du user ou de son
|
29
|
+
password)¹.
|
24
30
|
|
25
|
-
|
31
|
+
Cela donne donc, pour la section du fichier concernée :
|
26
32
|
|
27
33
|
```
|
28
34
|
# TYPE DATABASE USER ADDRESS METHOD
|
29
35
|
|
30
36
|
# "local" is for Unix domain socket connections only
|
31
37
|
local all all trust
|
38
|
+
# IPv4 local connections:
|
39
|
+
host all all 127.0.0.1/32 trust
|
40
|
+
# IPv6 local connections:
|
41
|
+
host all all ::1/128 trust
|
32
42
|
```
|
33
43
|
|
34
|
-
|
44
|
+
**Ceci ne doit bien évidemment être fait que pour une utilisation sur une
|
45
|
+
machine individuelle et JAMAIS sur un serveur un tant soit peu exposé.**
|
46
|
+
|
47
|
+
Redémarrer PostgreSQL pour prendre en compte ce changement de configuration :
|
35
48
|
|
36
49
|
``` bash
|
37
50
|
/etc/init.d/postgresql restart
|
38
51
|
```
|
52
|
+
|
53
|
+
|
54
|
+
## Ajout d'un nouvel utilisateur (UTILISATEUR)
|
55
|
+
|
56
|
+
Faire ² :
|
57
|
+
|
58
|
+
```shell
|
59
|
+
# su postgres -c "createuser --createdb --pwprompt UTILISATEUR"
|
60
|
+
```
|
61
|
+
|
62
|
+
Il faudra alors saisir le mot de passe que l'on désire pour l'utilisateur
|
63
|
+
PosgreSQL `map`. Dans le cas d'une installation sur une machine de
|
64
|
+
développment (ou de manière générale, non "sensible"), on peut préférer ne pas
|
65
|
+
préciser de mot de passe. On lancera alors la commande sans le flag _pwprompt_ ² :
|
66
|
+
|
67
|
+
```shell
|
68
|
+
# su postgres -c "createuser --createdb UTILISATEUR"
|
69
|
+
```
|
70
|
+
|
71
|
+
## Gestion des extensions
|
72
|
+
|
73
|
+
Pour pouvoir installer ou supprimer une extension, un utilisateur Postgres doit
|
74
|
+
être doté des droits _superuser_.
|
75
|
+
|
76
|
+
Comme il n'est cependant ni vraiment utile, ni raisonnable de donner ces droits
|
77
|
+
à un utilisateur lambda, le plus simple est d'ajouter l'extension désirée à la
|
78
|
+
base _template1_, qui sert de modèle pour toutes les bases créées. Toute
|
79
|
+
nouvelle base de données créée héritera donc automatiquement de cette
|
80
|
+
extension, via le schéma `pg_catalog`.
|
81
|
+
|
82
|
+
Par exemple, si on veut rajouter l'extension
|
83
|
+
[hstore](http://www.postgresql.org/docs/9.1/static/hstore.html), on peut faire
|
84
|
+
(en tant que root)² :
|
85
|
+
|
86
|
+
```shell
|
87
|
+
# su postgres -c "psql -d template1 -c 'CREATE EXTENSION IF NOT EXISTS hstore'"
|
88
|
+
```
|
89
|
+
|
90
|
+
¹ Voir http://www.postgresql.org/docs/9.1/static/auth-methods.html pour plus
|
91
|
+
de détails
|
92
|
+
² Pour tous les exemples de commandes de type `su postgres -c "psql…`, on peut
|
93
|
+
tout simplement faire un `psql -U postgres -c "…` si on a déjà mis en place une
|
94
|
+
configuration de type "machine de développment" tel que décrite plus haut.
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# Redis
|
2
|
+
|
3
|
+
[Redis](http://redis.io/) est une base de donnée "clé-valeur" améliorée. Elle est capable
|
4
|
+
de stocker des structures de données évoluées comme des chaines, des
|
5
|
+
dictionnaire, des listes, des ensembles et des ensembles ordonnés.
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
### Debian
|
10
|
+
|
11
|
+
En tant que root :
|
12
|
+
|
13
|
+
```shell
|
14
|
+
aptitude install redis-server
|
15
|
+
```
|
16
|
+
|
17
|
+
## Configuration
|
18
|
+
|
19
|
+
Le fichier de configuration de Redis est /etc/redis/redis.conf. Les
|
20
|
+
effets de chaque variables y sont documentés.
|
21
|
+
|
22
|
+
## Utilisation
|
23
|
+
|
24
|
+
### Le shell Redis
|
25
|
+
|
26
|
+
La commande `redis-cli` permet de se connecter à un serveur
|
27
|
+
Redis. Toutes les commandes listées sur la [documentation de
|
28
|
+
Redis](http://redis.io/commands) peuvent être utilisées sur le shell.
|
29
|
+
|
30
|
+
La commande `INFO` permet d'avoir un apercu de l'état du serveur Redis,
|
31
|
+
notamment de la mémoire consommée. La commande `MONITOR` permet de
|
32
|
+
moniter en temps réel les opérations exécuté sur le serveur.
|
data/lib/documentator/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: documentator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- chatgris
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-05-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: boson
|
@@ -44,6 +44,7 @@ files:
|
|
44
44
|
- lib/documentator/bootstrap/Deploy.md
|
45
45
|
- lib/documentator/bootstrap/Environments.md
|
46
46
|
- lib/documentator/bootstrap/Gemfile
|
47
|
+
- lib/documentator/templates/en/redis.md
|
47
48
|
- lib/documentator/templates/en/ruby.md
|
48
49
|
- lib/documentator/templates/fr/beanstalkd.md
|
49
50
|
- lib/documentator/templates/fr/capistrano.md
|
@@ -51,7 +52,9 @@ files:
|
|
51
52
|
- lib/documentator/templates/fr/grunt.md
|
52
53
|
- lib/documentator/templates/fr/mongodb.md
|
53
54
|
- lib/documentator/templates/fr/neo4j.md
|
55
|
+
- lib/documentator/templates/fr/nodejs.md
|
54
56
|
- lib/documentator/templates/fr/postgresql.md
|
57
|
+
- lib/documentator/templates/fr/redis.md
|
55
58
|
- lib/documentator/templates/fr/zeromq.md
|
56
59
|
- lib/documentator/version.rb
|
57
60
|
homepage: https://github.com/AF83/documentator
|