- 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
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.
Include SIMP/upstart
in your modulepath.
This module will manage the /etc/init directory, and any additional jobs created
by upstart::job
To ensure the proper permissions on /etc/init and disable ctrl+alt+delete restart, just include the main class in your manifest.
include upstart
class{'upstart':
disable_ctrl_alt_del => false,
}
upstart::job { 'myjob':
main_process_type => 'script',
main_process => template('myprofile/script'),
start_on => 'runlevel [0123456]',
description => 'Used to run my process'
}
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',
}
- upstart: Manages /etc/init and controls the ctrl+alt+delete job.
- upstart::job: Manages upstart jobs
SIMP Puppet modules are generally intended to be used on a Red Hat Enterprise Linux-compatible distribution.
Please read our Contribution Guide.
If you find any issues, they can be submitted to our JIRA.
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.