And actually commit the playbook and host vars too
This commit is contained in:
parent
1efdd15cfe
commit
3ac756bb55
2 changed files with 52 additions and 0 deletions
22
inventory/host_vars/java-deptools.fedorainfracloud.org
Normal file
22
inventory/host_vars/java-deptools.fedorainfracloud.org
Normal file
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
image: "{{ fedora22_x86_64 }}"
|
||||
instance_type: m1.medium
|
||||
keypair: fedora-admin-20130801
|
||||
security_group: ssh-anywhere-persistent,web-80-anywhere-persistent,default,web-443-anywhere-persistent
|
||||
zone: nova
|
||||
tcp_ports: [22, 80, 443]
|
||||
|
||||
inventory_tenant: persistent
|
||||
inventory_instance_name: java-deptools
|
||||
hostbase: java-deptools
|
||||
public_ip: 209.132.184.191
|
||||
root_auth_users: msimacek mizdebsk msrb
|
||||
description: java-deptools application
|
||||
|
||||
volumes:
|
||||
- volume_id: dbe99b89-b93b-4c55-97ee-2c5e4ad3a714
|
||||
device: /dev/vdc
|
||||
|
||||
cloud_networks:
|
||||
# persistent-net
|
||||
- net-id: "67b77354-39a4-43de-b007-bb813ac5c35f"
|
30
playbooks/hosts/java-deptools.fedorainfracloud.org
Normal file
30
playbooks/hosts/java-deptools.fedorainfracloud.org
Normal file
|
@ -0,0 +1,30 @@
|
|||
- name: check/create instance
|
||||
hosts: java-deptools-dev.fedorainfracloud.org
|
||||
user: fedora
|
||||
sudo: True
|
||||
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: java-deptools-dev.fedorainfracloud.org
|
||||
user: fedora
|
||||
sudo: True
|
||||
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}}"
|
Loading…
Add table
Add a link
Reference in a new issue