Ansible (meta-) Role for generating upstart scripts
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
defaults
meta
tasks
templates/etc/init
LICENSE
README.md

README.md

ansible-upstart

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.

Platforms

Tunables

  • upstart_runtime_root (string) - Directory for runtime data
  • upstart_pidfile_path (string) - Path for pidfile
  • upstart_user (string) - User to run as
  • upstart_group (string) - Group to run as
  • upstart_name (string) - Name of the process
  • upstart_description (string) - Description of the process
  • upstart_start_on (list) - Events to start on
  • upstart_stop_on (list): - Events to stop on
  • upstart_file_descriptor_limit (integer) - File descriptor limit for the process
  • upstart_environment (list) - Environment data
  • upstart_pre_start (list) - Commands to run prior to starting
  • upstart_post_stop (list) - Commands to run after stopping
  • upstart_script (list) - Script to run
  • upstart_exec_path (string) - A single command to execute
  • upstart_exec_flags (list) - Parameters to be passed to the command
  • upstart_log_root (string) - Directory for logs
  • upstart_log_path (string) - Path for log file
  • upstart_capture_errors (boolean) - Redirect STDERR to STDOUT?

Dependencies

Example Playbook

- hosts: servers
  roles:
     - role: colstrom.upstart
       upstart_name: nginx
       upstart_user: www-data
       upstart_start_on:
         - startup
       upstart_stop_on:
         - shutdown

License

MIT

Contributors