migrate copr-be over to openstack
add growroot_cloud task until we get the initramfs working
This commit is contained in:
parent
15df55973d
commit
be8125b4bd
4 changed files with 38 additions and 2 deletions
11
inventory/host_vars/209.132.184.142
Normal file
11
inventory/host_vars/209.132.184.142
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
instance_type: m1.xlarge
|
||||
image: ami-00000013
|
||||
keypair: admin
|
||||
security_group: webserver
|
||||
zone: nova
|
||||
hostbase: copr-be-
|
||||
public_ip: 209.132.184.142
|
||||
root_auth_users: skvidal bkabrda
|
||||
description: copr dispatcher and repo server
|
||||
volumes: ['-d /dev/vdb vol-00000008', '-d /dev/vdc vol-00000007']
|
|
@ -301,6 +301,8 @@ virthost-comm01.qa.fedoraproject.org
|
|||
209.132.184.116
|
||||
#logstash-dev.cloud.fedoraproject.org
|
||||
209.132.184.120
|
||||
# copr-be on openstack
|
||||
209.132.184.142
|
||||
|
||||
[twistedbots]
|
||||
#rhel6 twisted testbot - ticket 3537
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
- name: check/create instance
|
||||
hosts: 209.132.184.100
|
||||
hosts: 209.132.184.142
|
||||
user: root
|
||||
gather_facts: False
|
||||
|
||||
|
@ -9,9 +9,10 @@
|
|||
|
||||
tasks:
|
||||
- include: $tasks/persistent_cloud.yml
|
||||
- include: $tasks/growroot_cloud.yml
|
||||
|
||||
- name: provision instance
|
||||
hosts: 209.132.184.100
|
||||
hosts: 209.132.184.142
|
||||
user: root
|
||||
gather_facts: True
|
||||
|
||||
|
|
22
tasks/growroot_cloud.yml
Normal file
22
tasks/growroot_cloud.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
- name: add infra repo
|
||||
action: get_url url=http://infrastructure.fedoraproject.org/el/infrastructure.repo dest=/etc/yum.repos.d/
|
||||
|
||||
- name: install cloud-utils
|
||||
action: yum name=cloud-utils state=present
|
||||
|
||||
- name: growpart the second partition (/) to full size
|
||||
action: command growpart /dev/vda 2
|
||||
ignore_errors: true
|
||||
register: growpart
|
||||
|
||||
- name: reboot the box
|
||||
action: command /sbin/reboot
|
||||
when_integer: ${growpart.rc} == 0
|
||||
|
||||
- name: wait for it to come back (should be quick)
|
||||
local_action: wait_for host=${inventory_hostname} port=22 delay=10 timeout=120
|
||||
when_integer: ${growpart.rc} == 0
|
||||
|
||||
- name: resize the /dev/vda 2 fs
|
||||
action: command resize2fs /dev/vda2
|
||||
when_integer: ${growpart.rc} == 0
|
Loading…
Add table
Add a link
Reference in a new issue