cookbook 'chefdk_bootstrap', '= 1.1.0'
chefdk_bootstrap
(51) Versions
1.1.0
-
-
2.4.8
-
2.4.7
-
2.4.5
-
2.4.4
-
2.4.3
-
2.4.2
-
2.4.1
-
2.4.0
-
2.3.0
-
2.2.1
-
2.2.0
-
2.1.1
-
2.1.0
-
2.0.1
-
2.0.0
-
1.9.0
-
1.8.0
-
1.7.0
-
1.6.2
-
1.6.1
-
1.6.0
-
1.5.4
-
1.5.3
-
1.5.2
-
1.5.1
-
1.5.0
-
1.4.1
-
1.4.0
-
1.3.2
-
1.3.1
-
1.3.0
-
1.2.4
-
1.2.3
-
1.2.2
-
1.2.1
-
1.2.0
-
1.1.3
-
1.1.2
-
1.1.1
-
1.1.0
-
1.0.3
-
1.0.2
-
1.0.1
-
1.0.0
-
0.2.4
-
0.2.3
-
0.2.2
-
0.2.1
-
0.2.0
-
0.1.1
-
0.1.0
Follow18
- 2.4.8
- 2.4.7
- 2.4.5
- 2.4.4
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.0
- 2.2.1
- 2.2.0
- 2.1.1
- 2.1.0
- 2.0.1
- 2.0.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.1
- 1.4.0
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.2.4
- 0.2.3
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.1
- 0.1.0
Bootstrap a developer workstation for local Chef development using the ChefDK
cookbook 'chefdk_bootstrap', '= 1.1.0', :supermarket
knife supermarket install chefdk_bootstrap
knife supermarket download chefdk_bootstrap
ChefDK_Bootstrap
Setup your laptop for Chef development in minutes
Run one simple command to easily setup your Windows or Mac machine
for Chef cookbook development in about 20 minutes.
Quickstart - Windows
Prerequisites
If you're behind a proxy...
If you need to go through a proxy server, export these environment variables before you run the commands below.
$env:http_proxy='http://myproxy.example.com:8080' $env:https_proxy=$env:http_proxy
Copy the PowerShell commands below and paste them into a PowerShell Admin console. This will execute the bootstrap
script on your workstation.
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/Nordstrom/chefdk_bootstrap/master/bootstrap.ps1 -ProxyUseDefaultCredentials -Proxy $env:https_proxy).Content | Invoke-Expression
Quickstart - Mac
If you're behind a proxy...
If you need to go through a proxy server, export these environment variables before you run the commands below:
export http_proxy=http://myproxy.example.com:1234 export https_proxy=$http_proxy
To make these changes permanent, export these environment variables from your bash or zsh profile.
Copy the command below and paste it into a terminal. This will execute the bootstrap script on your workstation.
curl https://raw.githubusercontent.com/Nordstrom/chefdk_bootstrap/master/bootstrap.sh | bash
ChefDK profile setup
Follow the instructions in the ChefDK README to complete the Chef workstation setup.
What does it do?
This cookbook installs these tools:
Editor
Atom, a free, general purpose, cross-platform, open source,
text editor. Out of the box, Atom supports all the languages you will need
for Chef development: Ruby, PowerShell, Bash, XML, JSON, etc.
Source Control
Git - command line git client and tools.
Local Virtualization
Virtualbox - Oracle's free, open source virtualization tool for local cookbook testing.
Vagrant - ChefDK's included Test Kitchen tool uses Vagrant to spin up local VMs for cookbook testing.
Recipes
default
Installs Chocolatey for a Windows machine and homebrew for a Mac machine. Both of these are package managers, similar to
apt-get
on Ubuntu. Chocolatey is used to install packages likeposh-git
andkdiff3
, while homebrew is used to install packages likeiterm2
.Installs all the other tools marked
true
in the
node['chefdk_bootstrap']['package']
hash.On Windows, includes the Powershell profile configuration recipe.
atom
- Installs the Atom editor
git
- Installs git.
- On Windows, installs git-credential-winstore, and posh-git.
gitextensions
- On Windows, installs gitextensions, a GUI git client.
kdiff3
- On Windows, installs the free, open-source diff/merge tool, kdiff3.
powershell_profile
- Configures a global PowerShell profile to correct the $env:HOME environment
variable and run
chef shell-init powershell
.
vagrant
- Installs Vagrant.
virtualbox
- Installs Virtualbox.
iterm2
- On Mac, installs iterm2.
Attributes
The attributes defined by this recipe are organized under the
node['chefdk_bootstrap']
namespace.
Attribute | Description | Type | Default |
---|---|---|---|
['atom']['source_url'] | Windows: Atom installer package source URL | URL String | https://atom.io/download/windows |
['atom']['source_url'] | Mac: Atom installer package source URL | URL String | https://atom.io/download/mac |
['package']['atom'] | Whether to install Atom or not | boolean | true |
['package']['kdiff3'] | Whether to install kdiff3 or not | boolean | true |
['package']['vagrant'] | Whether to install Vagrant or not | boolean | true |
['package']['virtualbox'] | Whether to install Virtualbox or not | boolean | true |
['package']['git'] | Whether to install git and related packages or not | boolean | true |
['package']['gitextensions'] | Whether to install gitextensions or not | boolean | true |
['package']['iterm2'] | Whether to install iterm2 or not | boolean | true |
Author
Nordstrom, Inc.
License
Copyright 2015 Nordstrom, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Dependent cookbooks
windows ~> 1.37 |
chocolatey ~> 0.4 |
git ~> 4.3 |
homebrew ~> 1.13 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Revision History for chefdk_bootstrap
1.1.0
- Set proxy environment variables in powershell_profile.
- This enables command-line tools like git, curl, and Test Kitchen to work behind a proxy.
1.0.3
- Fix bug in Atom setup for Windows
1.0.2
- Edited the README to make the markdown for Chef Supermaket consistent.
1.0.1
- Clarified Windows bootstrap instructions.
1.0.0
- Added Mac bootstrap functionality.
0.3.0
- Add ability to set
http_proxy
,https_proxy
, andno_proxy
env vars.
These env vars allow Chef related command line tools, e.g. git, berkshelf, to
work via a web proxy.
0.2.4
- Add proxy support to
bootstrap
script.
0.2.3
- Update README
- Add introduction to bootstrap script.
- Add Atom source URL for Mac platform
0.2.2
- Bootstrap script bug fixes
0.2.1
- Add PowerShell bootstrap script
0.2.0
- Remove support for PuTTY in favor of using git-provided ssh client.
PuTTY is difficult to configure and outside the scope of what this cookbook is
trying to do. Furthermore the Github for Windows client doesn't use PuTTY
either.
0.1.1
Install git via git cookbook
instead of chocolatey.Install atom editor via windows_package resource instead
of chocolatey.
0.1.0
- Initial version
Foodcritic Metric
1.1.0 failed this metric
FC031: Cookbook without metadata file: /tmp/cook/cf582d2efc4ad5be5b436359/chefdk_bootstrap/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/cf582d2efc4ad5be5b436359/chefdk_bootstrap/metadata.rb:1
1.1.0 failed this metric
FC045: Consider setting cookbook name in metadata: /tmp/cook/cf582d2efc4ad5be5b436359/chefdk_bootstrap/metadata.rb:1