Skip to content
This repository was archived by the owner on Jun 18, 2019. It is now read-only.
This repository was archived by the owner on Jun 18, 2019. It is now read-only.

Amazon Linux 2 Doesn't Seem Supported (can't find "python27" package) #130

@glajchs

Description

@glajchs

When trying to use our existing cookbooks to do a chef install of an Amazon Linux 2 machine (https://aws.amazon.com/amazon-linux-2/release-notes/) using AMI (ami-b70554c8), we hit an issue where the poise-python package was trying to install an RPM with the name "python27", when there is no RPM with that name in the repo. For this version of the OS, the "python" package is already version 2.7. I was able to eventually get my install past this error by modifying the chef file locally and re-running with sudo chef-client --skip-cookbook-sync. In source, the file I modified is lib/poise_python/python_providers/system.rb, and I changed the "amazon" line to ready amazon: {default: %w{python}},.

I'm not sure, but I think maybe there needs to be detection support for amazon linux 2, and change the package names.

The error I got while installing is pasted here.
poise-python-beaver-install-issue.txt

As you can see, it's actually the "beaver" package that's trying to install python here, but all the beaver package does is run python_runtime 'beaver' using the following attributes: default['poise-python']['beaver']['provider'] = 'system' default['poise-python']['beaver']['version'] = '2'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions