This commit is contained in:
Kevin Fenzi 2018-03-15 20:11:16 +00:00
parent 4832f6a85c
commit 24ac1f73a8
4 changed files with 57 additions and 0 deletions

View file

@ -71,6 +71,7 @@ respins.fedorainfracloud.org
shumgrepper-dev.fedorainfracloud.org
taiga.fedorainfracloud.org
taigastg.fedorainfracloud.org
telegram-irc.fedorainfracloud.org
testdays.fedorainfracloud.org
twisted-fedora24-1.fedorainfracloud.org
twisted-fedora24-2.fedorainfracloud.org

View file

@ -0,0 +1,18 @@
---
image: "{{ fedora27_x86_64 }}"
instance_type: m1.medium
keypair: fedora-admin-20130801
security_group: ssh-anywhere-persistent,all-icmp-persistent,default
zone: nova
tcp_ports: [22]
inventory_tenant: persistent
inventory_instance_name: telegram-irc
hostbase: telegram-irc
public_ip: 209.132.184.151
root_auth_users: jflory7
description: telegram to irc gateway machine
cloud_networks:
# persistent-net
- net-id: "67b77354-39a4-43de-b007-bb813ac5c35f"

View file

@ -1215,6 +1215,8 @@ elastic-dev.fedorainfracloud.org
# koji simple ci development - ticket 6419
simple-koji-ci-dev.fedorainfracloud.org
simple-koji-ci-prod.fedorainfracloud.org
# telegram-irc bridge machine - ticket 6781
telegram-irc.fedorainfracloud.org
#
# These are in the new cloud

View file

@ -0,0 +1,36 @@
- name: check/create instance
hosts: telegram-irc.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:
- import_tasks: "{{ tasks_path }}/persistent_cloud.yml"
handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml"
- name: setup all the things
hosts: telegram-irc.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
pre_tasks:
- import_tasks: "{{ tasks_path }}/cloud_setup_basic.yml"
- name: set hostname (required by some services, at least postfix need it)
hostname: name="{{inventory_hostname}}"
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
roles:
- basessh