Commit f0dc8a20 authored by Noel Alonso's avatar Noel Alonso
Browse files

Merge branch 'dev' into 'main'

Añade hostname para fijar en commits de flows

See merge request redmic-project/etl/nifi-registry!1
parents a58e8777 3fc8a2d9
Loading
Loading
Loading
Loading

.gitlab-ci.yml

0 → 100644
+14 −0
Original line number Diff line number Diff line
include:
  - project: 'redmic-project/gitlab-ci-templates'
    ref: master
    file: '/deployment.yml'

stages:
  - deploy

.deploy:
  variables:
    STACK: etl
    STATUS_CHECK_DELAY: 300
  environment:
    url: https://nifi-registry.${PUBLIC_HOSTNAME}

LICENSE

0 → 100644
+21 −0
Original line number Diff line number Diff line
MIT License

Copyright (c) 2022 REDMIC Project / ETL

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

deploy/.env

0 → 100644
+33 −0
Original line number Diff line number Diff line
NIFI_REGISTRY_HOME=/opt/nifi-registry/nifi-registry-current
INITIAL_ADMIN_IDENTITY=cn=admin,ou=nifi,dc=example,dc=org
LDAP_AUTHENTICATION_STRATEGY=SIMPLE
LDAP_MANAGER_DN=cn=admin,dc=example,dc=org
LDAP_MANAGER_PASSWORD=changeme
LDAP_USER_SEARCH_BASE=ou=nifi,dc=example,dc=org
LDAP_USER_SEARCH_FILTER=cn={0}
LDAP_IDENTITY_STRATEGY=USE_DN
LDAP_URL=ldap://openldap:389
KEYSTORE_TYPE=JKS
KEYSTORE_PASSWORD=changeme
KEY_PASSWORD=changeme
TRUSTSTORE_PASSWORD=changeme
TRUSTSTORE_TYPE=JKS
AUTH=ldap
NIFI_REGISTRY_WEB_HTTPS_HOST=0.0.0.0
NIFI_REGISTRY_WEB_HTTPS_PORT=18443
NIFI_REGISTRY_FLOW_PROVIDER=git
NIFI_REGISTRY_GIT_PASSWORD=changeme
NIFI_REGISTRY_GIT_REMOTE=origin
NIFI_REGISTRY_GIT_REPO=changeme
NIFI_REGISTRY_GIT_USER=changeme

TRAEFIK_SUBDOMAIN=nifi-registry

CONF_VOL_NAME=nifi-registry-conf-vol
DATABASE_VOL_NAME=nifi-registry-database-vol
FLOW_STORAGE_VOL_NAME=nifi-registry-flow-storage-vol
SECURITY_VOL_NAME=nifi-security-vol

VOL_TYPE=nfs4
VOL_ADDR=127.0.0.1
VOL_OPTS=rw,nolock,noatime,tcp,rsize=8192,wsize=8192,timeo=14
+34 −0
Original line number Diff line number Diff line
version: '3.9'

volumes:
  conf-vol:
    name: ${CONF_VOL_NAME}
    driver: local
    driver_opts:
      type: ${VOL_TYPE}
      o: addr=${VOL_ADDR},${VOL_OPTS}
      device: ${CONF_VOL_DEVICE:-:/nifi-registry-conf-vol/}

  database-vol:
    name: ${DATABASE_VOL_NAME}
    driver: local
    driver_opts:
      type: ${VOL_TYPE}
      o: addr=${VOL_ADDR},${VOL_OPTS}
      device: ${DATABASE_VOL_DEVICE:-:/nifi-registry-database-vol/}

  flow-storage-vol:
    name: ${FLOW_STORAGE_VOL_NAME}
    driver: local
    driver_opts:
      type: ${VOL_TYPE}
      o: addr=${VOL_ADDR},${VOL_OPTS}
      device: ${FLOW_STORAGE_VOL_DEVICE:-:/nifi-registry-flow-storage-vol/}

  security-vol:
    name: ${SECURITY_VOL_NAME}
    driver: local
    driver_opts:
      type: ${VOL_TYPE}
      o: addr=${VOL_ADDR},${VOL_OPTS}
      device: ${SECURITY_VOL_DEVICE:-:/nifi-security-vol/}
+33 −0
Original line number Diff line number Diff line
version: '3.9'

services:
  nifi-registry:
    deploy:
      placement:
        constraints:
          - node.role == worker

volumes:
  conf-vol:
    name: ${CONF_VOL_NAME}
    driver: 'cloudstor:aws'
    driver_opts:
      backing: shared

  database-vol:
    name: ${DATABASE_VOL_NAME}
    driver: 'cloudstor:aws'
    driver_opts:
      backing: shared

  flow-storage-vol:
    name: ${FLOW_STORAGE_VOL_NAME}
    driver: 'cloudstor:aws'
    driver_opts:
      backing: shared

  security-vol:
    name: ${SECURITY_VOL_NAME}
    driver: 'cloudstor:aws'
    driver_opts:
      backing: shared
Loading