From f763166d20df8093a645a56764195cde2dfe9b65 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 12 Oct 2015 17:28:44 +0000 Subject: [PATCH] Add insim instance. Ticket 4919 --- .../host_vars/insim.fedorainfracloud.org | 20 ++++++++++++++ inventory/inventory | 2 ++ playbooks/hosts/insim.fedorainfracloud.org | 27 +++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 inventory/host_vars/insim.fedorainfracloud.org create mode 100644 playbooks/hosts/insim.fedorainfracloud.org diff --git a/inventory/host_vars/insim.fedorainfracloud.org b/inventory/host_vars/insim.fedorainfracloud.org new file mode 100644 index 0000000000..641ff3f98d --- /dev/null +++ b/inventory/host_vars/insim.fedorainfracloud.org @@ -0,0 +1,20 @@ +--- +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: insim +hostbase: insim +public_ip: 209.132.184.233 +root_auth_users: mizdebsk +description: fedora insim instance + +cloud_networks: + # persistent-net + - net-id: "67b77354-39a4-43de-b007-bb813ac5c35f" + +freezes: false diff --git a/inventory/inventory b/inventory/inventory index 1b8cb04083..2b432d7983 100644 --- a/inventory/inventory +++ b/inventory/inventory @@ -938,6 +938,8 @@ java-deptools.fedorainfracloud.org developer.fedorainfracloud.org # PDC pdc.fedorainfracloud.org +# insim +insim.fedorainfracloud.org # # These are in the new cloud diff --git a/playbooks/hosts/insim.fedorainfracloud.org b/playbooks/hosts/insim.fedorainfracloud.org new file mode 100644 index 0000000000..7c975bb358 --- /dev/null +++ b/playbooks/hosts/insim.fedorainfracloud.org @@ -0,0 +1,27 @@ +--- +- name: check/create instance + hosts: insim.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_new.yml" + +- name: setup all the things + hosts: insim.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: + - include: "{{ tasks }}/cloud_setup_basic.yml" + - name: set hostname (required by some services, at least postfix need it) + shell: "hostname {{inventory_hostname}}"