Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/voxpupuli/puppet-rclocal
Puppet module to manage rc.local
https://github.com/voxpupuli/puppet-rclocal
centos-puppet-module debian-puppet-module hacktoberfest linux-puppet-module oraclelinux-puppet-module puppet redhat-puppet-module scientific-puppet-module sles-puppet-module ubuntu-puppet-module
Last synced: about 10 hours ago
JSON representation
Puppet module to manage rc.local
- Host: GitHub
- URL: https://github.com/voxpupuli/puppet-rclocal
- Owner: voxpupuli
- License: apache-2.0
- Created: 2012-08-06T16:45:00.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2024-09-17T07:30:40.000Z (4 months ago)
- Last Synced: 2024-10-29T14:22:42.106Z (2 months ago)
- Topics: centos-puppet-module, debian-puppet-module, hacktoberfest, linux-puppet-module, oraclelinux-puppet-module, puppet, redhat-puppet-module, scientific-puppet-module, sles-puppet-module, ubuntu-puppet-module
- Language: Ruby
- Size: 123 KB
- Stars: 3
- Watchers: 41
- Forks: 19
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Puppet rclocal module
[![Build Status](https://travis-ci.org/voxpupuli/puppet-rclocal.png?branch=master)](https://travis-ci.org/voxpupuli/puppet-rclocal)
#### Table of Contents
1. [Module Description](#module-description)
1. [Setup](#setup)
1. [Usage](#usage)
1. [Parameters](#parameters)
1. [Development](#development)
1. [Author](#author)## Module description
This module manages rc.local entries in /etc/rc.local file directory.## Setup
This module uses Data Types from puppetlabs-stdlib!
Systemd based systems will need [puppet/systemd](https://forge.puppet.com/puppet/systemd).
## Usage
To only manage the content of rc.local file:
class { 'rclocal':
# config_file - OS specific, set via hiera data in module
# config_dir - OS specific, set via hiera data in module
# template - name a template to fill rc.local file, defaults to module template
# scripts - a hash of rc.local.d snippets to add
}
or
include rclocalMain usage is via a defined resource tye:
rclocal::script { 'name':
ensure => 'present',
content => "content for rc_local snippet\n",
priority => '44',
autoexec => true,
}Or by defining hiera data for main class `scripts` parameter:
---
rclocal::scripts:
'name':
'ensure': 'present'
'content': "content for rc_local snippet\n"
'priority': '44'
'autoexec': trueand then consume the data in your profile:
lookup('rclocal::scripts').each |$key, $params| {
rclocal::script { $key:
* => $params,
}
}## Parameters
- ensure: set to 'present' or 'absent'
- content: the content you want to add
- priority: manages the order where the content appears
- autoexec: true or false - should puppet execute the code snippet from content - if set to false code will get executed on next reboot## Development
If you encounter problems, please [open an issue](https://github.com/voxpupuli/puppet-rclocal/issues/new), if you miss functionality, we are happy to review [Pull Requests](https://github.com/voxpupuli/puppet-rclocal/pulls)
## Author
This module was maintained and created by [example42 GmbH](https://example42.com) (c) 2012-2021
Module is transferred to [Vox Pupuli](https://voxpupuli.org) on Nov 11th 2021.