github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/cmd/roachprod/config/config.go (about) 1 // Copyright 2018 The Cockroach Authors. 2 // 3 // Use of this software is governed by the Business Source License 4 // included in the file licenses/BSL.txt. 5 // 6 // As of the Change Date specified in that file, in accordance with 7 // the Business Source License, use of this software will be governed 8 // by the Apache License, Version 2.0, included in the file 9 // licenses/APL.txt. 10 11 package config 12 13 import ( 14 "log" 15 "os/user" 16 ) 17 18 var ( 19 // Binary TODO(peter): document 20 Binary = "cockroach" 21 // SlackToken TODO(peter): document 22 SlackToken string 23 // OSUser TODO(peter): document 24 OSUser *user.User 25 ) 26 27 func init() { 28 var err error 29 OSUser, err = user.Current() 30 if err != nil { 31 log.Panic("Unable to determine OS user", err) 32 } 33 } 34 35 // A sentinel value used to indicate that an installation should 36 // take place on the local machine. Later in the refactoring, 37 // this ought to be replaced by a LocalCloudProvider or somesuch. 38 const ( 39 DefaultDebugDir = "${HOME}/.roachprod/debug" 40 DefaultHostDir = "${HOME}/.roachprod/hosts" 41 EmailDomain = "@cockroachlabs.com" 42 Local = "local" 43 44 // SharedUser is the linux username for shared use on all vms. 45 SharedUser = "ubuntu" 46 )