happinesspackets dev instance on fic, infra #6690
Signed-off-by: Rick Elrod <relrod@redhat.com>
This commit is contained in:
parent
46f60fd676
commit
3d1a30137a
2 changed files with 59 additions and 0 deletions
19
inventory/host_vars/happinesspackets.fedorainfracloud.org
Normal file
19
inventory/host_vars/happinesspackets.fedorainfracloud.org
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
---
|
||||||
|
image: CentOS-7-x86_64-GenericCloud-1503
|
||||||
|
instance_type: m1.medium
|
||||||
|
keypair: fedora-admin-20130801
|
||||||
|
security_group: ssh-anywhere-persistent,all-icmp-persistent,default
|
||||||
|
zone: nova
|
||||||
|
tcp_ports: [22,80,443]
|
||||||
|
|
||||||
|
inventory_tenant: persistent
|
||||||
|
inventory_instance_name: happinesspackets
|
||||||
|
hostbase: happinesspackets
|
||||||
|
public_ip: 209.132.184.58
|
||||||
|
root_auth_users: jonatoni algogator jflory7 bee2502
|
||||||
|
description: happinesspackets dev, infra ticket 6690
|
||||||
|
|
||||||
|
cloud_networks:
|
||||||
|
# persistent-net
|
||||||
|
- net-id: "67b77354-39a4-43de-b007-bb813ac5c35f"
|
||||||
|
|
40
playbooks/hosts/happinesspackets.fedorainfracloud.org.yml
Normal file
40
playbooks/hosts/happinesspackets.fedorainfracloud.org.yml
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
- name: check/create instance
|
||||||
|
hosts: happinesspackets.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:
|
||||||
|
- import_tasks: "{{ tasks_path }}/persistent_cloud.yml"
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||||
|
|
||||||
|
|
||||||
|
- name: setup all the things
|
||||||
|
hosts: happinesspackets.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
|
||||||
|
|
||||||
|
pre_tasks:
|
||||||
|
- import_tasks: "{{ tasks_path }}/cloud_setup_basic.yml"
|
||||||
|
|
||||||
|
- name: set hostname (required by some services, at least postfix need it)
|
||||||
|
hostname: name="{{inventory_hostname}}"
|
||||||
|
|
||||||
|
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- basessh
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue