cookbook 'opt-python', '~> 0.1.1'
opt-python (1) Versions 0.1.1 Follow0
Installs/Configures python as an optional software package
cookbook 'opt-python', '~> 0.1.1', :supermarket
knife supermarket install opt-python
knife supermarket download opt-python
opt-python Cookbook
This cookbook installs python from source as an optional software package.
The default path is /opt/python-<version>
, so that it avoid mixing it up
with your system's python package.
Requirements
platforms
- CentOS 6.5 is supported and tested.
Attributes
opt-python::default
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['opt-python']['version']</tt></td>
<td>Text</td>
<td>Python version</td>
<td><tt>2.7.8</tt></td>
</tr>
<tr>
<td><tt>['opt-python']['install_dir']</tt></td>
<td>Text</td>
<td>Directory to install</td>
<td><tt>/opt</tt></td>
</tr>
<tr>
<td><tt>['opt-python']['download_dir']</tt></td>
<td>Text</td>
<td>Directory to download source code</td>
<td><tt>/tmp</tt></td>
</tr>
</table>
Usage
opt-python::default
Just include opt-python
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[opt-python]" ] }
opt-python::modulefile
If you have Environment Modules on your machine, include opt-python::modulefile
in your node's run_list
and set attrubutes, modulefile_dir
and default_version
:
{ "name":"my_node", "run_list": [ "recipe[opt-python::modulefile]" ], "opt-python": { "modulefiles_dir": "/opt/module-3.2.10/Module/3.2.10/modulefile/tools", "default_version": "2.7.8" } }
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
License and Authors
- Author:: Koji Tanaka (kj.tanaka@gmail.com)
Copyright 2014, FutureGrid, Indiana Univercity Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Dependent cookbooks
build-essential >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
python CHANGELOG
This file is used to list changes made in each version of the python cookbook.
0.1.0
- [your_name] - Initial release of python
Check the Markdown Syntax Guide for help with Markdown.
The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.
Collaborator Number Metric
0.1.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.1 failed this metric
FC064: Ensure issues_url is set in metadata: opt-python/metadata.rb:1
FC065: Ensure source_url is set in metadata: opt-python/metadata.rb:1
FC066: Ensure chef_version is set in metadata: opt-python/metadata.rb:1
FC069: Ensure standardized license defined in metadata: opt-python/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: opt-python/metadata.rb:1
FC122: Use the build_essential resource instead of the recipe: opt-python/recipes/default.rb:21
FC122: Use the build_essential resource instead of the recipe: opt-python/recipes/setuptools.rb:21
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.1 passed this metric
Testing File Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.1 failed this metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.1 failed this metric
FC064: Ensure issues_url is set in metadata: opt-python/metadata.rb:1
FC065: Ensure source_url is set in metadata: opt-python/metadata.rb:1
FC066: Ensure chef_version is set in metadata: opt-python/metadata.rb:1
FC069: Ensure standardized license defined in metadata: opt-python/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: opt-python/metadata.rb:1
FC122: Use the build_essential resource instead of the recipe: opt-python/recipes/default.rb:21
FC122: Use the build_essential resource instead of the recipe: opt-python/recipes/setuptools.rb:21
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.1 passed this metric
Testing File Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.1 failed this metric
FC065: Ensure source_url is set in metadata: opt-python/metadata.rb:1
FC066: Ensure chef_version is set in metadata: opt-python/metadata.rb:1
FC069: Ensure standardized license defined in metadata: opt-python/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: opt-python/metadata.rb:1
FC122: Use the build_essential resource instead of the recipe: opt-python/recipes/default.rb:21
FC122: Use the build_essential resource instead of the recipe: opt-python/recipes/setuptools.rb:21
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.1 passed this metric
Testing File Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.1 failed this metric
0.1.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number