Skip to content

Latest commit

 

History

History
 
 

daemontools

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Daemontools

This state installs Daemontools. Simply include daemontools on a minion.

To create a structure usable with envdir, set your desired environment in your pillar data:

some_project:
  env:
    SENTRY_DSN: https://…
    DATABASE_URL: postgres://…

And then, in a state file:

{% from "daemontools/init.sls" import env %}

{% env("some_project", pillar['some_project']['env']) %}

This will create /etc/some_project.d/SENTRY_DSN, etc. so you can use envdir /etc/some_project.d <command>.