Created
October 3, 2011 21:24
-
-
Save jtimberman/1260299 to your computer and use it in GitHub Desktop.
First stab at a knife.rb with comments for all the various knife plugins we publish
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
log_level :info | |
log_location STDOUT | |
node_name ENV['USER'] | |
client_key "#{ENV['HOME']}/.chef/#{ENV['USER']}.pem" | |
validation_client_name 'chef-validator' | |
validation_key '/etc/chef/validation.pem' | |
chef_server_url 'http://localhost:4000' | |
cache_type 'BasicFile' | |
cache_options( :path => "#{ENV['HOME']}/.chef/checksums" ) | |
cookbook_path [ '/var/chef/cookbooks' ] | |
###################################################################### | |
# Knife specific configuration options. These are used by Core knife | |
# commands and optional Gems and correspond to options passed to the | |
# command. The default value is specified, modify and uncomment. | |
# | |
# Some configuration options overlap with different knife plugins. The | |
# option specified will be used as the default for all | |
# plugins. However, the command-line options will override the setting | |
# specified in this file. | |
# Core: knife ssh | |
#knife[:ssh_port] = 22 | |
# Core: knife bootstrap | |
# Default bootstrap template by distribution name. This is | |
# also used in knife gems for bootstrapping cloud instances. | |
#knife[:distro] = "ubuntu10.04-gems" | |
# Default bootstrap template by full pathname to the template file. | |
# knife[:template_file] = "" | |
# Version of Chef to install during bootstrap. | |
#knife[:bootstrap_version] = "" | |
# HTTP proxy to use during bootstrap. | |
#knife[:bootstrap_proxy] = "" | |
###################################################################### | |
# Gem: knife-ec2 | |
# Authentication credentials for the AWS API. Specify the access key | |
# ID and secret access key. | |
#knife[:aws_access_key_id] = "" | |
#knife[:aws_secret_access_key] = "" | |
# Default flavor of server (m1.small, c1.medium, etc). | |
#knife[:flavor] = "m1.small" | |
# Default AMI identifier, e.g. ami-12345678 | |
#knife[:image] = "" | |
# AWS Region | |
#knife[:region] = "us-east-1" | |
# AWS Availability Zone. Must be in the same Region. | |
#knife[:availability_zone] = "us-east-1b" | |
# A file with EC2 User Data to provision the instance. | |
#knife[:aws_user_data] = "" | |
# AWS SSH Keypair. | |
#knife[:aws_ssh_key_id] = "" | |
###################################################################### | |
# Gem: knife-eucalyptus | |
# URL to the Eucalyptus API endpoint. | |
#knife[:euca_api_endpoint] = "http://ecc.eucalyptus.com:8773/services/Eucalyptus" | |
# Authentication credentials for the API. Specify the access key | |
# ID and secret access key. | |
#knife[:euca_access_key_id] = "" | |
#knife[:euca_secret_access_key] = "" | |
# Default flavor of server (m1.small, c1.medium, etc). Obtain a list | |
# with: | |
# knife euca flavor list | |
#knife[:flavor] = "m1.small" | |
# Default AMI identifier, e.g. ami-12345678. Obtain a list with: | |
# knife euca image list | |
#knife[:image] = "" | |
# Eucalyptus region | |
#knife[:region] = "" | |
# Eucalyptus Availability Zone. Must be in the same Region. | |
#knife[:availability_zone] = "" | |
# Eucalyptus SSH Keypair. | |
#knife[:euca_ssh_key_id] = "" | |
###################################################################### | |
# Gem: knife-linode | |
# Linode API key. | |
#knife[:linode_api_key] = "" | |
# The flavor of server to create by default. Obtain a list with: | |
# knife linode flavor list | |
#knife[:linode_flavor] = 1 | |
# The Linode image to use. Obtain a list with: | |
# knife linode image list | |
#knife[:linode_image] = 83 | |
# The Linode kernel to use. Obtain a list with: | |
# knife linode kernel list | |
#knife[:linode_kernel] = 133 | |
# The Linode data center to use. Obtain a list with: | |
# knife linode datacenter list | |
#knife[:linode_datacenter] = 3 | |
# The default password to use when connecting via SSH. | |
#knife[:linode_ssh_password] = "BarbaZ" | |
###################################################################### | |
# Gem: knife-openstack | |
# URL for the OpenStack API. | |
#knife[:openstack_api_endpoint] = "" | |
# Authentication credentials for the API. Specify the access key | |
# ID and secret access key. | |
#knife[:openstack_access_key_id] = "" | |
#knife[:openstack_secret_access_key] = "" | |
# Default flavor of server (m1.small, c1.medium, etc). Obtain a list | |
# with: | |
# knife openstack flavor list | |
#knife[:flavor] = "m1.small" | |
# Default AMI identifier, e.g. ami-12345678. Obtain a list with: | |
# knife openstack image list | |
#knife[:image] = "" | |
# OpenStack region | |
#knife[:region] = "" | |
# OpenStack Availability Zone. Must be in the same Region. | |
#knife[:availability_zone] = "" | |
# OpenStack SSH Keypair | |
#knife[:openstack_ssh_key_id] = "" | |
###################################################################### | |
# Gem: knife-rackspace | |
# URL for the Rackspace authentication API. | |
#knife[:rackspace_api_auth_url] = "auth.api.rackspacecloud.com" | |
# Authentication credentials for the API. Specify the API key and the | |
# username. | |
#knife[:rackspace_api_key] = "" | |
#knife[:rackspace_api_username] = "" | |
# JSON string of metadata hash supplied to the newly created server. | |
#knife[:rackspace_metadata] = "" | |
# Default flavor to use. Obtain a list with: | |
# knife rackspace flavor list | |
#knife[:flavor] = 2 | |
# Default image to use. Obtain a list with: | |
# knife rackspace image list | |
#knife[:image] = "" | |
# region | |
#knife[:region] = "" | |
###################################################################### | |
# Gem: knife-terremark | |
# Authentication credentials. Specify the Terremark service, username | |
# and password. | |
#knife[:terremark_service] = "" | |
#knife[:terremark_username] = "" | |
#knife[:terremark_password] = "" | |
###################################################################### | |
# Gem: knife-windows | |
# User and password to authenticate to WinRM. | |
#knife[:winrm_user] = "Administrator" | |
#knife[:winrm_password] = "" | |
# WinRM port. | |
#knife[:winrm_port] = "5985" | |
# The WinRM transport type. 'ssl' or 'plaintext'. | |
#knife[:winrm_transport] = "plaintext" | |
# The Certificate Authority (CA) trust file used for 'ssl' transport. | |
#knife[:ca_trust_file] = "" | |
# Authentication using Kerberos. Set the keytab, realm and service. | |
#knife[:kerberos_keytab_file] = "" | |
#knife[:kerberos_realm] = "" | |
#knife[:kerberos_service] = "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment