Skip to content
Snippets Groups Projects
Commit 100b5f75 authored by lavado's avatar lavado
Browse files

Merge branch 'openldap-knf' into 'master'

Updates in openldap: chart version, params.yaml, README with testing instructions

See merge request !124
parents 73717cc2 9d83494d
No related branches found
No related tags found
1 merge request!124Updates in openldap: chart version, params.yaml, README with testing instructions
Pipeline #237 passed with stage
in 2 minutes and 7 seconds
......@@ -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
......
# 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 <VIM_ACCOUNT_NAME>|<VIM_ACCOUNT_ID> --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 <VIM_ACCOUNT_NAME>|<VIM_ACCOUNT_ID> --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 <VIM_ACCOUNT_NAME>|<VIM_ACCOUNT_ID> --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 <VIM_ACCOUNT_NAME>|<VIM_ACCOUNT_ID> --config '{additionalParamsForVnf: [{"member-vnf-index": "openldap", "additionalParams": {"replicaCount": "2"}}]}'
osm ns-create --ns_name ldap --nsd_name openldap_ns --vim_account <VIM_ACCOUNT_NAME>|<VIM_ACCOUNT_ID> --config_file params.yaml
```
## Test deployment
```bash
helm -n <PROJECT_ID> list
kubectl -n <PROJECT_ID> get all
kubectl -n <PROJECT_ID> get service
```
## Testing LDAP server
```bash
sudo apt-get update
sudo apt-get install ldap-utils
# With LB:
ldapsearch -x -H ldap://<LB_IP>:389 -b dc=example,dc=org -D "cn=admin,dc=example,dc=org" -w osm4u
# With NodePort
ldapsearch -x -H ldap://<NODE_IP>:<NODE_PORT> -b dc=example,dc=org -D "cn=admin,dc=example,dc=org" -w osm4u
```
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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment