Setup fedora-bootstrap
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
parent
8f6103ed45
commit
2633d44189
3 changed files with 62 additions and 0 deletions
18
inventory/host_vars/fedora-bootstrap.fedorainfracloud.org
Normal file
18
inventory/host_vars/fedora-bootstrap.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: fedora-bootstrap
|
||||
hostbase: fedora-bootstrap
|
||||
public_ip: 209.132.184.216
|
||||
root_auth_users: jcapik
|
||||
description: Fedora Bootstrap project web
|
||||
|
||||
cloud_networks:
|
||||
# persistent-net
|
||||
- net-id: "67b77354-39a4-43de-b007-bb813ac5c35f"
|
|
@ -970,6 +970,8 @@ faitout.fedorainfracloud.org
|
|||
communityblog.fedorainfracloud.org
|
||||
# Fedora Magazine
|
||||
magazine.fedorainfracloud.org
|
||||
# Fedora Bootstrap VM
|
||||
fedora-bootstrap.fedorainfracloud.org
|
||||
# darkserver development instance
|
||||
darkserver-dev.fedorainfracloud.org
|
||||
# lists development instance
|
||||
|
|
42
playbooks/hosts/fedora-bootstrap.fedorainfracloud.org.yml
Normal file
42
playbooks/hosts/fedora-bootstrap.fedorainfracloud.org.yml
Normal file
|
@ -0,0 +1,42 @@
|
|||
- name: check/create instance
|
||||
hosts: fedora-bootstrap.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: fedora-bootstrap.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}}"
|
||||
|
||||
tasks:
|
||||
- name: add packages
|
||||
yum: state=present name={{ item }}
|
||||
with_items:
|
||||
- httpd
|
||||
- php
|
||||
- php-mysql
|
||||
- mariadb-server
|
||||
- mariadb
|
||||
- mod_ssl
|
||||
- wget
|
||||
- unzip
|
||||
|
||||
- name: enable httpd service
|
||||
service: name=httpd enabled=yes state=started
|
Loading…
Add table
Add a link
Reference in a new issue