Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs update. There will be a lot of these.
- Loading branch information
Showing
11 changed files
with
77 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,27 @@ | ||
# Running commands per-template | ||
# Running commands per-template | ||
|
||
In addition to running a daemon process after the configuration files have been generated (using the `exec:` [parameter](../general/configuration.md#exec)), you can also specify a separate `exec_on_write:` parameter for each template in the `target_values` block. For example, to create a file after a template has been created you can do something like this: | ||
|
||
```yaml | ||
--- | ||
exec: [ "/usr/sbin/some_daemon" ] | ||
data_sources: [ "file" ] | ||
template_sources: [ "file" ] | ||
|
||
environments: | ||
development: | ||
test.erb: | ||
target: test.txt | ||
exec_on_write: ["touch" , "/tmp/exec_on_write.tmp"] | ||
config: | ||
... | ||
... rest of configuration snipped ... | ||
... | ||
``` | ||
|
||
If these are long-running processes, Tiller will also wait for them to complete before exiting, and will also propogate signals such as SIGINT to them. | ||
|
||
However, if you are considering using this feature to spawn additional daemons do consider that Tiller is not intended as a full-blown supervisor/init system. You may want to consider using something like [supervisord](http://supervisord.org) instead. Using Tiller to generate configuration files for multiple processes and then running supervisord through the `exec` parameter is a common use-case. | ||
|
||
## Checksums | ||
This feature interacts with the [checksum](checksums.md) feature: When checksums are enabled, if the template has not been written to disk, no `exec_on_write` process will be run. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# Thanks | ||
|
||
Thanks to everyone who has submitted bug reports and feature requests. Also a special mention and huge thanks to JetBrains, for providing me with a free [opensource project license](https://www.jetbrains.com/buy/opensource/) for the fantastic [RubyMine](https://www.jetbrains.com/ruby/) IDE! | ||
Thanks to everyone who has submitted bug reports and feature requests. Also a special mention and huge thanks to JetBrains, for providing me with a free [opensource project license](https://www.jetbrains.com/buy/opensource/) for the fantastic [RubyMine](https://www.jetbrains.com/ruby/) IDE! | ||
|
||
And of course, the biggest thanks and love go to my wonderful wife for all her support and for putting up with my late-night brain "fizzing" when I'm pondering new features or thinking in Ruby :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters