From bec235e4cb64bb0583774738e64cecc8b98f7b8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Fri, 3 Apr 2015 11:07:40 +0000 Subject: [PATCH] dedicate whole vg_guests to /var/lib/nova --- roles/cloud_compute/tasks/main.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/roles/cloud_compute/tasks/main.yml b/roles/cloud_compute/tasks/main.yml index 3ee83d0be2..f9c99bf211 100644 --- a/roles/cloud_compute/tasks/main.yml +++ b/roles/cloud_compute/tasks/main.yml @@ -17,14 +17,27 @@ notify: - restart network +- yum: state=present name=https://repos.fedorapeople.org/repos/openstack/openstack-icehouse/rdo-release-icehouse-4.noarch.rpm +- yum: state=present pkg=openstack-nova-common +- name: create logical volume for ephemeral storage + lvol: vg=vg_guests lv=nova size=100%FREE +- filesystem: fstype=ext4 dev=/dev/mapper/vg_guests-nova +- mount: name=/var/lib/nova src=/dev/mapper/vg_guests-nova fstype=ext4 state=present +- file: path=/var/lib/nova/{{item}} owner=nova group=nova mode=0644 state=directory + with_items: + - buckets + - images + - instances + - keys + - networks + - tmp + - name: add cert to ca-bundle.crt so plain curl works copy: src={{ private }}/files/openstack/fed-cloud09.pem dest=/etc/pki/ca-trust/source/anchors/ mode=600 owner=root group=root notify: - update ca-trust - meta: flush_handlers -- yum: state=present name=https://repos.fedorapeople.org/repos/openstack/openstack-icehouse/rdo-release-icehouse-4.noarch.rpm - # http://docs.openstack.org/icehouse/install-guide/install/yum/content/nova-compute.html - name: install the Compute packages necessary for the controller node. action: yum state=present pkg={{ item }} @@ -116,10 +129,7 @@ notify: - restart openstack-nova-compute - name: set up storage for ephemeral disks - ini_file: dest=/etc/nova/nova.conf section=libvirt option=images_type value=lvm - notify: - - restart openstack-nova-compute -- ini_file: dest=/etc/nova/nova.conf section=libvirt option=images_volume_group value=vg_guests + ini_file: dest=/etc/nova/nova.conf section=libvirt option=images_type state=absent notify: - restart openstack-nova-compute