logstash for lmacken
This commit is contained in:
parent
f704a39e71
commit
786a47af4a
3 changed files with 61 additions and 0 deletions
11
inventory/host_vars/209.132.184.120
Normal file
11
inventory/host_vars/209.132.184.120
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
instance_type: m1.xlarge
|
||||
image: emi-B8793915
|
||||
keypair: admin
|
||||
security_group: logstash
|
||||
zone: fedoracloud
|
||||
hostbase: logstash-
|
||||
public_ip: 209.132.184.120
|
||||
root_auth_users: lmacken skvdal
|
||||
description: cloud instance for developing/testing logstash
|
||||
volumes: ['-d /dev/vdb vol-CE7C417F']
|
|
@ -313,6 +313,8 @@ virthost-comm01.qa.fedoraproject.org
|
|||
209.132.184.115
|
||||
#elections-dev.cloud.fedoraproject.org
|
||||
209.132.184.116
|
||||
#logstash-dev.cloud.fedoraproject.org
|
||||
209.132.184.120
|
||||
|
||||
[twistedbots]
|
||||
#rhel6 twisted testbot - ticket 3537
|
||||
|
|
48
playbooks/hosts/logstash-dev.cloud.fedoraproject.org.yml
Normal file
48
playbooks/hosts/logstash-dev.cloud.fedoraproject.org.yml
Normal file
|
@ -0,0 +1,48 @@
|
|||
- name: check/create instance
|
||||
hosts: 209.132.184.120
|
||||
user: root
|
||||
gather_facts: False
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- ${private}/vars.yml
|
||||
|
||||
tasks:
|
||||
- include: $tasks/persistent_cloud.yml
|
||||
|
||||
- name: provision instance
|
||||
hosts: 209.132.184.120
|
||||
user: root
|
||||
gather_facts: True
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- ${private}/vars.yml
|
||||
- ${vars}/${ansible_distribution}.yml
|
||||
|
||||
tasks:
|
||||
- include: $tasks/cloud_setup_basic.yml
|
||||
|
||||
- name: mount up disk of persistent storage
|
||||
action: mount name=/srv/persist src='LABEL=logstash01' fstype=ext4 state=mounted
|
||||
|
||||
# open up ports (22, 80, 443)
|
||||
- name: poke holes in the firewall
|
||||
action: command lokkit $item
|
||||
with_items:
|
||||
- --service=ssh
|
||||
- --service=https
|
||||
- --service=http
|
||||
|
||||
# packages needed
|
||||
- name: add packages for repo
|
||||
action: yum state=present name=$item
|
||||
with_items:
|
||||
- rsync
|
||||
- openssh-clients
|
||||
- httpd
|
||||
- httpd-tools
|
||||
- cronie-noanacron
|
||||
|
||||
handlers:
|
||||
- include: $handlers/restart_services.yml
|
Loading…
Add table
Add a link
Reference in a new issue