Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding support for using authorized_keys from a service account #7

Merged
merged 1 commit into from
Mar 3, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ to the appropriate SSH keys. Default: `ENV['USER']`
Location into which instances will be launched. If not specified, a
zone is chosen from available zones within the "area" (see above).

### public_key_path

Path to the public half of the ssh key that will be dropped of on the
instance in ~/.ssh/authorized_keys.

## Example

An example `.kitchen.yml` file using kitchen-gce might look something
Expand All @@ -128,6 +133,7 @@ platforms:
driver_config:
image_name: debian-7-wheezy-v20130926
require_chef_omnibus: true
public_key_path: '/home/alice/.ssh/google_compute_engine.pub'
tags: ["somerole"]

suites:
Expand Down
3 changes: 2 additions & 1 deletion lib/kitchen/driver/gce.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ def create_instance
machine_type: config[:machine_type],
network: config[:network],
tags: config[:tags],
zone_name: config[:zone_name]
zone_name: config[:zone_name],
public_key_path: config[:public_key_path],
)
end

Expand Down