All Projects → voxpupuli → puppet-kmod

voxpupuli / puppet-kmod

Licence: Apache-2.0 license
manage kernel module with puppet

Programming Languages

ruby
36898 projects - #4 most used programming language
Puppet
460 projects
Dockerfile
14818 projects
shell
77523 projects

Projects that are alternatives of or similar to puppet-kmod

puppet-elasticsearch
Elasticsearch Puppet module
Stars: ✭ 406 (+2155.56%)
Mutual labels:  puppet, linux-puppet-module, ubuntu-puppet-module, centos-puppet-module, debian-puppet-module, oraclelinux-puppet-module, redhat-puppet-module, sles-puppet-module
puppet-logstash
Puppet module to manage Logstash
Stars: ✭ 193 (+972.22%)
Mutual labels:  puppet, linux-puppet-module, ubuntu-puppet-module, centos-puppet-module, debian-puppet-module, oraclelinux-puppet-module, redhat-puppet-module
puppet-prometheus
Puppet module for prometheus
Stars: ✭ 56 (+211.11%)
Mutual labels:  puppet, linux-puppet-module, ubuntu-puppet-module, centos-puppet-module, debian-puppet-module, redhat-puppet-module, archlinux-puppet-module
puppet-openldap
Manage OpenLDAP with Puppet
Stars: ✭ 35 (+94.44%)
Mutual labels:  puppet, linux-puppet-module, ubuntu-puppet-module, centos-puppet-module, debian-puppet-module, redhat-puppet-module, sles-puppet-module
puppet-hiera
Hiera hierarchy module for templating `hiera.yaml`
Stars: ✭ 32 (+77.78%)
Mutual labels:  puppet, linux-puppet-module, ubuntu-puppet-module, centos-puppet-module, debian-puppet-module, redhat-puppet-module
puppet-kibana
Kibana Puppet module by Elastic.
Stars: ✭ 17 (-5.56%)
Mutual labels:  puppet, linux-puppet-module, ubuntu-puppet-module, centos-puppet-module, debian-puppet-module, redhat-puppet-module
puppet-postfix
Puppet postfix module
Stars: ✭ 72 (+300%)
Mutual labels:  puppet, linux-puppet-module, ubuntu-puppet-module, centos-puppet-module, debian-puppet-module, redhat-puppet-module
puppet-network
Types and providers to manage network interfaces
Stars: ✭ 69 (+283.33%)
Mutual labels:  puppet, linux-puppet-module, centos-puppet-module, debian-puppet-module, redhat-puppet-module
puppet-mrepo
Puppet module for creating and managing RPM based repository mirrors.
Stars: ✭ 17 (-5.56%)
Mutual labels:  puppet, linux-puppet-module, centos-puppet-module, oraclelinux-puppet-module, redhat-puppet-module
puppet-stash
A puppet module to install atlassian stash
Stars: ✭ 19 (+5.56%)
Mutual labels:  puppet, linux-puppet-module, ubuntu-puppet-module, centos-puppet-module, redhat-puppet-module
puppet-puppetserver
Puppet module for puppetserver
Stars: ✭ 21 (+16.67%)
Mutual labels:  puppet, linux-puppet-module, redhat-puppet-module
puppet-keepalived
Puppet Module to manage Keepalived
Stars: ✭ 47 (+161.11%)
Mutual labels:  puppet, linux-puppet-module
puppet-healthcheck
Puppet resources to evaluate the health and status of things.
Stars: ✭ 22 (+22.22%)
Mutual labels:  puppet, linux-puppet-module
puppet-kafka
The kafka module for managing the installation and configuration of Apache Kafka
Stars: ✭ 30 (+66.67%)
Mutual labels:  puppet, linux-puppet-module
puppet-vmwaretools
Puppet module to manage VMware Operating System Specific Packages for VMware tools installation.
Stars: ✭ 34 (+88.89%)
Mutual labels:  puppet, linux-puppet-module
puppet-posix acl
A puppet module for POSIX ACLs
Stars: ✭ 15 (-16.67%)
Mutual labels:  puppet, linux-puppet-module
puppet-jira
Atlassian JIRA Puppet Module
Stars: ✭ 62 (+244.44%)
Mutual labels:  puppet, linux-puppet-module
puppet-snmp
Puppet module to manage Net-SNMP.
Stars: ✭ 33 (+83.33%)
Mutual labels:  puppet, linux-puppet-module
puppet-rundeck
Module for managing the installatation and configuration of the rundeck orchestration tool
Stars: ✭ 37 (+105.56%)
Mutual labels:  puppet, linux-puppet-module
puppet-dhcp
Puppet module for deploying dhcp
Stars: ✭ 41 (+127.78%)
Mutual labels:  puppet, linux-puppet-module

