Run example:
./dnsmasq.sh 8.8.8.8
Each time you run this script it adds only one DNS server.
dnsmasq.sh
:
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" | |
} | |
} |
provider "openstack" { | |
version = ">= 1.17.0" | |
} | |
variable "private_net" { | |
default = "private" | |
} | |
variable "backup_net" { | |
default = "private-backup" |
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 |
package main | |
import ( | |
"flag" | |
"fmt" | |
"encoding/json" | |
"github.com/gorilla/mux" | |
"github.com/gorilla/handlers" | |
"io" |
Run example:
./dnsmasq.sh 8.8.8.8
Each time you run this script it adds only one DNS server.
dnsmasq.sh
: