-
-
Save trihoangvo/fb32e38c303b05f01831 to your computer and use it in GitHub Desktop.
vagrant_openstack_format_volumes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# puppet/manifests/control.pp | |
# formats the disk | |
exec { "fdisk": | |
command => "/sbin/fdisk /dev/sdb << EOF | |
n | |
p | |
1 | |
w | |
EOF", | |
unless => "/bin/grep sdb1 /proc/partitions", | |
} | |
# create pv /dev/sdb1 | |
exec { "create_pv_sdb1": | |
command => "/sbin/pvcreate /dev/sdb1", | |
require => Exec["fdisk"], | |
} | |
# create volume group cinder-volumes | |
exec { "create_vg_cinder_volumes": | |
command => "/sbin/vgcreate cinder-volumes /dev/sdb1", | |
require => Exec["create_pv_sdb1"], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment