Commit 7b323e86 authored by BENOIT JEAN's avatar BENOIT JEAN
Browse files

Outil de deploiement

parent 53270e44
DEST=/local/sbin
NETMAGIS_HOST=nmhost.example.com
NETMAGIS_DATABASE=netmagis
NETMAGIS_USER=nm
NETMAGIS_PW=XXXXXXXXXXX
MAC_HOST=nmhost.example.com
MAC_DATABASE=netmagis-mac
MAC_USER=nm
MAC_PW=XXXXXXXXXXX
LDAPHOST=ldap.example.com
LDAPBINDDN=uid=admin,o=directory
LDAPPASS=XXXXXXXXXX
LDAPBASE=ou=example,o=directory
BLOCKCREATEURL=https://block-create.u-strasbg.fr
BLOCKRUNURL=https://block-run.u-strasbg.fr
SUBST = \
-e 's|%NETMAGIS_HOST%|${NETMAGIS_HOST}|' \
-e 's|%NETMAGIS_DATABASE%|${NETMAGIS_DATABASE}|' \
-e 's|%NETMAGIS_USER%|${NETMAGIS_USER}|' \
-e 's|%NETMAGIS_PW%|${NETMAGIS_PW}|' \
-e 's|%MAC_HOST%|${MAC_HOST}|' \
-e 's|%MAC_DATABASE%|${MAC_DATABASE}|' \
-e 's|%MAC_USER%|${MAC_USER}|' \
-e 's|%MAC_PW%|${MAC_PW}|' \
-e 's|%LDAPBINDDN%|${LDAPBINDDN}|' \
-e 's|%LDAPPASS%|${LDAPPASS}|' \
-e 's|%LDAPBASE%|${LDAPBASE}|' \
-e 's|%LDAPHOST%|${LDAPHOST}|' \
-e 's|%BLOCKCREATEURL%|${BLOCKCREATEURL}|' \
-e 's|%BLOCKRUNURL%|${BLOCKRUNURL}|' \
deploy:
# Utilitaires
cd script ; \
for i in * ; do \
sed ${SUBST} "$$i" > "${DEST}/$$i" ; \
chmod +x "${DEST}/$$i" ; \
done
......@@ -45,7 +45,7 @@ my $dbpass_mac="%MAC_PW%";
our $dbd_mac;
# Acces a l'annuaire
my $ldapurl = '%LDAPHOST';
my $ldapuri = '%LDAPHOST%';
my $ldapbinddn = '%LDAPBINDDN%';
my $ldapbindpw = '%LDAPPASS%';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment