Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

beegfs::client: Add configuration for autobuild functionality. #7

Merged
merged 1 commit into from
Jul 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions manifests/client.pp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
$mgmtd_udp_port = 8008,
$major_version = $beegfs::major_version,
$kernel_packages = $beegfs::params::kernel_packages,
$autobuild = true,
$autobuild_args = '-j8',
) inherits beegfs {

require ::beegfs::install
Expand Down Expand Up @@ -58,6 +60,20 @@
content => template("beegfs/${major_version}/beegfs-client.conf.erb"),
}

file { '/etc/beegfs/beegfs-client-autobuild.conf':
ensure => present,
owner => $user,
group => $group,
mode => '0644',
content => template("beegfs/${major_version}/beegfs-client-autobuild.conf.erb"),
}

exec { '/etc/init.d/beegfs-client rebuild':
path => ['/usr/bin', '/usr/sbin'],
subscribe => File['/etc/beegfs/beegfs-client-autobuild.conf'],
refreshonly => true,
}

package { 'beegfs-helperd':
ensure => $package_ensure,
}
Expand Down Expand Up @@ -93,6 +109,9 @@
],
subscribe => [
Concat['/etc/beegfs/beegfs-mounts.conf'],
File['/etc/beegfs/beegfs-client.conf'],
File['/etc/beegfs/beegfs-helperd.conf'],
Exec['/etc/init.d/beegfs-client rebuild'],
File[$interfaces_file],
],
}
Expand Down
69 changes: 69 additions & 0 deletions templates/6/beegfs-client-autobuild.conf.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# This is a config file for the automatic build process of BeeGFS client kernel
# modules.
# http://www.beegfs.com


#
# --- Section: [Notes] ---
#

# General Notes
# =============
# To force a rebuild of the client modules:
# $ /etc/init.d/beegfs-client rebuild
#
# To see a list of available build arguments:
# $ make help -C /opt/beegfs/src/client/beegfs_client_module_${BEEGFS_MAJOR_VERSION}/build
#
# Help example for BeeGFS 2015.03 release:
# $ make help -C /opt/beegfs/src/client/beegfs_client_module_2015.03/build


# RDMA Support Notes
# ==================
# If you want to build BeeGFS with RDMA support based on ibverbs for InfiniBand,
# RDMA over converged Ethernet (RoCE) or Omni-Path, add
# "BEEGFS_OPENTK_IBVERBS=1" to the "buildArgs" below.
#
# If you installed InfiniBand kernel modules from OpenFabrics OFED, then also
# define the correspsonding header include path by adding
# "OFED_INCLUDE_PATH=<path>" to the "buildArgs", where <path> usually is
# "/usr/src/openib/include" or "/usr/src/ofa_kernel/default/include" for
# Mellanox OFED.


#
# --- Section: [Build Settings] ---
#

# Build Settings
# ==============
# These are the arguments for the client module "make" command.
#
# Note: Quotation marks and equal signs can be used without escape characters
# here.
#
# Example1:
# buildArgs=-j8 BEEGFS_OPENTK_IBVERBS=1
#
# Example2 (see "RDMA Support Notes" above):
# buildArgs=-j8 BEEGFS_OPENTK_IBVERBS=1 OFED_INCLUDE_PATH=/usr/src/openib/include
#
# Default:
# buildArgs=-j8

buildArgs=<%= @autobuild_args %>


# Turn Autobuild on/off
# =====================
# Controls whether modules will be built on "/etc/init.d/beegfs-client start".
#
# Note that even if autobuild is enabled here, the modules will only be built
# if no beegfs kernel module for the current kernel version exists in
# "/lib/modules/<kernel_version>/updates/".
#
# Default:
# buildEnabled=true

buildEnabled=<%= @autobuild %>