Add playbook for magazine.fedorainfracloud.org
This commit is contained in:
parent
61f3eeb1ee
commit
19ffcf5656
3 changed files with 45 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
image: rhel7-20141015
|
image: rhel7-20141015
|
||||||
instance_type: m1.medium
|
instance_type: m1.medium
|
||||||
keypair: fedora-admin-20130801
|
keypair: fedora-admin-20130801
|
||||||
security_group: ssh-anywhere-persistent,web-80-anywhere-persistent,default
|
security_group: ssh-anywhere-persistent,web-80-anywhere-persistent,web-443-anywhere-persistent,default
|
||||||
zone: nova
|
zone: nova
|
||||||
tcp_ports: [22, 80, 443]
|
tcp_ports: [22, 80, 443]
|
||||||
|
|
||||||
|
|
18
inventory/host_vars/magazine.fedorainfracloud.org
Normal file
18
inventory/host_vars/magazine.fedorainfracloud.org
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
---
|
||||||
|
image: rhel7-20141015
|
||||||
|
instance_type: m1.large
|
||||||
|
keypair: fedora-admin-20130801
|
||||||
|
security_group: ssh-anywhere-persistent,web-80-anywhere-persistent,web-443-anywhere-persistent,default
|
||||||
|
zone: nova
|
||||||
|
tcp_ports: [22, 80, 443]
|
||||||
|
|
||||||
|
inventory_tenant: persistent
|
||||||
|
inventory_instance_name: magazine
|
||||||
|
hostbase: magazine
|
||||||
|
public_ip: 209.132.184.123
|
||||||
|
root_auth_users: nb chrisroberts
|
||||||
|
description: Fedora Magazine
|
||||||
|
|
||||||
|
cloud_networks:
|
||||||
|
# persistent-net
|
||||||
|
- net-id: "67b77354-39a4-43de-b007-bb813ac5c35f"
|
26
playbooks/hosts/magazine.fedorainfracloud.org.yml
Normal file
26
playbooks/hosts/magazine.fedorainfracloud.org.yml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
- name: check/create instance
|
||||||
|
hosts: magazine.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_new.yml"
|
||||||
|
|
||||||
|
- name: setup all the things
|
||||||
|
hosts: magazine.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:
|
||||||
|
- 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