View terraform-pre-apply
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
if [ -z ${TFC_AWS_APPLY_ROLE_ARN+x} ] && [ -z ${TFC_AWS_RUN_ROLE_ARN+x} ]; then | |
echo "Skipping this script because both env vars are missing and unset"; | |
else | |
set +u | |
ROLE_ARN="${TFC_AWS_APPLY_ROLE_ARN:-$TFC_AWS_RUN_ROLE_ARN}" | |
set -u | |
echo "Preparing AWS provider auth..." |
View vault-token-helper.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'json' | |
require 'date' | |
unless ENV['VAULT_ADDR'] | |
STDERR.puts "No VAULT_ADDR environment variable set. Set it and run me again!" | |
exit 100 | |
end |
View gcrgc.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copyright © 2017 Google Inc. | |
# 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 |
View gist:a376473c24bbc7c9f27695c9bc66a289
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ dig @8.8.8.8 reddit.com | |
; <<>> DiG 9.11.5-P1-1ubuntu2.5-Ubuntu <<>> @8.8.8.8 reddit.com | |
; (1 server found) | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25135 | |
;; flags: qr rd; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 1 | |
;; WARNING: recursion requested but not available |
View spec.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spec: | |
template: | |
spec: | |
affinity: | |
nodeAffinity: | |
requiredDuringSchedulingIgnoredDuringExecution: | |
nodeSelectorTerms: | |
- matchExpressions: | |
- key: kubernetes.io/os | |
operator: In |
View test.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
make testacc TESTARGS='-run=TestAccAWSCloudWatchDashboard_update' |
View serde_expanded.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![feature(prelude_import)] | |
#![no_std] | |
#[prelude_import] | |
use std::prelude::v1::*; | |
#[macro_use] | |
extern crate std as std; | |
use serde::{Deserialize, Serialize}; | |
pub struct Test { | |
pub foo: String, | |
pub bar: bool, |
View gist:0258872b901513386f10a5b1c8f755a0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2019/01/18 15:24:07 [INFO] Terraform version: 0.11.11 ac4fff416318bf0915a0ab80e062a99ef3724334 | |
2019/01/18 15:24:07 [INFO] Go runtime version: go1.11.1 | |
2019/01/18 15:24:07 [INFO] CLI args: []string{"/home/xxx/apps/terraform", "apply", "-var-file=/home/xxx/work/infrastructure/environments/admin/test/../common.tfvars", "-var-file=/home/xxx/work/infrastructure/environments/admin/test/../../organization.tfvars"} | |
2019/01/18 15:24:07 [DEBUG] Attempting to open CLI config file: /home/xxx/.terraformrc | |
2019/01/18 15:24:07 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2019/01/18 15:24:07 [INFO] CLI command args: []string{"apply", "-var-file=/home/xxx/work/infrastructure/environments/admin/test/../common.tfvars", "-var-file=/home/xxx/work/infrastructure/environments/admin/test/../../organization.tfvars"} | |
2019/01/18 15:24:07 [INFO] command: backend initialized: *gcs.Backend | |
2019/01/18 15:24:07 [DEBUG] checking for provider in "." | |
2019/01/18 15:24:07 [DEBUG] checking for provider in "/home/xxx/apps" | |
2019/01/1 |
View consul.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"annotations": { | |
"list": [ | |
{ | |
"builtIn": 1, | |
"datasource": "-- Grafana --", | |
"enable": true, | |
"hide": true, | |
"iconColor": "rgba(0, 211, 255, 1)", | |
"name": "Annotations & Alerts", |
View gist:46bb64207c420762fb90ffc465edde6a
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2018/11/07 15:13:18 [INFO] Packer version: 1.3.2 | |
2018/11/07 15:13:18 Packer Target OS/Arch: linux amd64 | |
2018/11/07 15:13:18 Built with Go Version: go1.11.1 | |
2018/11/07 15:13:18 Detected home directory from env var: /home/yongwen | |
2018/11/07 15:13:18 Using internal plugin for ncloud | |
2018/11/07 15:13:18 Using internal plugin for alicloud-ecs | |
2018/11/07 15:13:18 Using internal plugin for azure-arm | |
2018/11/07 15:13:18 Using internal plugin for cloudstack | |
2018/11/07 15:13:18 Using internal plugin for triton | |
2018/11/07 15:13:18 Using internal plugin for lxd |
NewerOlder