Skip to content

Instantly share code, notes, and snippets.

@kayrus
kayrus / automation.tf
Last active March 8, 2019 08:11
arc-lyra automation in terraform
resource "ccloud_arc_agent_bootstrap_v1" "agent_1" {}
resource "ccloud_arc_agent_v1" "agent_1" {
filter = "@metadata_uuid='c83157fb-b79e-4854-a8be-76db4dbe1209'"
timeouts {
create = "5s"
}
}
@kayrus
kayrus / openstack_bond_vlan.tf
Last active March 25, 2019 05:49
Terraform configuration for vlan on bonding automation for SLES12
provider "openstack" {
version = ">= 1.17.0"
}
variable "private_net" {
default = "private"
}
variable "backup_net" {
default = "private-backup"
@kayrus
kayrus / openstack.patch
Created January 23, 2019 12:16
openstack.patch
diff --git a/openstack/config.go b/openstack/config.go
index 48b8ceb..b6ceb85 100644
--- a/openstack/config.go
+++ b/openstack/config.go
@@ -17,31 +17,34 @@ import (
)
type Config struct {
- CACertFile string
- ClientCertFile string
@kayrus
kayrus / main.go
Created May 29, 2017 15:16 — forked from zonorti/main.go
http to k8s deployment patch. gorilla + k8s go client. For local run set KUBECONFIG path to config file
package main
import (
"flag"
"fmt"
"encoding/json"
"github.com/gorilla/mux"
"github.com/gorilla/handlers"
"io"
@kayrus
kayrus / dnsmasq.md
Last active March 4, 2016 14:13
Configure dnsmasq nameservers through DBUS

Run example:

./dnsmasq.sh 8.8.8.8

Each time you run this script it adds only one DNS server.

dnsmasq.sh: