Hi,
I have below linux script
cre_disk=$(ls /dev/sd[b-z])
for disk in $cre_isk
do
pvcreate $i
done
My understanding from the above code is, it is checking the sdb,sdc..sdz
disk file.
if it exist, then do physical volume creation.
what my requirement is, need to convert the above linux into puppet(lvm
creation).
I know the command for physical volume creation
physical volume{'/dev/sdb':
ensure => 'present'
}
I am not sure how to check the physical disk (cre_disk=$(ls /dev/sd[b-z])).
is there any resource available or puppet would take care without any
resource.
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-dev/6c65ac5e-ab9b-41f3-af14-90bbaebaaf3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.