cookbook 'subliminal', '= 1.0.1'
subliminal (2) Versions 1.0.1 Follow0
Installs subliminal.
cookbook 'subliminal', '= 1.0.1', :supermarket
knife supermarket install subliminal
knife supermarket download subliminal
subliminal Cookbook
Installs subliminal and its required dependencies.
Requirements
python
Python and pip are required. They are set up as a dependency of this cookbook so it will be handled automatically. The python_pip lwrp will be used to install the desired packages.
cron
This is an optional dependency if you want to set up cron jobs.
The cron_d lwrp will be used to manage the cron jobs.
Attributes
subliminal::default
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['subliminal']['colorlog']</tt></td>
<td>Boolean</td>
<td>whether to include colorlog</td>
<td><tt>true</tt></td>
</tr>
</table>
subliminal::cron
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['subliminal']['binary']</tt></td>
<td>String</td>
<td>path to the subliminal executable</td>
<td><tt>/usr/local/bin/subliminal</tt></td>
</tr>
<tr>
<td><tt>['subliminal']['log_directory']</tt></td>
<td>String</td>
<td>path to the subliminal log directory</td>
<td><tt>/var/log/subliminal</tt></td>
</tr>
<tr>
<td><tt>['subliminal']['verbose']</tt></td>
<td>Boolean</td>
<td>whether to include colorlog</td>
<td><tt>true</tt></td>
</tr>
<tr>
<td><tt>['subliminal']['languages']</tt></td>
<td>Array</td>
<td>a list of languages to use</td>
<td><tt>['en']</tt></td>
</tr>
<tr>
<td><tt>['subliminal']['providers']</tt></td>
<td>Array</td>
<td>a list of providers to use</td>
<td><tt>nil</tt></td>
</tr>
<tr>
<td><tt>['subliminal']['cron_jobs']</tt></td>
<td>Array</td>
<td>a list of hashes containing cron_d attributes</td>
<td><tt>[]</tt></td>
</tr>
</table>
Usage
subliminal::default
It installs subliminal using the python pip provider.
subliminal::colorlog
It installs colorlog using the python pip provider. You might need this if you want colorized logging.
subliminal::cron
It sets up cron jobs. The recipe performs the following actions:
- creates a
subliminal
system user - creates the log directory
- creates cron jobs by using the cron_d provider
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Dependent cookbooks
python >= 0.0.0 |
cron >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
subliminal cookbook CHANGELOG
This file is used to list changes made in each version of the subliminal cookbook.
1.0.1
- Makes providers configurable for cron recipe
1.0.0
- Initial release of the subliminal cookbook
Foodcritic Metric
1.0.1 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/attributes/cron.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/attributes/cron.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/attributes/cron.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/attributes/cron.rb:4
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/attributes/cron.rb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/attributes/cron.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/attributes/default.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/recipes/cron.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/recipes/cron.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/recipes/cron.rb:15
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/recipes/cron.rb:17
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/recipes/cron.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/recipes/cron.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/recipes/cron.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/recipes/cron.rb:23
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/recipes/cron.rb:25
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/recipes/default.rb:3
1.0.1 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/attributes/cron.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/attributes/cron.rb:3
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/attributes/cron.rb:4
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/attributes/cron.rb:5
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/attributes/cron.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/attributes/default.rb:1
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/recipes/cron.rb:2
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/recipes/cron.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/recipes/cron.rb:15
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/recipes/cron.rb:17
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/recipes/cron.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/recipes/cron.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/recipes/cron.rb:22
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/recipes/cron.rb:23
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/recipes/cron.rb:25
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/502f84ae234fc760afe22aae/subliminal/recipes/default.rb:3