initial piwik host ansible setup
Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
parent
8591332ca2
commit
e6675ca142
3 changed files with 53 additions and 0 deletions
18
inventory/host_vars/piwik.fedorainfracloud.org
Normal file
18
inventory/host_vars/piwik.fedorainfracloud.org
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
---
|
||||||
|
image: "{{ fedora22_x86_64 }}"
|
||||||
|
instance_type: m1.small
|
||||||
|
keypair: fedora-admin-20130801
|
||||||
|
security_group: ssh-anywhere-persistent,web-80-anywhere-persistent,web-443-anywhere-persistent,default
|
||||||
|
zone: nova
|
||||||
|
tcp_ports: [22, 80, 443]
|
||||||
|
|
||||||
|
inventory_tenant: persistent
|
||||||
|
inventory_instance_name: piwik
|
||||||
|
hostbase: piwik
|
||||||
|
public_ip: 209.132.184.238
|
||||||
|
root_auth_users: codeblock smooge
|
||||||
|
description: piwik testing
|
||||||
|
|
||||||
|
cloud_networks:
|
||||||
|
# persistent-net
|
||||||
|
- net-id: "67b77354-39a4-43de-b007-bb813ac5c35f"
|
|
@ -993,6 +993,8 @@ insim.fedorainfracloud.org
|
||||||
osbs-dev.fedorainfracloud.org
|
osbs-dev.fedorainfracloud.org
|
||||||
# fedimg-dev development instance
|
# fedimg-dev development instance
|
||||||
fedimg-dev.fedorainfracloud.org
|
fedimg-dev.fedorainfracloud.org
|
||||||
|
# piwik testing
|
||||||
|
piwik.fedorainfracloud.org
|
||||||
|
|
||||||
#
|
#
|
||||||
# These are in the new cloud
|
# These are in the new cloud
|
||||||
|
|
33
playbooks/hosts/piwik.fedorainfracloud.org.yml
Normal file
33
playbooks/hosts/piwik.fedorainfracloud.org.yml
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
- name: check/create instance
|
||||||
|
hosts: piwik.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: piwik.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:
|
||||||
|
- sudo
|
||||||
|
- hosts
|
||||||
|
- apache
|
||||||
|
- base
|
||||||
|
- piwik
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- include: "{{ tasks }}/cloud_setup_basic.yml"
|
||||||
|
- name: set hostname (required by some services, at least postfix need it)
|
||||||
|
shell: "hostname {{inventory_hostname}}"
|
Loading…
Add table
Add a link
Reference in a new issue