-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ITJamie/master
pip19 support plus kitchen plus ubuntu 18 fix for distutils
- Loading branch information
Showing
12 changed files
with
159 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
driver: | ||
name: vagrant | ||
|
||
provisioner: | ||
name: chef_zero | ||
product_name: chef | ||
product_version: "14" | ||
require_chef_omnibus: "14" | ||
data_bags_path: "test/data_bags" | ||
log_level: info | ||
|
||
platforms: | ||
- name: ubuntu-18.04 | ||
driver: | ||
provision: true | ||
vagrantfiles: | ||
- vagrant.rb | ||
- name: ubuntu-16.04 | ||
driver: | ||
provision: true | ||
vagrantfiles: | ||
- vagrant.rb | ||
- name: ubuntu-14.04 | ||
driver: | ||
provision: true | ||
vagrantfiles: | ||
- vagrant.rb | ||
|
||
verifier: | ||
name: inspec | ||
|
||
suites: | ||
- name: Python3and2_pip19 | ||
driver_config: | ||
vm_hostname: test-node1 | ||
customize: | ||
memory: 512 | ||
cpus: 1 | ||
run_list: | ||
- recipe[poise-python] | ||
verifier: | ||
inspec_tests: | ||
- test/integration/base_python_tests | ||
attributes: | ||
poise-python: | ||
install_python3: true | ||
options: | ||
pip_version: 19 | ||
- name: Python3and2_pip18 | ||
driver_config: | ||
vm_hostname: test-node1 | ||
customize: | ||
memory: 512 | ||
cpus: 1 | ||
run_list: | ||
- recipe[poise-python] | ||
verifier: | ||
inspec_tests: | ||
- test/integration/base_python_tests | ||
attributes: | ||
poise-python: | ||
install_python3: true | ||
options: | ||
pip_version: 18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
cookbook_path = File.expand_path '../' | ||
|
||
if File.directory? cookbook_path | ||
puts 'COOKBOOK PATH ' + cookbook_path | ||
else | ||
abort "CAN'T FIND MY COOKBOOK PATH. You may need to edit the Berksfile to fit your environment." | ||
end | ||
|
||
source 'https://supermarket.chef.io' | ||
|
||
# Upstream cookbooks | ||
cookbook 'poise' | ||
cookbook 'poise-languages' | ||
|
||
|
||
metadata | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name 'poise-python' | ||
maintainer 'Enova International' | ||
maintainer_email '[email protected]' | ||
license 'Apache-2' | ||
description 'Installs/Configures python and modules' | ||
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) | ||
version '1.7.1' | ||
|
||
depends "poise","~> 2.7" | ||
depends "poise-languages","~> 2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: python_tests | ||
title: InSpec Profile for testing base python installs | ||
maintainer: xxx | ||
copyright: xxx | ||
copyright_email: xxx | ||
license: Apache-2.0 | ||
summary: An InSpec Compliance Profile | ||
version: 0.1.0 | ||
supports: | ||
platform: os |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Vagrant.configure(2) do |config| | ||
config.ssh.insert_key = false | ||
# rubocop:disable Style/HashSyntax | ||
config.vm.provision 'shell', inline: <<-SHELL | ||
sudo apt-get update -y && apt-get install vim git unzip build-essential -y | ||
## sudo apt-get --only-upgrade install libssl* | ||
##sudo apt-get install -y libssl libssl-dev | ||
SHELL | ||
# rubocop:enable Style/HashSyntax | ||
end |