Commit e2024fb6db606547e269a2fdceef86c1b2a5f747
1 parent
e9cb352e
Exists in
master
and in
1 other branch
adicionando ldap_register script
Showing
1 changed file
with
43 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,43 @@ |
1 | +#!/bin/bash | |
2 | + | |
3 | +################################################### Configuração ##################################################### | |
4 | + | |
5 | +#1. Endereco para redmine | |
6 | + | |
7 | +ADDRESS_REDMINE="localhost:9080/redmine" | |
8 | + | |
9 | +#2. Endereco para gitlab | |
10 | + | |
11 | +ADDRESS_GITLAB="192.168.1.113:80" | |
12 | + | |
13 | +#3. dados de configuracao ldap | |
14 | + | |
15 | +HOST="localhost" | |
16 | +PORT="389" | |
17 | +USERNAME="cn=admin,dc=sei,dc=com" | |
18 | +BASE="dc=sei,dc=com" | |
19 | +PASSWORD="cfl5OcVJ" | |
20 | + | |
21 | +####################################################################################################################### | |
22 | + | |
23 | +cd /opt | |
24 | +git clone https://github.com/macartur/Ldap-Register.git | |
25 | + | |
26 | +cd Ldap-Register | |
27 | +bundle install | |
28 | +sudo yum install nodejs | |
29 | + | |
30 | +# criar arquivo de configuração ldap | |
31 | +echo "host: ${HOST}" > /opt/Ldap-Register/config/ldap.yml | |
32 | +echo "port: ${PORT} ">> /opt/Ldap-Register/config/ldap.yml | |
33 | +echo "userName: ${USERNAME} " >> /opt/Ldap-Register/config/ldap.yml | |
34 | +echo "password: ${PASSWORD} " >> /opt/Ldap-Register/config/ldap.yml | |
35 | +echo "dc: ${BASE} " >> /opt/Ldap-Register/config/ldap.yml | |
36 | + | |
37 | +# criar arquivo de configuracao referencias | |
38 | + | |
39 | +echo "redmine: ${ADDRESS_REDMINE}" > /opt/Ldap-Register/config/references.yml | |
40 | +echo "gitlab: ${ADDRESS_GITLAB} " >> /opt/Ldap-Register/config/references.yml | |
41 | + | |
42 | +sudo unicorn_rails -c /opt/Ldap-Register/config/unicorn.rb -E production -l 0.0.0.0:3000 -D | |
43 | + | ... | ... |