Commit b3384f50 authored by Magnus Lubeck's avatar Magnus Lubeck
Browse files

initial commit

parents
inventories/inventory.vagrant
roles/Graylog2.graylog-ansible-role
roles/KMG.*
roles/elastic.elasticsearch
roles/jdauphant.nginx
[defaults]
roles_path = ./roles
retry_files_enabled = False # Do not create them
filter_plugins = ./plugins/filter
library = /usr/share/ansible:./plugins/library
---
graylog_install_java: False
graylog_install_mongodb: True
#graylog_web_endpoint_uri: "http://{{ ansible_host }}:9000/api/"
graylog_web_endpoint_uri: "http://127.0.0.1:9000/api/"
graylog_install_nginx: True
graylog_password_secret: "{{ vault_graylog_password_secret }}" # generate with: pwgen -s 96 1
graylog_root_password_sha2: "{{ vault_graylog_root_password_sha2 }}" # generate with: echo -n yourpassword | shasum -a 256
es_major_version: "5.x"
es_version: "5.6.10"
es_instance_name: "graylog"
es_scripts: False
es_templates: False
es_version_lock: False
es_heap_size: "1g"
es_enable_xpack: false
es_java_install: false
es_config:
node.name: "graylog"
cluster.name: "graylog"
http.port: 9200
transport.tcp.port: 9300
network.host: "0.0.0.0"
node.data: true
node.master: true
---
vault_graylog_password_secret: "Ci9gzob8YaiAgQrPdAT5v7MgPnp8zCzDwbty1JWAwyQ21Q6N2n2fhu84MVGh41mZKe4al2y5QMAwMVYPmet7IsWjDS5duuKA" # generate with: pwgen -s 96 1
vault_graylog_root_password_sha2: "b03ddf3ca2e714a6548e7495e2a03f5e824eaac9837cd7f159c67b90fb4b7342"
#--- this inventory sets up systems for hybrid vagrant/ansible use
#--- example: soe-v001local ansible_ssh_host=192.168.111.100 vagrant_image=kmggroup/soe-linux-kmg vagrant_ram=512
[vagrant-kitchen]
#ad ansible_ssh_host=192.168.110.99 vagrant_image=mwrock/Windows2012R2 vagrant_ram=2048 vagrant_cpu=2 ansible_user=vagrant ansible_password=vagrant
com-adm ansible_ssh_host=192.168.110.102 vagrant_image=kmggroup/soe-linux-kmg vagrant_ram=512 vagrant_cpu=2
com-nfs ansible_ssh_host=192.168.110.103 vagrant_image=kmggroup/soe-linux-kmg vagrant_ram=512 vagrant_cpu=2
com-client ansible_ssh_host=192.168.110.104 vagrant_image=kmggroup/soe-linux-kmg vagrant_ram=512 vagrant_cpu=2
sonos ansible_ssh_host=192.168.110.105 vagrant_image=kmggroup/soe-linux-kmg vagrant_ram=512 vagrant_cpu=2
graylog ansible_ssh_host=192.168.110.106 vagrant_image=kmggroup/soe-linux-kmg vagrant_ram=1024 vagrant_cpu=2
#--- The ubuntu group automatically inherits from the vagrant-kitchen group
[ubuntu]
com-adm
com-proxy
com-demo
graylog
[ubuntu:children]
[windows]
win
win2
[windows:children]
#=========================================
# The ansible_user=ops will require you to have a base image with
# a user named "ops" for which you have configured access
#=========================================
[ubuntu:vars]
ansible_user=ops
ansible_password=P@ssw0rd
[windows:vars]
ansible_user=windowsOps
#=========================================
#--- The user_management group automatically inherits from the vagrant-kitchen group
#=========================================
[user_management]
[user_management:children]
ubuntu
[soe-linux]
[soe-linux:children]
ubuntu
[soe-windows]
[soe-windows:children]
windows
[ntpmaster]
com-demo
[graylog]
graylog
---
- hosts: graylog
become: true
roles:
- KMG.java
- Graylog2.graylog-ansible-role
tags:
- base
- hosts: graylog
become: true
roles:
- KMG.nginx-proxy
tags:
- nginx
vars:
- proxy_fqdn:
- 'graylog.mydomain.local'
- proxy_protocol: http
- proxy_webRoot: /srv/www/{{proxy_fqdn[0]}}
- proxy_upstream: graylog
- sslKeysPath: "/etc/nginx/ssl/{{proxy_fqdn[0]}}"
- app_hosts: ["localhost"]
- app_port: 9000
- nginx_syslog_capable: false
- appCertmanager: false
- appCertmanager_deployCerts: false
- nginx_extraConfig:
- |
proxy_set_header X-Graylog-Server-URL https://{{proxy_fqdn[0]}}/api;
---
- src: elastic.elasticsearch
version: master
- src: Graylog2.graylog-ansible-role
version: master
#============================
# KMG Group roles
#============================
- src: git+ssh://git@git.kmg.group:2222/ansible/java.git
version: master
name: KMG.java
- src: git+ssh://git@git.kmg.group:2222/ansible/KMG.nginx-proxy.git
version: master
name: KMG.nginx-proxy
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment