This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Docker Zabbix 3.2 | |
# create /var/lib/mysql as persistent volume storage | |
docker run -d -v /var/lib/mysql --name zabbix-db-storage busybox:latest | |
# Criando Contaners Banco de Dados | |
docker run \ | |
-d \ | |
--name zabbix-db \ | |
--env="MARIADB_USER=zabbix" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuração Servidor | |
Username: user-jira@fabio.com.br | |
Base DN: DC=fabio,DC=com,DC=br | |
# Filtro por Usuários por grupo | |
User Object Class: user | |
User Object Filter: (&(objectCategory=Person)(sAMAccountName=*)(&(memberOf=CN=GG_JIRA_USERS,OU=Jira_hml,OU=Diversos,OU=Grupos,DC=fabio,DC=com,DC=br))) | |
User Name Attribute: sAMAccountName | |
# Filtro avançado por grupo no AD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Proxy User Bypass | |
After=syslog.target e2guardian.service | |
[Service] | |
WorkingDirectory=/etc/scripts/e2g/ | |
ExecStart=/bin/java -jar proxy-user-bypass.jar --spring.config.location=/etc/scripts/e2g/proxy-user-bypass.properties | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Comando para gerar chave por usuario | |
ssh-keygen -t rsa -b 2048 -v -f keyname | |
# Comando para copia entre o servidores | |
ssh-copy-id -i keyname.pub username@servidor.exemplo.local | |
# Sincroniza aruivos sem pedir senha | |
rsync -avz -e "ssh -i /homeuser/.ssh/keyname" username@servidor_ou_ip:/origem/ /destino | |
# Sincroniza arquivos excluindo tudo que iniciar com . (Arquivos ocultos) sem pedir senha |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for file in *_f2; do mv "$file" "${file/_f2/_f1}" ; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
delete from ofMessageArchive where fromJID like 'user%'; | |
delete from ofMessageArchive where toJID like 'user%'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ip addr add 172.16.22.1/16 dev eth0 | |
ip route add default via 192.168.1.254 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Extende disco que faz parte do VG em ambos servidores | |
pvresize /dev/sdb | |
2) Extende LV em ambos servidores | |
lvextend -L+5G /dev/vg00/drbd | |
3) Executar o comando drbdadm resize onde esta executando o node primario no resource ex: r0 (Obs:. Aguardar o sync dos disco em ambos os nodes.) | |
drbdadm resize r0 | |
4) Finalmente depois de terminar a sincronização, no mesmo nó principal redimensionar o dispositivo. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) - Criar arquivo bonding.conf | |
# cat > /etc/modprobe.d/bonding.conf << EOF | |
alias bond0 bonding | |
EOF | |
2) - Criar arquivo ifcfg-bond0 | |
# cat > /etc/sysconfig/network-scripts/ifcfg-bond0 << EOF | |
vim /etc/sysconfig/network-scripts/ifcfg-bond0 | |
DEVICE=bond0 | |
NM_CONTROLLED=no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%# | |
name: Kickstart default finish CentOS7 | |
snippet: false | |
model: ProvisioningTemplate | |
kind: finish | |
oses: | |
- CentOS | |
%> | |
<%# | |
This template accepts the following parameters: |
OlderNewer