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
# -*- 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| |
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
--- | |
##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 |
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
--- | |
##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 |
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
--- | |
#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 |
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
version: '2' | |
services: | |
db: | |
image: mysql | |
restart: always | |
expose: | |
- 3306 | |
environment: | |
MYSQL_ROOT_PASSWORD: teste123 |
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
version: '2' | |
services: | |
db: | |
image: "mysql:latest" | |
restart: always | |
expose: | |
- 3306 | |
environment: | |
MYSQL_ROOT_PASSWORD: teste123 |
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
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 && \ |
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: zabbix-web | |
labels: | |
app: zabbix | |
spec: | |
ports: | |
- port: 80 | |
targetPort: 80 |
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
# 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 |
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
#!/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 |
OlderNewer