-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refined isolation segments, extended integration.
[Improvements] * Added support for nfs-volume-services, nfs-ldap and smb-volume-services to isolation-groups * Added provision for additional trusted certs to isolation groups. * Added support for partitioned networks to isolation groups. * Added reasonable defaults to isolation groups. --- Refactored isolation groups to match kit philosophy, and used overlay instead of operations space. Refactoring was required to allow environment and ops files to augment isolation segments by merge on name.
- Loading branch information
1 parent
2acb873
commit 31ed34c
Showing
20 changed files
with
3,344 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
bosh-variables: | ||
nfs-ldap-service-user: (( grab params.nfs-ldap-service-user )) | ||
nfs-ldap-host: (( grab params.nfs-ldap-host )) | ||
nfs-ldap-port: (( grab params.nfs-ldap-port )) | ||
nfs-ldap-proto: (( grab params.nfs-ldap-proto )) | ||
nfs-ldap-fqdn: (( grab params.nfs-ldap-fqdn )) | ||
|
||
params: | ||
nfs-ldap-service-user: (( param "Provide value for NFS LDAP service user" )) | ||
nfs-ldap-host: (( param "Provide value for NFS LDAP host" )) | ||
nfs-ldap-port: 389 | ||
nfs-ldap-proto: tcp | ||
nfs-ldap-fqdn: (( param "Provide value for NFS LDAP fqdn" )) | ||
|
18 changes: 18 additions & 0 deletions
18
overlay/dynamic-templates/isolation-segment-additional-trusted-certs.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
meta: | ||
__base_trusted_certs: | ||
- ((diego_instance_identity_ca.ca)) | ||
- ((credhub_tls.ca)) | ||
- ((uaa_ssl.ca)) | ||
additional_trusted_certs: [] | ||
|
||
instance_groups: | ||
- name: (( grab meta.name )) | ||
jobs: | ||
- name: cflinuxfs3-rootfs-setup | ||
properties: | ||
cflinuxfs3-rootfs: | ||
trusted_certs: (( grab meta.__base_trusted_certs meta.additional_trusted_certs )) | ||
- name: rep | ||
properties: | ||
containers: | ||
trusted_ca_certificates: (( grab meta.__base_trusted_certs meta.additional_trusted_certs )) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
instance_groups: | ||
- (( merge on name )) | ||
- name: (( grab meta.name )) | ||
networks: | ||
- (( replace )) | ||
- name: (( grab meta.network_name || "(( grab params.cf_runtime_network ))" )) | ||
|
||
addons: | ||
- jobs: | ||
- name: bosh-dns-aliases | ||
properties: | ||
aliases: | ||
- domain: _.cell.service.cf.internal | ||
targets: | ||
- (( replace )) | ||
- (( defer append )) | ||
- deployment: ((deployment_name)) | ||
domain: bosh | ||
instance_group: (( grab meta.name )) | ||
network: (( grab meta.network_name || "(( grab params.cf_runtime_network ))" )) | ||
query: _ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
instance_groups: | ||
- name: (( grab meta.name )) | ||
jobs: | ||
- name: nfsv3driver | ||
properties: | ||
nfsv3driver: | ||
ldap_svc_user: ((nfs-ldap-service-user)) | ||
ldap_svc_password: ((nfs-ldap-service-password)) | ||
ldap_host: ((nfs-ldap-host)) | ||
ldap_port: ((nfs-ldap-port)) | ||
ldap_proto: ((nfs-ldap-proto)) | ||
ldap_user_fqdn: ((nfs-ldap-fqdn)) | ||
allowed-in-source: "" | ||
ldap_ca_cert: ((nfs-ldap-ca-cert.ca)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
instance_groups: | ||
- name: (( grab meta.name )) | ||
jobs: | ||
- name: nfsv3driver | ||
properties: | ||
nfsv3driver: | ||
tls: | ||
ca_cert: ((nfsv3driver_cert.ca)) | ||
client_cert: ((nfsv3driver_client_cert.certificate)) | ||
client_key: ((nfsv3driver_client_cert.private_key)) | ||
server_cert: ((nfsv3driver_cert.certificate)) | ||
server_key: ((nfsv3driver_cert.private_key)) | ||
release: nfs-volume | ||
|
||
- name: mapfs | ||
provides: | ||
mapfs: nil | ||
release: mapfs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
instance_groups: | ||
- name: (( grab meta.name )) | ||
jobs: | ||
- name: smbdriver | ||
properties: | ||
tls: | ||
ca_cert: ((smbdriver_cert.ca)) | ||
client_cert: ((smbdriver_client_cert.certificate)) | ||
client_key: ((smbdriver_client_cert.private_key)) | ||
server_cert: ((smbdriver_cert.certificate)) | ||
server_key: ((smbdriver_cert.private_key)) | ||
release: smb-volume |
Oops, something went wrong.