Skip to content

Instantly share code, notes, and snippets.

View tbernacchi's full-sized avatar
💻

Tadeu Bernacchi tbernacchi

💻
  • Cosmópolis
  • 16:16 (UTC -03:00)
View GitHub Profile
# -*- mode: ruby -*-
# # vi: set ft=ruby :
###CONFIGURACOES DOS HOSTS
Vagrant.configure("2") do |config|
#BOX
config.vm.box = "insaneworks/centos7"
config.vm.define "chef1" do |chef1|
---
##INSTALA O REPOSITORIO MariaDB 10.1
- name: Adicionando o repositorio MariaDB 10.1
yum_repository:
name: MariaDB
description: MariaDB repository 10.1
baseurl: http://yum.mariadb.org/10.1/centos7-amd64
gpgkey: https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck: yes
---
##VARIAVEIS
- name: Variaveis
include_vars: /etc/ansible/vars/mariadb.yml
##MARIADB RUNNING
- name: MariaDB running...
service: name=mariadb state=started enabled=true
##INSTALA O MODULO PYTHONDB
---
#SELINUX
- name: Desabilitando o SeLinux
selinux: policy=targeted state=disabled
#FIREWALLD
- name: Desabilitando o firewalld
systemd: name=firewalld state=stopped enabled=no
#TIMEZONE
- name: Ajustando o timezone do sistema
timezone: name=America/Sao_Paulo
version: '2'
services:
db:
image: mysql
restart: always
expose:
- 3306
environment:
MYSQL_ROOT_PASSWORD: teste123
version: '2'
services:
db:
image: "mysql:latest"
restart: always
expose:
- 3306
environment:
MYSQL_ROOT_PASSWORD: teste123
FROM debian
RUN \
echo "deb http://ftp.us.debian.org/debian sid main" >> /etc/apt/sources.list && \
apt-get -y update && \
apt-get install -y wget && \
apt-get install -y apt-utils && \
apt-get install -y openjdk-8-jre && \
apt-get install openssh-client openssh-server -y && \
apt-get install -y uuid-runtime && \
apiVersion: v1
kind: Service
metadata:
name: zabbix-web
labels:
app: zabbix
spec:
ports:
- port: 80
targetPort: 80
@tbernacchi
tbernacchi / iptables_rules.sh
Created May 9, 2018 02:22 — forked from virtualstaticvoid/iptables_rules.sh
25 Most Frequently Used Linux IPTables Rules Examples
# Modify this file accordingly for your specific requirement.
# http://www.thegeekstuff.com
# 1. Delete all existing rules
iptables -F
# 2. Set default chain policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
@tbernacchi
tbernacchi / install_monaco_font.sh
Created November 3, 2018 15:16 — forked from rogerleite/install_monaco_font.sh
Install Monaco font in Linux
#!/bin/bash
#script extraido de: http://paulocassiano.wordpress.com/2008/08/29/deixando-o-gedit-com-a-cara-do-textmate/
#tip for better "resolution" here: http://blog.siverti.com.br/2008/05/22/fonte-monaco-no-ubuntugedit/
cd /usr/share/fonts/truetype/
#TODO: put validation if folder already exists
sudo mkdir ttf-monaco