diff --git a/openldap_knf/openldap_vnfd.yaml b/openldap_knf/openldap_vnfd.yaml index 3697b53df7823e81ecb7380a4adb47a88b5bdc98..152efa66499c94955afd1e6dc69f3864e25e9a2c 100644 --- a/openldap_knf/openldap_vnfd.yaml +++ b/openldap_knf/openldap_vnfd.yaml @@ -11,7 +11,7 @@ vnfd: - id: mgmtnet kdu: - name: ldap - helm-chart: stable/openldap:1.2.3 + helm-chart: stable/openldap mgmt-cp: mgmt-ext product-name: openldap_knf provider: Telefonica diff --git a/openldap_ns/README.md b/openldap_ns/README.md index 8424611f2d15cb87c99b6ce445e1bfb901d63c46..93fb79c6bfbb5bb6723650a7b2a6c3a0fb19844c 100644 --- a/openldap_ns/README.md +++ b/openldap_ns/README.md @@ -1,26 +1,46 @@ -# SIMPLE OPEN-LDAP CHART - -Descriptors that installs an openldap version 1.2.1 chart in a K8s cluster - -There is one VNF (openldap\_vnf) with only one KDU. - -There is one NS that connects the VNF to a mgmt network - -## Onboarding and instantiation - -```bash -osm nfpkg-create openldap_knf.tar.gz -osm nspkg-create openldap_ns.tar.gz -osm ns-create --ns_name ldap --nsd_name openldap_ns --vim_account | --ssh_keys ${HOME}/.ssh/id_rsa.pub -``` - -### Instantiation option - -Some parameters could be passed during the instantiation. - -* replicaCount: Number of Open LDAP replicas that will be created - -```bash -osm ns-create --ns_name ldap --nsd_name openldap_ns --vim_account | --config '{additionalParamsForVnf: [{"member-vnf-index": "openldap", "additionalParams": {"replicaCount": "2"}}]}' -``` - +# SIMPLE OPEN-LDAP CHART + +Descriptors that installs an openldap version 1.2.1 chart in a K8s cluster + +There is one VNF (openldap\_vnf) with only one KDU. + +There is one NS that connects the VNF to a mgmt network + +## Onboarding and instantiation + +```bash +osm nfpkg-create openldap_knf.tar.gz +osm nspkg-create openldap_ns.tar.gz +osm ns-create --ns_name ldap --nsd_name openldap_ns --vim_account | --ssh_keys ${HOME}/.ssh/id_rsa.pub +``` + +### Instantiation option + +Some parameters could be passed during the instantiation. + +* replicaCount: Number of Open LDAP replicas that will be created + +```bash +osm ns-create --ns_name ldap --nsd_name openldap_ns --vim_account | --config '{additionalParamsForVnf: [{"member-vnf-index": "openldap", "additionalParams": {"replicaCount": "2"}}]}' +osm ns-create --ns_name ldap --nsd_name openldap_ns --vim_account | --config_file params.yaml +``` + +## Test deployment + +```bash +helm -n list +kubectl -n get all +kubectl -n get service +``` + +## Testing LDAP server + +```bash +sudo apt-get update +sudo apt-get install ldap-utils +# With LB: +ldapsearch -x -H ldap://:389 -b dc=example,dc=org -D "cn=admin,dc=example,dc=org" -w osm4u +# With NodePort +ldapsearch -x -H ldap://: -b dc=example,dc=org -D "cn=admin,dc=example,dc=org" -w osm4u +``` + diff --git a/openldap_ns/params/params.yaml b/openldap_ns/params/params.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8844ecb1777d8f4d4e7bb0a347fadca0e1cb04df --- /dev/null +++ b/openldap_ns/params/params.yaml @@ -0,0 +1,24 @@ +vld: +- name: mgmtnet + vim-network-name: internal +additionalParamsForVnf: +- member-vnf-index: openldap + additionalParamsForKdu: + - kdu_name: ldap + additionalParams: + # replicaCount: 2 + # service.loadBalancerIP: '172.21.251.X' # MetalLB IP Address + # service.type: NodePort + service: + type: NodePort + # loadBalancerIP: '172.21.251.X' # MetalLB IP Address + adminPassword: osm4u + configPassword: osm4u + env: + LDAP_ORGANISATION: "Example Inc." + LDAP_DOMAIN: "example.org" + LDAP_BACKEND: "hdb" + LDAP_TLS: "true" + LDAP_TLS_ENFORCE: "false" + LDAP_REMOVE_CONFIG_AFTER_SETUP: "true" +