Version information
This version is compatible with:
- Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x
- Puppet >= 7.0.0 < 9.0.0
- , , , ,
Start using this module
Add this module to your Puppetfile:
mod 'simp-oddjob', '2.8.0'
Learn more about managing modules with a PuppetfileDocumentation
oddjob
Table of Contents
Module Description
This module ensures the oddjobd package is installed, service is running and configures oddjob-mkhomedir.
See REFERENCE.md for API details.
Setup
What oddjob affects
This module will ensure oddjob is installed and the service is running. Additionally, it will use a custom template to create the mkhomedir oddjob enforcing umask.
Setup Requirements
simp/oddjob
requires simp/simplib
if using the mkhomedir class.
Beginning with oddjob
include 'oddjob'
Usage
I want to set default user umask for home directories
include 'oddjob'
include 'oddjob::mkhomedir'
With Hieradata:
oddjob::mkhomedir::umask: '0077'
Limitations
SIMP Puppet modules are generally intended to be used on a Red Hat Enterprise Linux-compatible distribution.
Development
Please read our Contribution Guide.
If you find any issues, they can be submitted to our JIRA.
Acceptance tests
To run the system tests, you need Vagrant
installed.
You can then run the following to execute the acceptance tests:
bundle exec rake beaker:suites
Some environment variables may be useful:
BEAKER_debug=true
BEAKER_provision=no
BEAKER_destroy=no
BEAKER_use_fixtures_dir_for_modules=yes
BEAKER_debug
: show the commands being run on the STU and their output.BEAKER_destroy=no
: prevent the machine destruction after the tests finish so you can inspect the state.BEAKER_provision=no
: prevent the machine from being recreated. This can save a lot of time while you're writing the tests.BEAKER_use_fixtures_dir_for_modules=yes
: cause all module dependencies to be loaded from thespec/fixtures/modules
directory, based on the contents of.fixtures.yml
. The contents of this directory are usually populated bybundle exec rake spec_prep
. This can be used to run acceptance tests to run on isolated networks.
Reference
Table of Contents
Classes
oddjob
: This class ensures that the basic oddjobd service is running and provides for an entry point to other oddjob functions and configuration.oddjob::mkhomedir
: class oddjob::mkhomedir This configures the oddjob-mkhomedir
Classes
oddjob
This class ensures that the basic oddjobd service is running and provides for an entry point to other oddjob functions and configuration.
Parameters
The following parameters are available in the oddjob
class:
package_ensure
Data type: String
The ensure status of package to be managed
Default value: simplib::lookup('simp_options::package_ensure', { 'default_value' => 'installed' })
oddjob::mkhomedir
class oddjob::mkhomedir
This configures the oddjob-mkhomedir
Parameters
The following parameters are available in the oddjob::mkhomedir
class:
umask
Data type: Simplib::Umask
Default value: '0027'
package_ensure
Data type: String
The ensure status of packages to be managed
Default value: simplib::lookup('simp_options::package_ensure', { 'default_value' => 'installed' })
- Wed Dec 06 2023 oliparcol oliparcol@noreply.github.com - 2.8.0
- Make sure oddjob-mkhomedir is installed before modifying configuration
- Mon Oct 23 2023 Steven Pritchard steve@sicura.us - 2.7.0
- [puppetsync] Add EL9 support
- Wed Oct 11 2023 Steven Pritchard steve@sicura.us - 2.6.0
- [puppetsync] Updates for Puppet 8
- These updates may include the following:
- Update Gemfile
- Add support for Puppet 8
- Drop support for Puppet 6
- Update module dependencies
- These updates may include the following:
- Wed Aug 23 2023 Steven Pritchard steve@sicura.us - 2.5.0
- Add AlmaLinux 8 support
- Mon Jun 12 2023 Chris Tessmer chris.tessmer@onyxpoint.com - 2.4.0
- Add RockyLinux 8 support
- Wed Jun 16 2021 Chris Tessmer chris.tessmer@onyxpoint.com - 2.3.0
- Removed support for Puppet 5
- Ensured support for Puppet 7 in requirements and stdlib
- Fri Dec 18 2020 Chris Tessmer chris.tessmer@onyxpoint.com - 2.2.1
- Removed EL6 support
- Fri Dec 20 2019 Trevor Vaughan tvaughan@onyxpoint.com - 2.2.0-0
- Add EL8 support
- Updated README.md
- Added REFERENCE.md
- Fri Aug 02 2019 Robert Vincent pillarsdotnet@gmail.com - 2.2.0-0
- Drop Puppet 4 support
- Add Puppet 6 support
- Add puppetlabs-stdlib 6 support
- Tue Feb 12 2019 Liz Nemsick lnemsick-simp@gmail.com - 2.1.1-0
- Remove unnecessary use of validate_umask(), a deprecated simplib Puppet 3 function.
- Update the upper bound of stdlib to < 6.0.0
- Update a URL in the README.md
- Tue Nov 06 2018 Liz Nemsick lnemsick-simp@gmail.com - 2.1.0-0
- Update to onyxpoint OEL boxes in acceptance tests
- Update badges and contribution guide URL in README.md
- Thu Oct 11 2018 Nick Miller nick.miller@onyxpoint.com - 2.1.0-0
- Added $package_ensure and $oddbob::mkhomedir::package_ensure parameter
- Changed the packages from 'latest' to 'installed'
- It will also respect
simp_options::package_ensure
- Fri Mar 23 2018 Trevor Vaughan tvaughan@onyxpoint.com - 2.1.0-0
- Add support for Puppet 5 and OEL
- Thu Jul 06 2017 Liz Nemsick lnemsick.simp@gmail.com - 2.0.1-0
- Confine puppet version in metadata.json
- Wed Nov 23 2016 Jeanne Greulich jgreulich@onyxpoint.com - 2.0.0-0
- Bump major version for SIMP 6.0
- Mon Nov 21 2016 Chris Tessmer chris.tessmer@onyxpoint.com - 1.0.2-0
- Minor cleanup
- Mon Nov 09 2015 Chris Tessmer chris.tessmer@onypoint.com - 1.0.0-2
- migration to simplib and simpcat (lib/ only)
- Fri Jan 16 2015 Trevor Vaughan tvaughan@onyxpoint.com - 1.0.0-1
- Changed puppet-server requirement to puppet
- Wed Jul 23 2014 Trevor Vaughan tvaughan@onyxpoint.com - 1.0.0-0
- Created the first cut at the oddjob module for use by PAM
Dependencies
- puppetlabs/stdlib (>= 8.0.0 < 10.0.0)
- simp/simplib (>= 4.9.0 < 5.0.0)
pupmod-simp-oddjob - A Puppet Module for managing Oddjob -- Per Section 105 of the Copyright Act of 1976, these works are not entitled to domestic copyright protection under US Federal law. The US Government retains the right to pursue copyright protections outside of the United States. The United States Government has unlimited rights in this software and all derivatives thereof, pursuant to the contracts under which it was developed and the License under which it falls. --- 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.