Skip to content

hitme/ansible-playbook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Playbooks

Some ansible roles tested on CentOS Linux release 7.2.1511. Ansible yaml files are edited using vim with vim-ansible-yaml plugin.

IP address assignments

seqhostnameip
1filesrv172.16.10.50
2test81172.16.10.81
3test82172.16.10.82
4test83172.16.10.83
5test88172.16.10.88
6test89172.16.10.89
7test172.16.10.90

Roles of host

seqtest81test82test83test88test89
1commoncommoncommoncommoncommon
2keepalivedkeepalived
3lvslvs
4haproxyhaproxy
5nginxnginx
6jdkjdkjdk
7tomcattomcattomcat
8lvsreallvsreallvsreal
9galera(sqlnode)galera(sqlnode)galera(arbitrator)
10elasticelasticelastic
11logstash
12KIBANA
13zkzkzk
14node_exporternode_exporternode_exporternode_exporternode_exporter
15haproxy_exporterhaproxy_exporter
16mysqld_exportermysqld_exporter
17prometheus
18zabbix-agentzabbix-agentzabbix-agent
19bindbindbind
20redis-sentinel-clusterredis-sentinel-clusterredis-sentinel-cluster

cisco router

  • r1

Log

  • [2016-09-28] role redis-sentinel-cluster: setup redis one master and two slaves, each node also run sentinel
  • [2016-07-20] role bind: setup bind name server with one primary and two slaves
  • [2016-07-20] role zabbix-agent: setup zabbix agent on linux
  • [2016-07-11] role prometheus: setup prometheus server
  • [2016-07-11] role mysqld_exporter: setup prometheus mysqld_exporter for monitoring mysqld metrics
  • [2016-07-11] role haproxy_exporter: setup prometheus haproxy_exporter for monitoring haproxy metrics
  • [2016-07-11] role node_exporter: setup prometheus node_exporter for monitoring system metrics
  • [2016-06-15] role zk: setup zookeeper with 3 nodes
  • [2016-05-29] role cisco_ios: config cisco router with ios_config or ios_template
  • [2016-05-24] role kibana: setup kibana on single node
  • [2016-05-24] role logstash: setup logstash on single node
  • [2016-05-23] role elastic: setup elastic cluster with 3 nodes
  • [2016-05-17] role mariadb-galera-cluster: setup with two sql nodes and one arbitrator
  • [2016-05-16] role nginx: install and setup basic for reverse proxy
  • [2016-05-16] role lvsreal: setup lvs DR mode on real server
  • [2016-05-16] role lvs: setup lvs DR mode on load balancer
  • [2016-05-12] role haproxy: install haproxy software load balancer
  • [2016-05-12] role keepalived: install keepalived high-availability routing software which often work together with lvs, haproxy or nginx
  • [2016-05-12] role tomcat: install tomcat which depends on role jdk
  • [2016-05-11] role jdk: install java jdk using rpm and set envrionment variable
  • [2016-05-11] role common: baseline configuration for all nodes

About

ansible playbook examples

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 60.9%
  • Python 39.1%