I hereby claim:
- I am nocode99 on github.
- I am nocode (https://keybase.io/nocode) on keybase.
- I have a public key ASCOQlATMgKLLnw1Es4BDRYs_Lb_QmVzjpfSEU3_kl2ROwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
2020-06-11 20:08:00.481+0000 [id=33] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed ConfigurationAsCode.init | |
groovy.lang.MissingMethodException: No signature of method: javaposse.jobdsl.plugin.structs.DescribableListContext.githubPullRequest() is applicable for argument types: (script$_testPipelineJob_closure9$_closure85$_closure87$_closure88$_closure89) values: [script$_testPipelineJob_closure9$_closure85$_closure87$_closure88$_closure89@3aad01d8] | |
at sun.reflect.GeneratedConstructorAccessor48.newInstance(Unknown Source) | |
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) | |
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) | |
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83) | |
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105) | |
at org.codehaus.groovy.runtime.callsite.CallSiteA |
def generateStage(imageName, DOCKER_BUILD_ARG, args...) { | |
return { | |
stage("Building ${imageName}") { | |
lock(resource: "docker_build_${env.NODE_NAME}_${DOCKER_BUILD_ARG}", inversePrecedence: false) { | |
// [...] | |
} | |
} | |
} | |
} |
folder('My_folder') { | |
properties { | |
folderLibraries { | |
libraries { | |
libraryConfiguration { | |
name('shared-pipeline') | |
defaultVersion('master') | |
implicit(false) | |
allowVersionOverride(true) | |
includeInChangesets(true) |
$ TF_LOG=1 terraform plan | |
2018/02/09 10:53:36 [WARN] Invalid log level: "1". Defaulting to level: TRACE. Valid levels are: [TRACE DEBUG INFO WARN ERROR] | |
2018/02/09 10:53:36 [INFO] Terraform version: 0.10.5 1f054df7525613cccbbc705d639024cb8ac2264a | |
2018/02/09 10:53:36 [INFO] Go runtime version: go1.9 | |
2018/02/09 10:53:36 [INFO] CLI args: []string{"/usr/local/bin/terraform_0.10.5", "plan"} | |
2018/02/09 10:53:36 [DEBUG] Attempting to open CLI config file: /home/bkim/.terraformrc | |
2018/02/09 10:53:36 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2018/02/09 10:53:36 [INFO] CLI command args: []string{"plan"} | |
2018/02/09 10:53:36 [INFO] command: empty terraform config, returning nil | |
2018/02/09 10:53:36 [DEBUG] command: no data state file found for backend config |
This document will cover how to install terraform and configure your terraform environment. I also outlined additional steps to give an overview of how terraform works and benefits. Ultimately, we can concatenate some of these steps because it's fairly repetitious.
terraform
binary to somewhere in your $PATH (ie on Linux/Mac /usr/local/bin
) If you are using Windows, you can follow these instructions https://stackoverflow.com/questions/1618280/where-can-i-set-path-to-make-exe-on-windows{ | |
"agent": { | |
"": { | |
"policy": "write" | |
} | |
}, | |
"key": { | |
"": { | |
"policy": "write" | |
} |
These are python 2 and 3 snippets showing how to generate headers to authenticate with HashiCorp's Vault using the AWS authentication method.
It will look for credentials in the
default boto3 locations;
if you need to supply custom credentials (such as from an AssumeRole
call), you would use the
botocore.session.set_credentials
method before calling create_client
.
""" | |
Thanks to gane5h for the original script. this is a small kludgy tweak to that one. | |
Custom parser for nginx log suitable for use by Datadog 'dogstreams'. | |
To use, add to datadog.conf as follows: | |
dogstreams: [path to ngnix log (e.g: "/var/log/nginx/access.log"]:[path to this python script (e.g "/usr/share/datadog/agent/dogstream/nginx.py")]:[name of parsing method of this file ("parse")] | |
so, an example line would be: | |
dogstreams: /var/log/nginx/access.log:/usr/share/datadog/agent/dogstream/nginx.py:parse | |
Log of nginx should be defined like that: | |
log_format time_log '$time_local "$request" S=$status $bytes_sent T=$request_time R=$http_x_forwarded_for'; | |
when starting dd-agent, you can find the collector.log and check if the dogstream initialized successfully |