new fedocal-dev playbook to port to openstack
This commit is contained in:
parent
9035f79db8
commit
fcdcc25f68
2 changed files with 19 additions and 14 deletions
|
@ -312,7 +312,7 @@ virthost-comm01.qa.fedoraproject.org
|
|||
|
||||
[persistent-cloud]
|
||||
#fedocal.dev.fedoraproject.org
|
||||
209.132.184.113
|
||||
209.132.184.147
|
||||
#copr-fe.cloud.fedoraproject.org
|
||||
209.132.184.144
|
||||
#artboard.cloud.fedoraproject.org
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
- name: check/create instance
|
||||
hosts: 209.132.184.113
|
||||
hosts: 209.132.184.147
|
||||
user: root
|
||||
gather_facts: False
|
||||
|
||||
|
@ -9,11 +9,15 @@
|
|||
|
||||
tasks:
|
||||
- include: $tasks/persistent_cloud.yml
|
||||
- include: $tasks/growroot_cloud.yml
|
||||
|
||||
- name: provision instance
|
||||
hosts: 209.132.184.113
|
||||
hosts: 209.132.184.147
|
||||
user: root
|
||||
gather_facts: True
|
||||
vars:
|
||||
- tcp_ports: [22, 80, 443]
|
||||
- udp_ports: []
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
|
@ -24,17 +28,6 @@
|
|||
- include: $tasks/cloud_setup_basic.yml
|
||||
- include: $tasks/postfix_basic.yml
|
||||
|
||||
- name: mount up disk of fedocal persistent storage
|
||||
action: mount name=/srv/persist src='LABEL=fedocal.dev' fstype=ext4 state=mounted
|
||||
|
||||
# open up ports (22, 80, 443)
|
||||
- name: poke holes in the firewall
|
||||
action: command lokkit $item
|
||||
with_items:
|
||||
- --service=ssh
|
||||
- --service=https
|
||||
- --service=http
|
||||
|
||||
# packages needed
|
||||
- name: add packages for repo
|
||||
action: yum state=present name=$item
|
||||
|
@ -43,5 +36,17 @@
|
|||
- rsync
|
||||
- openssh-clients
|
||||
|
||||
- name: mount up disk of fedocal persistent storage
|
||||
action: mount name=/srv/persist src='LABEL=fedocal.dev' fstype=ext4 state=mounted
|
||||
|
||||
# open up tcp ports (22, 80, 443)
|
||||
#- name: poke holes in the firewall
|
||||
# action: command
|
||||
# with_items:
|
||||
# - --service=ssh
|
||||
# - --service=https
|
||||
# - --service=http
|
||||
|
||||
|
||||
handlers:
|
||||
- include: $handlers/restart_services.yml
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue