Add a test persistent host

This commit is contained in:
Toshio くらとみ 2012-11-06 18:00:07 +00:00
parent 537e8f533e
commit 7a34249e3f
3 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,9 @@
instance_type: m1.large
image: emi-B8793915
keypair: admin
security_group: webserver
zone: fedoracloud
hostbase: hostname_base-
public_ip: 192.168.3.113
root_auth_users: skvidal toshio
description: test instance, delete at will

View file

@ -297,3 +297,4 @@ virthost-comm01.qa.fedoraproject.org
209.132.184.100
209.132.184.111
209.132.184.112
209.132.184.113

View file

@ -0,0 +1,28 @@
- name: check/create instance
hosts: 209.132.184.113
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.113
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
# fill in other actions/includes/etc here
handlers:
- include: $handlers/restart_services.yml