github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/provider/gce/gce.go (about)

     1  // Copyright 2014 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package gce
     5  
     6  import (
     7  	"github.com/juju/loggo"
     8  )
     9  
    10  // The metadata keys used when creating new instances.
    11  const (
    12  	// This is defined by the cloud-init code:
    13  	// http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/cloudinit/sources/DataSourceGCE.py
    14  	// http://cloudinit.readthedocs.org/en/latest/
    15  	// https://cloud.google.com/compute/docs/metadata
    16  	metadataKeyCloudInit       = "user-data"
    17  	metadataKeyEncoding        = "user-data-encoding"
    18  	metadataKeyWindowsUserdata = "windows-startup-script-ps1"
    19  	metadataKeyWindowsSysprep  = "sysprep-specialize-script-ps1"
    20  )
    21  
    22  const (
    23  	// See https://cloud.google.com/compute/docs/operating-systems/linux-os#ubuntu
    24  	// TODO(ericsnow) Should this be handled in cloud-images (i.e.
    25  	// simplestreams)?
    26  	ubuntuImageBasePath      = "projects/ubuntu-os-cloud/global/images/"
    27  	ubuntuDailyImageBasePath = "projects/ubuntu-os-cloud-devel/global/images/"
    28  	windowsImageBasePath     = "projects/windows-cloud/global/images/"
    29  )
    30  
    31  var (
    32  	logger = loggo.GetLogger("juju.provider.gce")
    33  )