separate out graphite instance from grafana frontend. It needed more CPU.
Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
parent
10e94b4a99
commit
07ed845c26
3 changed files with 69 additions and 3 deletions
23
inventory/host_vars/graphite.fedorainfracloud.org
Normal file
23
inventory/host_vars/graphite.fedorainfracloud.org
Normal file
|
@ -0,0 +1,23 @@
|
|||
instance_type: m1.large
|
||||
image: "{{ fedora23_x86_64 }}"
|
||||
keypair: fedora-admin-20130801
|
||||
security_group: default,wide-open-persistent
|
||||
zone: nova
|
||||
tcp_ports: [22, 80, 443]
|
||||
custom_rules:
|
||||
- "-A INPUT -p tcp -m tcp --dport 2003 -s 209.132.176.0/20 -j ACCEPT"
|
||||
|
||||
inventory_tenant: persistent
|
||||
inventory_instance_name: graphite
|
||||
hostbase: graphite
|
||||
public_ip: 209.132.184.151
|
||||
root_auth_users: codeblock ralph
|
||||
description: graphite/statsd experimentation (backend)
|
||||
|
||||
volumes:
|
||||
- volume_id: 818172fb-c278-4569-978f-f2822ab2d021
|
||||
device: /dev/vdc
|
||||
|
||||
cloud_networks:
|
||||
# persistent-net
|
||||
- net-id: "67b77354-39a4-43de-b007-bb813ac5c35f"
|
|
@ -24,9 +24,9 @@
|
|||
- base
|
||||
- rkhunter
|
||||
- apache
|
||||
- graphite/graphite
|
||||
- graphite/statsd
|
||||
- graphite/fedmsg2statsd
|
||||
#- graphite/graphite
|
||||
#- graphite/statsd
|
||||
#- graphite/fedmsg2statsd
|
||||
- graphite/grafana
|
||||
|
||||
tasks:
|
||||
|
|
43
playbooks/hosts/graphite.fedorainfracloud.org.yml
Normal file
43
playbooks/hosts/graphite.fedorainfracloud.org.yml
Normal file
|
@ -0,0 +1,43 @@
|
|||
- name: check/create instance
|
||||
hosts: graphite.fedorainfracloud.org
|
||||
gather_facts: False
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- /srv/private/ansible/vars.yml
|
||||
- /srv/web/infra/ansible/vars/fedora-cloud.yml
|
||||
- /srv/private/ansible/files/openstack/passwords.yml
|
||||
|
||||
tasks:
|
||||
- include: "{{ tasks }}/persistent_cloud.yml"
|
||||
|
||||
- name: setup all the things
|
||||
hosts: graphite.fedorainfracloud.org
|
||||
gather_facts: True
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- /srv/private/ansible/vars.yml
|
||||
- /srv/private/ansible/files/openstack/passwords.yml
|
||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||
|
||||
roles:
|
||||
- base
|
||||
- rkhunter
|
||||
- apache
|
||||
- graphite/graphite
|
||||
- graphite/statsd
|
||||
- graphite/fedmsg2statsd
|
||||
|
||||
tasks:
|
||||
- include: "{{ tasks }}/yumrepos.yml"
|
||||
#- include: "{{ tasks }}/2fa_client.yml"
|
||||
- include: "{{ tasks }}/motd.yml"
|
||||
- include: "{{ tasks }}/mod_wsgi.yml"
|
||||
|
||||
handlers:
|
||||
- include: "{{ handlers }}/restart_services.yml"
|
||||
|
||||
pre_tasks:
|
||||
- include: "{{ tasks }}/cloud_setup_basic.yml"
|
||||
- name: set hostname (required by some services, at least postfix need it)
|
||||
hostname: name="{{inventory_hostname}}"
|
Loading…
Add table
Add a link
Reference in a new issue