Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Crans Passwords
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
Crans Passwords
Commits
6377ccb9
Commit
6377ccb9
authored
Jun 03, 2015
by
Daniel STAN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tudor: màj fichiers conf perso
parent
e1eaad38
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
6 deletions
+32
-6
clientconfigs/tudor/clientconfig.py
clientconfigs/tudor/clientconfig.py
+17
-2
serverconfigs/tudor/.gitignore
serverconfigs/tudor/.gitignore
+0
-1
serverconfigs/tudor/cpasswords-server
serverconfigs/tudor/cpasswords-server
+12
-0
serverconfigs/tudor/serverconfig.py
serverconfigs/tudor/serverconfig.py
+3
-3
No files found.
clientconfigs/tudor/clientconfig.py
View file @
6377ccb9
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
""" Configuration du client cranspasswords """
import
os
#: Liste des serveurs sur lesquels ont peut récupérer des mots de passe.
#:
#: Sans précision du paramètre --server, la clé ``'default'`` sera utilisée.
#:
#: * ``'server_cmd'`` : La commande exécutée sur le client pour appeler
#: le script sur le serveur distant.
servers
=
{
'default'
:
{
'server_cmd'
:
[
'/home/dstan/cranspasswords/serverconfigs/tudor/cpasswords-server'
,
],
'keep-alive'
:
True
,
# <-- experimental, n'ouvre qu'une connexion
}
'keep-alive'
:
True
,
},
'gladys'
:
{
'server_cmd'
:
[
'/usr/bin/ssh'
,
'home.b2moo.fr'
,
'/home/dstan/cranspasswords/serverconfigs/tudor/cpasswords-server'
,
],
'keep-alive'
:
True
,
},
}
serverconfigs/tudor/.gitignore
deleted
100644 → 0
View file @
e1eaad38
cpasswords-server
serverconfigs/tudor/cpasswords-server
0 → 100755
View file @
6377ccb9
#!/bin/bash
# Où trouver le paquet python
PKG_DIR
=
~/cranspasswords
# Où trouver la conf serveur
CONF
=
$PKG_DIR
/serverconfigs/tudor
# Binaire python
PYTHON
=
/usr/bin/python
/usr/bin/env
PYTHONPATH
=
$PKG_DIR
CRANSPASSWORDS_SERVER_CONFIG_DIR
=
$CONF
$PYTHON
$PKG_DIR
/cpasswords/server.py
"
$@
"
serverconfigs/tudor/serverconfig.py
View file @
6377ccb9
...
...
@@ -30,10 +30,10 @@ KEYS = {
}
ME
=
[
u
'dstan'
]
_
ME
=
[
u
'dstan'
]
#: Les roles utilisés pour savoir qui a le droit le lire/écrire quoi
ROLES
=
{
'moi'
:
ME
,
'moi-w'
:
ME
,
'moi'
:
_
ME
,
'moi-w'
:
_
ME
,
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment