Skip to content

Instantly share code, notes, and snippets.

docker-slim --debug build mirageid/carbon-relay-ng:notcompressed \
--publish-exposed-ports \
--debug \
--show-clogs \
--env GRAFANA_GRAPHITE_API_KEY="`cat ~/secure/mirage/grafana_graphite_api_key`" --env APP_ENV="stag" \
--http-probe-retry-count 2 \
--http-probe-retry-wait 2 \
--http-probe-ports 10001 \
--include-shell \
--include-path-file docker-slim/include-path-file.txt \
Error: Request cancelled
│ with module.stag.module.xavier.nomad_namespace.app,
│ on xavier/nomad.tf line 2, in resource "nomad_namespace" "app":
│ 2: resource "nomad_namespace" "app" {
│ The plugin.(*GRPCProvider).UpgradeResourceState request was cancelled.
Stack trace from the terraform-provider-nomad_v1.4.14_x4 plugin:
-----BEGIN CERTIFICATE-----
MIIHPDCCBiSgAwIBAgIMWhOANuDToNxOXisgMA0GCSqGSIb3DQEBCwUAMEwxCzAJ
BgNVBAYTAkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMSIwIAYDVQQDExlB
bHBoYVNTTCBDQSAtIFNIQTI1NiAtIEcyMB4XDTIxMDQwNTIxMDIwNloXDTIyMDUw
NzIxMDIwNlowGTEXMBUGA1UEAwwOKi5taXJhZ2VpZC5jb20wggIiMA0GCSqGSIb3
DQEBAQUAA4ICDwAwggIKAoICAQDROLAfwhq906FArde4OIhcJnSEKyF19xMpb2JI
HXNkvbtZV93ZJPUM7Q+Kq6HBuAXZG6+Xqqca0K7uSGXD6Oy/b1w7PnHS4uPHa0fG
fcKYwGSpjGiZS9xIicWr/beqDDa6NPNg8UGZE93391RVTTh2E0FN/G4+MwcAFdj2
V0nRXnAUu89W9opT6/qw1fVbYR7MaFl4WD0WmyfV2lPHlUPOHz3OBYhVMZhoNGWn
NYmz+QamU2lxFrjCq9yx9WX2VmoJ8qhA9OCSIiL9VmFzpYuxGWdmib71vUaUDjC6

Keybase proof

I hereby claim:

  • I am dansteen on github.
  • I am dan_steen (https://keybase.io/dan_steen) on keybase.
  • I have a public key ASBIVRn_TyBjFGMoEk-5eqCeLbjlJl-GoSmFjBY8oK2bHwo

To claim this, I am signing this object:

The following code is in a module:
# set the variable:
variable "emr_config_path" {
type = "string"
default = "${var.env}/config/emr/emr-config.json"
}
#try to use it:
output "emr_config_path" {
resource "consul_keys" "orgs" {
datacenter = "awse"
# Set the CNAME of our load balancer as a key
key {
name = "elb_cname"
path = "service/${var.name}/${var.env}"
value = "bob"
}
}
$$ openssl s_client -connect api.opscode.com:443 -verify 1
verify depth is 1
CONNECTED(00000003)
depth=2 C = US, O = DigiCert Inc, OU = www.digicert.com, CN = DigiCert Global Root CA
verify return:1
depth=1 C = US, O = DigiCert Inc, CN = DigiCert SHA2 Secure Server CA
verify return:1
depth=0 C = US, ST = Washington, L = Seattle, O = "Chef Software, Inc", CN = *.opscode.com
verify return:1
---
+ aws_instance.prod_nat
ami: "" => "ami-######"
availability_zone: "" => "<computed>"
disable_api_termination: "" => "1"
ebs_block_device.#: "" => "<computed>"
ephemeral_block_device.#: "" => "<computed>"
instance_type: "" => "m1.small"
key_name: "" => "production"
monitoring: "" => "1"
placement_group: "" => "<computed>"
@dansteen
dansteen / gist:5ed3195e4762feeee6b8
Last active August 29, 2015 14:24
error output
NoMethodError
-------------
undefined method `[]' for nil:NilClass
Cookbook Trace:
---------------
/tmp/kitchen/cache/cookbooks/bob/recipes/dns.rb:52:in `block in from_file'
/tmp/kitchen/cache/cookbooks/bob/recipes/dns.rb:49:in `from_file'
@dansteen
dansteen / libraries_cloud_front_helper.rb
Created April 30, 2015 14:30
ruby inheritance in chef
module CustomDeploy
module CloudFrontHelper
...
def self.get_auth()
# put together our authentication
auth = {}
# # if we have set the access_key we add that in
auth = {
'AWS_ACCESS_KEY_ID' => node['traitify']['chef_testing_purposes']['aws_access_key_id'],
'AWS_SECRET_ACCESS_KEY' => node['traitify']['chef_testing_purposes']['aws_secret_access_key']