Skip to content

Instantly share code, notes, and snippets.

View varac's full-sized avatar

Varac varac

View GitHub Profile
@varac
varac / lsp.log
Created November 22, 2022 20:15
lsp.log
[START][2022-11-22 21:13:48] LSP logging initiated
[INFO][2022-11-22 21:13:48] .../vim/lsp/rpc.lua:261 "Starting RPC client" {
args = { "--stdio" },
cmd = "yaml-language-server",
extra = {
cwd = "/tmp/bitnami"
}
}
[TRACE][2022-11-22 21:13:48] .../lua/vim/lsp.lua:953 "LSP[yamlls]" "initialize_params" {
capabilities = {
environments/varac/infrastructure on update_otc_provider
❯ tf apply
module.infrastructure.module.vpc.opentelekomcloud_networking_floatingip_v2.nat["eu-de-02"]: Creating...
module.infrastructure.module.vpc.opentelekomcloud_networking_floatingip_v2.nat["eu-de-01"]: Creating...
module.infrastructure.module.vpc.opentelekomcloud_vpc_v1.vpc: Creating...
module.infrastructure.module.vpc.opentelekomcloud_networking_floatingip_v2.traefik: Creating...
module.infrastructure.module.vpc.opentelekomcloud_networking_floatingip_v2.nat["eu-de-03"]: Creating...
module.infrastructure.module.vpc.opentelekomcloud_vpc_eip_v1.cluster_eip_address: Creating...
module.infrastructure.module.vpc.opentelekomcloud_networking_floatingip_v2.nat["eu-de-01"]: Creation complete after 7s [id=966e32a5-f0a1-4cbc-946d-e583b8e5c40b]
@varac
varac / gist:0e16de606828968b30f0cd247ed79cbc
Created February 6, 2021 13:39
Export restic prometheus metrics
#!/bin/bash
# based on https://medium.com/@zoispag/collect-restic-metrics-when-using-resticker-cf862f87fc41
# This script will execute restic commands and will pipe the output to jq,
# in order to format it in a prometheus compatible metric.
# Add this script in the host crontab, to be executed every few hours.
HOST=${HOST:-`hostname -f`}
# Ensure jq package is installed, as it is needed to format
@varac
varac / gist:81634b8e1d620af410a07e6ce26241f7
Created January 15, 2021 11:35
otc tf idempotency issue
$ for i in cluster/default modules/*/*; do echo $i; terraform init -upgrade $i; done || /bin/true
cluster/default
Upgrading modules...
- cce in modules/infrastructure/cce
- dns in modules/infrastructure/dns
- ssh in modules/infrastructure/ssh
- vpc in modules/infrastructure/vpc
Initializing the backend...
Initializing provider plugins...
- Finding opentelekomcloud/opentelekomcloud versions matching "1.22.3"...
@varac
varac / out.terraform
Created January 8, 2021 12:44
tf init
❯ TF_LOG=trace tf init
2021/01/08 13:44:06 [INFO] Terraform version: 0.14.4
2021/01/08 13:44:06 [INFO] Go runtime version: go1.15.6
2021/01/08 13:44:06 [INFO] CLI args: []string{"/usr/bin/terraform", "init"}
2021/01/08 13:44:06 [DEBUG] Attempting to open CLI config file: /home/varac/projects/config-management/terraform/filesystem_mirror/.terraformrc
2021/01/08 13:44:06 Loading CLI configuration from /home/varac/projects/config-management/terraform/filesystem_mirror/.terraformrc
2021/01/08 13:44:06 [DEBUG] Not reading CLI config directory because config location is overridden by environment variable
2021/01/08 13:44:06 [DEBUG] checking for credentials in "/home/varac/.terraform.d/plugins"
2021/01/08 13:44:06 [DEBUG] Explicit provider installation configuration is set
2021/01/08 13:44:06 [TRACE] Selected provider installation method cliconfig.ProviderInstallationFilesystemMirror("$HOME/.terraform.d/providers") with includes [] and excludes []

Keybase proof

I hereby claim:

  • I am varac on github.
  • I am varac (https://keybase.io/varac) on keybase.
  • I have a public key whose fingerprint is 4AFA AA88 2998 AC89 1E7B DD4D 5465 E77E 7876 ED04

To claim this, I am signing this object:

@varac
varac / Vagrant-cachier issue #119
Created August 22, 2014 12:05
Vagrant-cachier works fine on initial 'vagrant up', but not on subsequent tries #119
» VAGRANT_LOG=debug vagrant up && VAGRANT_LOG=debug vagrant reload
INFO global: Vagrant version: 1.6.3
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_DEFAULT_PROVIDER="libvirt"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/bin/../embedded/gems/gems/vagrant-1.6.3/bin/vagrant"
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/bin/../embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_DETECTED_OS="Linux"
@varac
varac / gist:4673993
Created January 30, 2013 15:26
puppet tags
--- puppet/manifests » cat tags.pp
if tagged('one') { notice ('one')}
notice ('two')
--- puppet/manifests » puppet apply tags.pp --tags one
notice: Scope(Class[main]): two
notice: Finished catalog run in 0.06 seconds