add rdo.cloud.fedoraproject.org

This commit is contained in:
Seth Vidal 2013-04-15 16:36:49 +00:00
parent ab6d97d044
commit 043f8e55ea
3 changed files with 73 additions and 0 deletions

View file

@ -0,0 +1,11 @@
---
instance_type: m1.large
image: $el6_qcow_id
keypair: fedora-admin
security_group: webserver
zone: nova
hostbase: rdo-
public_ip: 209.132.184.179
root_auth_users: apevec pmyers
description: rdo - red hat distro openstack temp-ish server
volumes: ['-d /dev/vdb vol-00000012']

View file

@ -338,6 +338,9 @@ virthost-comm01.qa.fedoraproject.org
gitlab-dev.cloud.fedoraproject.org
#elections-dev
209.132.184.162
# rdo == red hat distro openstack? something like that
rdo.cloud.fedoraproject.org
[jenkins-slaves]
209.132.184.165

View file

@ -0,0 +1,59 @@
- name: check/create instance
hosts: rdo.cloud.fedoraproject.org
user: root
gather_facts: False
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- ${private}/vars.yml
tasks:
- include: $tasks/persistent_cloud.yml
- include: $tasks/growroot_cloud.yml
- name: provision instance
hosts: rdo.cloud.fedoraproject.org
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
- include: $tasks/postfix_basic.yml
- name: mount up disk of persistent storage
action: mount name=/srv/persist src='LABEL=rdo' 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
# packages needed
- name: add packages
action: yum state=present name=$item
with_items:
- rsync
- openssh-clients
- httpd
- httpd-tools
- cronie-noanacron
# packages needed to be gone
- name: erase packages
action: yum state=absent name=$item
with_items:
- cronie-anacron
- name: startup apache
action: service name=httpd state=started
handlers:
- include: $handlers/restart_services.yml