mrlesmithjr / ansible-mdadm

60 stars 42 forks source link

Support names that don't match md* #40

Closed jovial closed 8 months ago

jovial commented 11 months ago

I'm wondering if we could support passing --name to create. Interested to here what you think and if we could do that in a backwards compatible way to support something like:

mdadm_arrays:
 - name: 'secondary'
   # Define disk devices to assign to array
   devices:
     - '/dev/sdb'
     - '/dev/sdc'
   # Define filesystem to partition array with
   filesystem: 'ext4'
   # Define the array raid level
   # 0|1|4|5|6|10
   level: '1'
   # Define mountpoint for array device
   mountpoint: '/mnt/md0'
   # Define if array should be present or absent
   state: 'present'

From reading: https://bugzilla.redhat.com/show_bug.cgi?id=606481#c1, this is seems to the recommend way to address a particular raid array.

stale[bot] commented 9 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.