Skip to content

Instantly share code, notes, and snippets.

View yanc0's full-sized avatar

Yann Coleu yanc0

View GitHub Profile
@yanc0
yanc0 / ansible-in-docker-test.yml
Last active November 1, 2016 14:35
Create Docker containers, add them to the Ansible inventory and test if task is running inside a container. Usefull for skip tasks that cannot be done inside a container (service management)
- hosts: localhost
become: no
vars:
distros:
- "yanc0/debian-python"
- "centos"
tasks:
- name: print ansible_connection
debug:
msg: "{{ansible_connection}}"

Keybase proof

I hereby claim:

  • I am yanc0 on github.
  • I am yanc0 (https://keybase.io/yanc0) on keybase.
  • I have a public key whose fingerprint is 1C89 D51E F3D9 192B 866D 01B0 E360 866F 38D9 FAD1

To claim this, I am signing this object:

@yanc0
yanc0 / gist:90db052f8491d711f5519ad67f41ddd3
Last active March 26, 2021 06:27
google_secret_manager_secret_version 400 missing payload
2021/03/26 07:24:39 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.
----
2021/03/26 07:24:39 [INFO] Terraform version: 0.14.9
2021/03/26 07:24:39 [INFO] Go runtime version: go1.15.6
2021/03/26 07:24:39 [INFO] CLI args: []string{"/home/yann/.tfenv/versions/0.14.9/terraform", "apply", "-target", "google_secret_manager_secret.cloudsql-password", "-target", "google_secret_manager_secret_version.cloudsql-password", "-var-file", "tfvars/hprod-dev.tfvars", "-auto-approve", "-no-color"}
2021/03/26 07:24:39 [DEBUG] Attempting to open CLI config file: /home/yann/.terraformrc
2021/03/26 07:24:39 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2021/03/26 07:24:39 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2021/03/26 07:24:39 [DEBUG] ignoring non-existing provider search directory /home/yann/.terraform.d/plugins
2021/03/26 16:50:55 [WARN] Log levels other than TRACE are currently unreliable, and are supported only for backward compatibility.
Use TF_LOG=TRACE to see Terraform's internal logs.
----
2021/03/26 16:50:55 [INFO] Terraform version: 0.14.9
2021/03/26 16:50:55 [INFO] Go runtime version: go1.15.6
2021/03/26 16:50:55 [INFO] CLI args: []string{"/home/yann/.tfenv/versions/0.14.9/terraform", "apply", "-target", "google_secret_manager_secret.cloudsql-password", "-target", "google_secret_manager_secret_version.cloudsql-password", "-var-file", "tfvars/hprod-dev.tfvars", "-auto-approve", "-no-color"}
2021/03/26 16:50:55 [DEBUG] Attempting to open CLI config file: /home/yann/.terraformrc
2021/03/26 16:50:55 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2021/03/26 16:50:55 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2021/03/26 16:50:55 [DEBUG] ignoring non-existing provider search directory /home/yann/.terraform.d/plugins
@yanc0
yanc0 / Dockerfile
Last active March 6, 2022 08:10
crabe.life source code
FROM golang AS build
COPY main.go ./
RUN CGO_ENABLED=0 go build -ldflags="-w -s" -o crabe-life main.go
FROM scratch AS run
COPY --from=build /go/crabe-life /crabe-life
EXPOSE 8080
ENTRYPOINT ["/crabe-life"]