# -*- mode: ruby -*- # vi: set ft=ruby : # Copyright 2013 Google Inc. All Rights Reserved. # # 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. Vagrant.configure("2") do |config| config.vm.provider :google do |_google, override| if ENV['GOOGLE_SSH_USER'] and ENV['GOOGLE_SSH_KEY_LOCATION'] override.ssh.username = ENV['GOOGLE_SSH_USER'] override.ssh.private_key_path = ENV['GOOGLE_SSH_KEY_LOCATION'] end _google.image_family = "debian-9" end end