Version information
This version is compatible with:
- Puppet Enterprise 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x
- Puppet >= 6.1.0 < 8.0.0
- , , , , , ,
Start using this module
Add this module to your Puppetfile:
mod 'puppet-rclocal', '4.0.0'
Learn more about managing modules with a PuppetfileDocumentation
Puppet rclocal module
Table of Contents
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.
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 rclocal
Main 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': true
and 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, if you miss functionality, we are happy to review Pull Requests
Author
This module was maintained and created by example42 GmbH (c) 2012-2021 Module is transferred to Vox Pupuli on Nov 11th 2021.
Changelog
All notable changes to this project will be documented in this file. Each new release typically also includes the latest modulesync defaults. These should not affect the functionality of the module.
v4.0.0 (2021-11-11)
Breaking changes:
- Use puppet/systemd for rc-local.service/drop non-systemd support #36 (bastelfreak)
- Ubuntu: Drop EoL 16.04 support; add 20.04 support #34 (bastelfreak)
- Debian: Drop Eol 8/9 support; add 11 support #33 (bastelfreak)
- Drop Puppet 4/5 support; require puppet 6.1 or newer #31 (bastelfreak)
Fixed bugs:
- Debian uses rc-local.service, not rc.local.service #28 (martijndegouw)
Closed issues:
- Debian's rclocal service name is rc-local.service not rc.local.service #27
Merged pull requests:
- cleanup .fixtures.yml #35 (bastelfreak)
- puppetlabs/stdlib: Allow 8.x #32 (bastelfreak)
- Transfer module to Vox Pupuli #29 (tuxmea)
v3.3.1 (2021-05-03)
v3.3.0 (2021-03-16)
Merged pull requests:
v3.1.0 (2020-09-04)
Closed issues:
- SysVStartPriority= has been removed and it is ignored #24
Merged pull requests:
v3.0.5 (2019-10-21)
v3.0.6 (2019-10-21)
Merged pull requests:
v3.0.4 (2019-07-21)
Merged pull requests:
- Updates: #18 (tuxmea)
- Add systemd rc-local support #17 (tuxmea)
- Update documentation #16 (tuxmea)
- add more unit tests #15 (tuxmea)
- fixes for MODULES_8017 #14 (tuxmea)
v3.0.0 (2018-07-03)
Closed issues:
- Incompatibility issue with Puppet v5 #12
- Module does not run on puppet version 5.x #10
- metadata.json permissions changed between v2.0.5 and v2.0.7 #9
Merged pull requests:
v2.0.8 (2015-10-12)
v2.0.9 (2015-10-12)
Merged pull requests:
v2.0.7 (2015-08-10)
v2.0.6 (2015-02-05)
Closed issues:
- Cannot guidelines on how to use this module? #4
Merged pull requests:
- added support for simple integration with hiera #7 (mburger)
- Added removal of rc.local scripts (ensure => absent) #6 (rainopik)
v2.0.5 (2013-10-25)
v2.0.4 (2013-10-25)
v2.0.3 (2013-10-24)
Merged pull requests:
- allow 'external' template file for rc.local #3 (BlackIkeEagle)
v2.0.2 (2013-09-24)
v2.0.1 (2013-03-08)
Closed issues:
- Example? #1
Merged pull requests:
* This Changelog was automatically generated by github_changelog_generator
Dependencies
- puppetlabs/stdlib (>= 4.19.0 < 9.0.0)
Copyright (C) 2013 Alessandro Franceschi / Lab42 for the relevant commits Copyright (C) by the respective authors. Contact Lab42 at: info@lab42.it Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.