Kmod Puppet module

Build Status Release Puppet Forge Puppet Forge - downloads Puppet Forge - endorsement Puppet Forge - scores puppetmodule.info docs Apache 2 License Donated by Camptocamp

Description

This module provides definitions to manipulate modprobe.conf (5) stanzas:

  • kmod::alias
  • kmod::install
  • kmod::blacklist

It depends on Augeas with the modprobe lens.

Usage

This module has five main defined types:

  • kmod::load
  • kmod::alias
  • kmod::option
  • kmod::install
  • kmod::blacklist

kmod::load

Loads a module using modprobe and manages persistent modules in /etc/sysconfig/modules

  kmod::load { 'mymodule': }

kmod::alias

Adds an alias to modprobe.conf, by default /etc/modprobe.d/<name>.conf is assumed for a filename.

  kmod::alias { 'bond0':
    source => 'bonding',
  }

Params:

  • source: Name of the module to alias
  • aliasname: Name of the alias (defaults to the resource title)
  • file: File to write to (see above default)

kmod::option

Adds an option to modprobe.conf

  kmod::option { 'bond0 mode':
    module  => 'bond0',
    option  => 'mode',
    value   => '1',
  }

  kmod::option { 'bond0':
    option => 'mode',
    value  => '1',
  }

Params:

  • option: Name of the parameter to add
  • value: Value of the parameter
  • module: Name of the module (if ommited, the resource title is used)
  • file: File to write to (defaults to /etc/modprobe.d/<module name>.conf)

kmod::blacklist

Manages modprobe blacklist entries. Blacklist entries prevents module aliases from being used, but would not prevent the module from being loaded. To prevent a module from being loaded use kmod::install

  kmod::blacklist { 'foo': }

Params:

  • file: File to write to, defaults to /etc/modprobe.d/blacklist.conf

kmod::install

Manage modprobe install entries

   kmod::install { 'pcspkr': }

If you want to ensure that module can't be loaded at all you can do the following:

   kmod::install { 'dccp': command => '/bin/false' }

Params:

  • file: File to write to (defaults to /etc/modprobe.d/<module name>.conf)
  • command: (optional) command associated with the install, defaults to /bin/true

Using the module with hiera

The module makes available lists for every defined type that will create those defined types if defined as class parameters. The parameters are:

  • kmod::list_of_blacklists:
  • kmod::list_of_aliases:
  • kmod::list_of_installs:
  • kmod::list_of_loads:
  • kmod::list_of_options:

Example usage:

---
kmod::list_of_blacklists:
  'foo01': {}
  'foo02': {}
  'foo03': {}
kmod::list_of_aliases:
  'foo01':
    source: 'squashfs'
    aliasname: 'squash01'
  'foo02':
    source: 'squashfs'
    aliasname: 'squash02'
kmod::list_of_installs:
  'dccp':
    command: '/bin/false'
  'blah':
    command: '/bin/true'
kmod::list_of_loads:
  'cramfs': {}
  'vfat': {}
kmod::list_of_options:
  'bond0 mode':
    module: 'bond0'
    option: 'mode'
    value: '1'
  'bond0':
    option: 'mode'
    value: '1'

Contributing

Please report bugs and feature request using GitHub issue tracker.

For pull requests, it is very much appreciated to check your Puppet manifest with puppet-lint to follow the recommended Puppet style guidelines from the Puppet Labs style guide.

Transfer Notice

This plugin was originally authored by Camptocamp. The maintainer preferred that Puppet Community take ownership of the module for future improvement and maintenance. Existing pull requests and issues were transferred over, please fork and continue to contribute here instead of Camptocamp.

Previously: https://github.com/camptocamp/puppet-kmod

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].