Skip to content

Commit

Permalink
add ipv6 opsfiles
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Cunnie <bcunnie@pivotal.io>
  • Loading branch information
cppforlife committed Aug 26, 2017
1 parent dc25468 commit 214ebac
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 2 deletions.
29 changes: 29 additions & 0 deletions misc/ipv6/bosh.yml
@@ -0,0 +1,29 @@
- type: replace
path: /networks/name=default/subnets/0/dns
value:
- "2001:4860:4860:0000:0000:0000:0000:8888"
- "2001:4860:4860:0000:0000:0000:0000:8844"

- type: replace
path: /instance_groups/name=bosh/properties/director/ipv6_listen?
value: true

- type: replace
path: /instance_groups/name=bosh/properties/blobstore/ipv6_listen?
value: true

- type: replace
path: /instance_groups/name=bosh/properties/nats/listen_address?
value: "::"

- type: replace
path: /cloud_provider/mbus
value: "https://mbus:((mbus_bootstrap_password))@[((internal_ip))]:6868"

- type: replace
path: /instance_groups/name=bosh/properties/agent/mbus
value: "nats://nats:((nats_password))@[((internal_ip))]:4222"

- type: replace
path: /instance_groups/name=bosh/properties/blobstore/address
value: "[((internal_ip))]"
11 changes: 11 additions & 0 deletions misc/ipv6/credhub.yml
@@ -0,0 +1,11 @@
- type: replace
path: /instance_groups/name=bosh/jobs/name=credhub/properties/credhub/authentication/uaa/url
value: "https://[((internal_ip))]:8443"

- type: replace
path: /instance_groups/name=bosh/properties/director/config_server/url
value: "https://[((internal_ip))]:8844/api/"

- type: replace
path: /instance_groups/name=bosh/properties/director/config_server/uaa/url
value: "https://[((internal_ip))]:8443"
7 changes: 7 additions & 0 deletions misc/ipv6/uaa.yml
@@ -0,0 +1,7 @@
- type: replace
path: /instance_groups/name=bosh/properties/director/user_management/uaa?/url
value: "https://[((internal_ip))]:8443"

- type: replace
path: /instance_groups/name=bosh/jobs/name=uaa/properties/uaa/url
value: "https://[((internal_ip))]:8443"
27 changes: 25 additions & 2 deletions test.sh
Expand Up @@ -18,10 +18,10 @@ function bosh() {
}

echo -e "\nUsed compiled releases\n"
grep -r -i s3.amazonaws.com/bosh-compiled-release-tarballs . | grep -v grep
grep -r -i s3.amazonaws.com/bosh-compiled-release-tarballs . | grep -v grep | grep -v ./.git

echo -e "\nUsed stemcells\n"
grep -r -i d/stemcells . | grep -v grep
grep -r -i d/stemcells . | grep -v grep | grep -v ./.git

echo -e "\nExamples\n"

Expand Down Expand Up @@ -401,6 +401,29 @@ bosh create-env bosh.yml \
-v internal_gw=192.168.56.1 \
-v internal_cidr=192.168.56.0/24

echo "- VirtualBox with IPv6 (remote)"
bosh create-env bosh.yml \
--state=$vars_store_prefix \
--vars-store $(mktemp ${vars_store_prefix}.XXXXXX) \
-o virtualbox/cpi.yml \
-o virtualbox/outbound-network.yml \
-o jumpbox-user.yml \
-o uaa.yml \
-o credhub.yml \
-o misc/ipv6/bosh.yml \
-o misc/ipv6/uaa.yml \
-o misc/ipv6/credhub.yml \
-o virtualbox/remote.yml \
-o virtualbox/ipv6/cpi.yml \
-o virtualbox/ipv6/remote.yml \
-v director_name=vbox \
-v internal_cidr=fd7a:eeed:e696:969f:0000:0000:0000:0000/64 \
-v internal_gw=fd7a:eeed:e696:969f:0000:0000:0000:0001 \
-v internal_ip=fd7a:eeed:e696:969f:0000:0000:0000:0004 \
-v outbound_network_name=NatNetwork \
-v vbox_host=fd7a:eeed:e696:969f:0000:0000:0000:0001 \
-v vbox_username=test

echo "- VirtualBox with BOSH Lite with garden-runc"
bosh create-env bosh.yml \
-o virtualbox/cpi.yml \
Expand Down
7 changes: 7 additions & 0 deletions virtualbox/ipv6/cpi.yml
@@ -0,0 +1,7 @@
- type: replace
path: /instance_groups/name=bosh/jobs/name=virtualbox_cpi/properties/agent/mbus
value: "nats://nats:((nats_password))@[((internal_ip))]:4222"

- type: replace
path: /instance_groups/name=bosh/jobs/name=virtualbox_cpi/properties/blobstore/address
value: "[((internal_ip))]"
8 changes: 8 additions & 0 deletions virtualbox/ipv6/remote.yml
@@ -0,0 +1,8 @@
---
- type: replace
path: /instance_groups/name=bosh/jobs/name=virtualbox_cpi/properties/host
value: "[((vbox_host))]"

- type: replace
path: /cloud_provider/properties/host
value: "[((vbox_host))]"

0 comments on commit 214ebac

Please sign in to comment.