Puppet Class: profile::swift::storage::labs

Defined in:
modules/profile/manifests/swift/storage/labs.pp

Overview

SPDX-License-Identifier: Apache-2.0 Create LV needed by swift and instruct udev to symlink it to its expected location to simulate a disk partition.



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'modules/profile/manifests/swift/storage/labs.pp', line 4

class profile::swift::storage::labs {
  include ::lvm

  lvm::logical_volume { 'lv-a1':
    volume_group => 'vd',
    createfs     => false,
    mounted      => false,
    extents      => '80%FREE',
  }

  udev::rule { 'swift_storage_labs':
    content  => "ENV{DM_LV_NAME}==\"lv-a1\", ENV{DM_VG_NAME}==\"vd\", SYMLINK+=\"swift/lv-a1\"\n",
    priority => 57,
    require  => Lvm::Logical_volume['lv-a1'],
  }
}