Add fedimg-dev cloud instance. Ticket 5116

This commit is contained in:
Kevin Fenzi 2016-02-23 15:42:10 +00:00
parent 5c246f5ffd
commit 04f7eef633
3 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,17 @@
instance_type: m1.medium
image: rhel7-20141015
keypair: fedora-admin-20130801
security_group: default,wide-open-persistent
zone: nova
tcp_ports: [22, 80, 443]
inventory_tenant: persistent
inventory_instance_name: fedimg-dev
hostbase: fedimg-dev
public_ip: 209.132.184.106
root_auth_users: sayanchowdhury
description: fedimg development instance
cloud_networks:
# persistent-net
- net-id: "67b77354-39a4-43de-b007-bb813ac5c35f"

View file

@ -132,6 +132,7 @@
#- include: /srv/web/infra/ansible/playbooks/hosts/fed-cloud09.cloud.fedoraproject.org.yml
- include: /srv/web/infra/ansible/playbooks/hosts/faitout.fedorainfracloud.org.yml
- include: /srv/web/infra/ansible/playbooks/hosts/fedora-bootstrap.fedorainfracloud.org.yml
- include: /srv/web/infra/ansible/playbooks/hosts/fedimg-dev.fedorainfracloud.org.yml
- include: /srv/web/infra/ansible/playbooks/hosts/glittergallery-dev.fedorainfracloud.org.yml
- include: /srv/web/infra/ansible/playbooks/hosts/grafana.cloud.fedoraproject.org.yml
- include: /srv/web/infra/ansible/playbooks/hosts/insim.fedorainfracloud.org.yml

View file

@ -0,0 +1,36 @@
- name: check/create instance
hosts: fedimg-dev.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: fedimg-dev.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:
- rkhunter
tasks:
- include: "{{ tasks }}/yumrepos.yml"
- include: "{{ tasks }}/motd.yml"
handlers:
- include: "{{ handlers }}/restart_services.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}}"