Version information
This version is compatible with:
- Puppet Enterprise 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, 2019.8.x
- Puppet >= 6.22.1 < 8.0.0
- , ,
Start using this module
Add this module to your Puppetfile:
mod 'simp-upstart', '6.2.0'
Learn more about managing modules with a PuppetfileDocumentation
Module
Table of Contents
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with upstart
- Usage - Configuration options and additional functionality
- Reference
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
- Acceptance Tests
Module Description
Upstart is an event-based replacement for the /sbin/init daemon which handles starting of tasks and services during boot, stopping them during shutdown and supervising them while the system is running.
This class allows for configuration of upstart init files. The main class will ensure that /etc/init has proper permissions and disable ctrl+alt+del restarts by default.
upstart::job
allows you to manage upstart jobs in /etc/init.
Setup
Include SIMP/upstart
in your modulepath.
What upstart affects
This module will manage the /etc/init directory, and any additional jobs created
by upstart::job
Begging with upstart
To ensure the proper permissions on /etc/init and disable ctrl+alt+delete restart, just include the main class in your manifest.
include upstart
Usage
I want to re-enable ctrl+alt+delete restarts
class{'upstart':
disable_ctrl_alt_del => false,
}
I want to run a script at restart on any run-level
upstart::job { 'myjob':
main_process_type => 'script',
main_process => template('myprofile/script'),
start_on => 'runlevel [0123456]',
description => 'Used to run my process'
}
I have a simple command I want to run on runlevel 5
upstart::job { 'myjob':
main_process_type => 'script',
main_process => '/bin/foo --opt -xyz foo bar',
start_on => 'runlevel [5]',
description => 'Used to foo xyz options on foo and bar',
}
Reference
Public Classes
- upstart: Manages /etc/init and controls the ctrl+alt+delete job.
Defined Types
- upstart::job: Manages upstart jobs
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.
- Thu Jun 17 2021 Chris Tessmer chris.tessmer@onyxpoint.com - 6.2.0
- Removed support for Puppet 5
- Ensured support for Puppet 7 in requirements and stdlib
- Sat Dec 19 2020 Chris Tessmer chris.tessmer@onyxpoint.com - 6.1.2
- Removed EL6 support
- Thu Jul 23 2020 Jeanne Greulich jeanne.greulich@onyxpoint.com - 6.1.1-0
- update the upper bound of simplib for SIMP 6.5 release
- Fri Aug 02 2019 Robert Vincent pillarsdotnet@gmail.com - 6.1.0-0
- Drop Puppet 4 support
- Add Puppet 6 support
- Add puppetlabs-stdlib 6 support
- Wed May 08 2019 Liz Nemsick lnemsick.simp@gmail.com - 6.0.5-0
- Maintenance: removed OBE build/rpm_metadata/requires
- Tue Feb 12 2019 Liz Nemsick lnemsick.simp@gmail.com - 6.0.4-0
- Use Simplib::Umask data type in lieu 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
- Thu Sep 13 2018 Nicholas Markowski nicholas.markowski@onyxpoint.com - 6.0.3-0
- Added Puppet 5 and OEL support
- Dropped support for Hiera v4. Dependency auditd has dropped support for Hiera v4, causing Puppet 4.7 tests to fail in this module.
- Update badges and contribution guide URL in README.md
- Thu Jun 07 2018 Liz Nemsick lnemsick.simp@gmail.com - 6.0.2-0
- Advance beyond bad changelog entry
- Thu Jun 16 2017 Liz Nemsick lnemsick.simp@gmail.com - 6.0.1-0
- Update to Puppet 4 custom function
- Confine puppet version in metadata.json
- Thu Jan 05 2017 Trevor Vaughan tvaughan@onyxpoint.com - 6.0.0-0
- Removed the 'ctrl-alt-del' job since that has been moved into the 'simp' module
- Thu Dec 15 2016 Liz Nemsick lnemsick.simp@gmail.com - 6.0.0-0
- Use simp_options module for global catalysts
- Use strongly typed parameters
- Fix bug whereby optional, respawn limit was not properly specified in upstart jobs.
- Refined upstart::job::sys_limit validation to reject non-integer numbers.
- Mon Nov 21 2016 SIMP-Team https://groups.google.com/forum/#!forum/simp - 5.0.0-0
- Updated module for compliance markup API v1.0.0 compatibility.
- Fri Jul 29 2016 Trevor Vaughan tvaughan@onyxpoint.com - 4.1.2-0
- Fixed an ordering issue in the 'job' ERB template
- Tue Mar 01 2016 Ralph Wright ralph.wright@onyxpoint.com - 4.1.0-5
- Added compliance function support
- Mon Nov 09 2015 Chris Tessmer chris.tessmer@onypoint.com - 4.1.0-4
- migration to simplib and simpcat (lib/ only)
- Fixed a set of bugs that were introduced to the 'job.erb' template.
- Code cleanup
- Fri Jan 16 2015 Trevor Vaughan tvaughan@onyxpoint.com - 4.1.0-3
- Changed puppet-server requirement to puppet
- Wed Apr 16 2014 Trevor Vaughan tvaughan@onyxpoint.com - 4.1.0-2
- Added the ability to disable ctrl-alt-del to the main upstart class.
- Wed Feb 12 2014 Kendall Moore kmoore@keywcorp.com - 4.1.0-1
- Converted all boolean strings into native booleans.
- Fri Jan 03 2014 Nick Markowski nmarkowski@keywcorp.com 4.1.0-0
- Updated module for puppet3/hiera compatability, optimized code for lint tests, and added puppet-rspec tests.
- Tue Dec 31 2013 Nick Markowski nmarkowski@keywcorp.com 4.1.0-0
- Updated module for puppet3/hiera compatability, and optimized code for lint tests.
- Tue Oct 08 2013 Kendall Moore kmoore@keywcorp.com 4.0.0-7
- Updated all erb templates to properly scope variables.
-
Wed Feb 06 2013 Maintenance 4.0.0-6
-
Tue Feb 05 2013 Maintenance 4.0.0-5
- Create a Cucumber test to install and configure the upstart module.
- Fri Jul 27 2012 Maintenance 4.0.0-4
- Updated the init.pp to only manage 'prompt' and 'single' since that's all that's really security relevant.
- Wed Apr 11 2012 Maintenance 4.0.0-3
- Updated pp files to better meet Puppet's recommended style guide.
- Fri Mar 02 2012 Maintenance 4.0.0-2
- Improved test stubs.
- Mon Dec 26 2011 Maintenance 4.0.0-1
- Updated the spec file to not require a separate file list.
- Mon Jul 25 2011 Maintenance 4.0.0-0
- Initial release of upstart module.
Dependencies
- puppetlabs/stdlib (>= 6.6.0 < 8.0.0)
- simp/simplib (>= 3.7.0 < 5.0.0)
pupmod-simp-upstart - A Puppet Module for managing Upstart -- 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.