Project

knife-art

0.02
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Enables basic authentication support for share and upload operations to Artifactory when it serves as a Supermarket.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

Gem Version

knife-art

Enables usage of Knife with basic authentication against an Artifactory backend (serving as the supermarket repo)

Installation

chef gem install knife-art

Client Configuration

The only requirement is to setup the supermarket url in your knife.rb file as follows: knife[:supermarket_site] = 'http://user:apiKey@art.company.com:8080/artifactory/api/chef/myRepo'

Artifactory Configuration

See the Artifactory User Guide

The knife-art plugin exposes all knife supermarket (or knife cookbook site) commands by using knife artifactory:

knife artifactory download COOKBOOK [VERSION] (options)
knife artifactory install COOKBOOK [VERSION] (options)
knife artifactory list (options)
knife artifactory search QUERY (options)
knife artifactory share COOKBOOK [CATEGORY] (options)
knife artifactory show COOKBOOK [VERSION] (options)
knife artifactory unshare COOKBOOK VERSION

Caveats

In some installations the chefdk location may not be included in your $PATH which will cause the plugin not to be loaded (chef gem will show a warning about this if that is the case). To fix this you simply need to include the chefdk location in your path, i.e. for bash:

In .bashrc:

export PATH=$PATH:~/.chefdk/gem/ruby/2.3.0/bin

Then reload it with source ~/.bashrc