Lustre client puppet manifest

From Wiki
Jump to: navigation, search
yumrepo { 'lustre-client':
    ensure   => present,
    descr    => 'Lustre client repo',
    baseurl  => 'https://downloads.hpdd.intel.com/public/lustre/lustre-2.8.0/el7/client',
    gpgcheck => false,
    enabled  => true,
} ->

package { 'lustre-client':
    ensure => installed,
}

$lnet_iface='eno16777984'

file { '/etc/modprobe.d/lnet.conf':
        ensure  => file,
        mode    => '0644',
        owner   => 'root',
        group   => 'root',
        content => "options lnet networks=tcp1(${lnet_iface})\n",
}

file { '/var/mnt/lustre':
    ensure => directory,
} ->

mount { '/var/mnt/lustre':
    ensure => mounted,
    device => '10.201.67.2@tcp1:/lustre',
    fstype => 'lustre',
    options => 'rw,context=system_u:object_r:nfs_t:s0,lazystatfs,_netdev',
}
    

firewall { '101 accept lustre traffic':
    iniface => $lnet_iface,
    proto   => tcp,
    dport   => 988,
    action  => accept,
}