dedicate whole vg_guests to /var/lib/nova
This commit is contained in:
parent
565ddc4263
commit
bec235e4cb
1 changed files with 16 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue