From 177cbb7d92a7643581774ef4f2fe905770bed398 Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Tue, 27 Nov 2012 19:47:19 +0000 Subject: [PATCH] copr-fe server --- inventory/host_vars/209.132.184.114 | 11 ++++++ inventory/inventory | 2 + .../hosts/copr-fe.cloud.fedoraproject.org.yml | 39 +++++++++++++++++++ 3 files changed, 52 insertions(+) create mode 100644 inventory/host_vars/209.132.184.114 create mode 100644 playbooks/hosts/copr-fe.cloud.fedoraproject.org.yml diff --git a/inventory/host_vars/209.132.184.114 b/inventory/host_vars/209.132.184.114 new file mode 100644 index 0000000000..3e2f77dadb --- /dev/null +++ b/inventory/host_vars/209.132.184.114 @@ -0,0 +1,11 @@ +--- +instance_type: m1.large +image: emi-B8793915 +keypair: admin +security_group: webserver +zone: fedoracloud +hostbase: copr-fe- +public_ip: 209.132.184.114 +root_auth_users: skvidal bkabrda +description: copr frontend server +volumes: ['-d /dev/vdb vol-25FC4013'] diff --git a/inventory/inventory b/inventory/inventory index 751df363cd..0b894b069c 100644 --- a/inventory/inventory +++ b/inventory/inventory @@ -299,6 +299,8 @@ virthost-comm01.qa.fedoraproject.org 209.132.184.100 #fedocal.dev.fedoraproject.org 209.132.184.113 +#copr-fe.cloud.fedoraproject.org +209.132.184.114 [twistedbots] #rhel6 twisted testbot - ticket 3537 diff --git a/playbooks/hosts/copr-fe.cloud.fedoraproject.org.yml b/playbooks/hosts/copr-fe.cloud.fedoraproject.org.yml new file mode 100644 index 0000000000..857dd37a3c --- /dev/null +++ b/playbooks/hosts/copr-fe.cloud.fedoraproject.org.yml @@ -0,0 +1,39 @@ +- name: check/create instance + hosts: 209.132.184.114 + 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.114 + 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 copr fe + action: mount name=/srv/copr-fe src='LABEL=copr-fe' 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 + + + + handlers: + - include: $handlers/restart_services.yml