poise-python | Chef cookbook to provide a unified interface | Infrastructure Automation library
kandi X-RAY | poise-python Summary
kandi X-RAY | poise-python Summary
A Chef cookbook to provide a unified interface for installing Python, managing Python packages, and creating virtualenvs.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Convert the module to a path
- Convert a module to a path .
- Encodes an object to a binary string .
poise-python Key Features
poise-python Examples and Code Snippets
Community Discussions
Trending Discussions on poise-python
QUESTION
I'm in the process of learning Chef to so I can deploy projects built with Python.
I have my own Cookbook where I am writing my own custom recipes. I've also downloaded the poise-python cookbook. Both sit in the same "cookbooks" path in my app.
What I am trying to figure out is how do I include the methods from poise-python so I can use them in my custom cookbook?
Thanks, RB
...ANSWER
Answered 2018-May-24 at 01:12You need to define your dependency in your metadata.rb
file for your cookbook. Like this:
QUESTION
We are trying to use Poise to manage runtimes for Python and Ruby on our Centos7 servers. From my understanding this works with other recipes, but I can't figure out what the "right" way is to link the binaries to the standard bin locations (/usr/bin/, etc.). So far I have been unable to find a way to do this as part of the standard process - only by digging around to figure out where they were installed and then adding those links as a separate step later in the recipe - it seems like a major hack.
In other words, adding the following in a recipe that has some scripts that get copied to the server that require Python 3 looks like it installs Python 3:
...ANSWER
Answered 2017-Dec-23 at 00:12Unfortunately just linking the binaries wouldn't really help you much since by default on CentOS it will use the SCL packages which require some special environment variables to operate. If you want it to use the "normal" system you can do this:
QUESTION
Hi I am trying to use chef daemontool cookbook for restarting web servers. But when I am trying to deploy the same in my local or docker I am getting the below error.
cannot load such file -- chef/mixin/command
I did tried searching the same in opensource community but no luck so far. Below is the stacktrace. Stack Trace:
...ANSWER
Answered 2017-Nov-30 at 15:33This was answered up in comments but to repeat for answer-ness: the cookbook is not compatible with the version of Chef you are using. That mixin was removed in favor of Chef::Mixin::ShellOut after many years of being deprecated.
Unrelated: if you want to use Chef to build docker image (and really probably don't, it makes hilariously inefficient images), use Packer instead of docker build
.
QUESTION
I'm trying to install python 3.6.3 on Ubuntu 16.04 using chef cookbooks poise-python and seem to be going aroud in circles. I've tried various differnet methods using the docs but none seem to work.
I've trid adding these after including the recipe
...ANSWER
Answered 2017-Nov-14 at 13:39Unfortunately there is no Python 3.6 package for Ubuntu 16.04 by default, they only offer 2.7 and 3.5. You can set up the Deadsnakes PPA and then do something like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install poise-python
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page