Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

The snu_python cookbook has been deprecated

Author provided reason for deprecation:

The snu_python cookbook has been deprecated and is no longer being maintained by its authors. Use of the snu_python cookbook is no longer recommended.

RSS

snu_python (16) Versions 0.2.0

Installs/configures snu_python

Policyfile
Berkshelf
Knife
cookbook 'snu_python', '= 0.2.0', :supermarket
cookbook 'snu_python', '= 0.2.0'
knife supermarket install snu_python
knife supermarket download snu_python
README
Dependencies
Changelog
Quality 83%

Snu Python Cookbook README

Cookbook Version
Build Status

A cookbook to perform an opinionated installation of Python using poise-python.

Requirements

This cookbook is continously tested against a matrix of Chef versions and platforms:

  • Chef 14
  • Chef 13
  • Chef 12

X

  • Ubuntu 16.04
  • Ubuntu 14.04
  • Debian 9
  • Debian 8

Additional platform support may be added in the future, but Python in RHEL-land seems to get real scary real fast.

Usage

Add the default recipe to your node's run list and/or declare instances of the included resources in a recipe of your own.

Recipes

default

Installs Python 2 and 3 and some default packages using the snu_python resource

Attributes

N/A

Resources

snu_python

A wrapper around the python_runtime resource to install both Python 2 and 3 as well as any supporting packages (e.g. the python3 package that manages /usr/local/bin/python3 on Debian platforms) and some default packages from PIP.

Syntax:

snu_python 'default' do
  python3_packages %w[requests]
  python2_packages %w[requests awscli]
  action :install
end

Actions:

Action Description
:install Install Python 2 and 3 and friends
:upgrade Upgrade Python 2 and 3 and friends
:remove Uninstall Python 2 and 3 and all installed packages

Properties:

Property Default Description
python3_packages %w[requests] Packages to install under Python 3
python2_packages %w[requests awscli] Packages to install under Python 2
action :install The action to perform

snu_python_package

A very light wrapper around the python_package resource that explicitly installs under Python 2 as a default behavior instead of relying on the order the python_runtime resources were declared in.

Syntax:

snu_python_package 'pygithub' do
  package_name 'pygithub'
  python '2'
  version '1.2.3'
  action :install
end

Actions:

Action Description
:install Install the package
:upgrade Upgrade the package
:remove Uninstall the package

Properties:

Property Default Description
package_name Resource name The name(s) of the package(s)
python '2' The Python runtime to install in
version nil The version to install
action :install The action to perform

snu_python_virtualenv

A very light wrapper around the python_virtualenv resource that explicitly installs under Python 2 as a default behavior instead of relying on the order the python_runtime resources were declared in.

Syntax:

snu_python_virtualenv '/opt/myapp' do
  path '/opt/myapp'
  python '2'
  user 'root'
  group 'root'
  action :create
end

Actions:

Action Description
:create Create the virtualenv
:delete Delete the virtualenv

Properties:

Property Default Description
path Resource name The virtualenv path
python '2' The Python runtime to create in
user nil The user to create the virtualenv as
group nil The group to create the virtualenv as
action :create The action to perform

Maintainers

Snu Python Cookbook CHANGELOG

This file is used to list changes made in each version of the snu_python
cookbook.

0.2.0 (2018-05-31)

  • Add a snu_python_virtualenv resource

0.1.0 (2018-05-25)

  • Initial release!

0.0.1 (2018-04-21)

  • Development started

Collaborator Number Metric
            

0.2.0 failed this metric

Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.2.0 passed this metric

Foodcritic Metric
            

0.2.0 passed this metric

No Binaries Metric
            

0.2.0 passed this metric

Testing File Metric
            

0.2.0 passed this metric

Version Tag Metric
            

0.2.0 passed this metric