浏览代码

HPCC-24443: ESP app: add ws_sql as an application called 'sql2ecl'

Signed-off-by: afishbeck <anthony.fishbeck@lexisnexisrisk.com>
afishbeck 4 年之前
父节点
当前提交
0bd501c5ff

+ 1 - 0
esp/applications/CMakeLists.txt

@@ -16,3 +16,4 @@
 HPCC_ADD_SUBDIRECTORY (eclwatch)
 HPCC_ADD_SUBDIRECTORY (eclservices)
 HPCC_ADD_SUBDIRECTORY (eclqueries)
+HPCC_ADD_SUBDIRECTORY (sql2ecl)

+ 28 - 0
esp/applications/sql2ecl/CMakeLists.txt

@@ -0,0 +1,28 @@
+################################################################################
+#    HPCC SYSTEMS software Copyright (C) 2020 HPCC Systems®.
+#
+#    Licensed under the Apache License, Version 2.0 (the "License");
+#    you may not use this file except in compliance with the License.
+#    You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#    Unless required by applicable law or agreed to in writing, software
+#    distributed under the License is distributed on an "AS IS" BASIS,
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#    See the License for the specific language governing permissions and
+#    limitations under the License.
+################################################################################
+
+set ( ESP_APPLICATION_FILES
+    ${CMAKE_CURRENT_SOURCE_DIR}/esp.yaml
+    ${CMAKE_CURRENT_SOURCE_DIR}/application.yaml
+    ${CMAKE_CURRENT_SOURCE_DIR}/ldap.yaml
+    ${CMAKE_CURRENT_SOURCE_DIR}/ldap_authorization_map.yaml
+    ${CMAKE_CURRENT_SOURCE_DIR}/plugins.yaml
+    ${CMAKE_CURRENT_SOURCE_DIR}/directories.yaml
+)
+
+FOREACH( iFile ${ESP_APPLICATION_FILES} )
+    Install( FILES ${iFile} DESTINATION componentfiles/applications/sql2ecl COMPONENT Runtime )
+ENDFOREACH ( iFile )

+ 4 - 0
esp/applications/sql2ecl/application.yaml

@@ -0,0 +1,4 @@
+application:
+  name: sql2ecl
+  services:
+   - ws_sql

+ 11 - 0
esp/applications/sql2ecl/directories.yaml

@@ -0,0 +1,11 @@
+directories:
+  log: "/var/log/[NAME]/[INST]"
+  run: "/var/lib/[NAME]/[INST]"
+  conf: "/etc/[NAME]/[INST]"
+  temp: "/var/lib/[NAME]/[INST]/temp"
+  data: "/var/lib/[NAME]/hpcc-data/[COMPONENT]"
+  data2: "/var/lib/[NAME]/hpcc-data2/[COMPONENT]"
+  data3: "/var/lib/[NAME]/hpcc-data3/[COMPONENT]"
+  mirror: "/var/lib/[NAME]/hpcc-mirror/[COMPONENT]"
+  query: "/var/lib/[NAME]/queries/[INST]"
+  lock: "/var/lock/[NAME]/[INST]"

+ 27 - 0
esp/applications/sql2ecl/esp.yaml

@@ -0,0 +1,27 @@
+esp:
+   instance: sql2ecl
+   description: SQL2ECL Service
+   daliServers: dali
+   auth: ldap
+   tls: true
+   port: 8880
+   enableSEHMapping: true
+   httpConfigAccess: true
+   logLevel: 1
+   maxBacklogQueueSize: 200
+   portalurl: http://hpccsystems.com/download
+   logDir: "-"
+
+   tls_config:
+     certificate: /etc/HPCCSystems/certificates/{$instance}/server.crt
+     privatekey: /etc/HPCCSystems/certificates/{$instance}/private.key
+     passphrase: JHjdi6DDptMwYmJNTZsqjg==
+     cipherList:
+       verify:
+          enable: false
+          address_match: false
+          accept_selfsigned: true
+          ca_certificates:
+            - path: "ca.pem"
+          trusted_peers:
+            - anyone

+ 25 - 0
esp/applications/sql2ecl/ldap.yaml

@@ -0,0 +1,25 @@
+ldap:
+   objname: ldapserver
+   description: LDAP server process
+   ldapProtocol: ldaps
+   authMethod: kerberos
+   localDomain: localdomain
+   ldapPort: 389
+   ldapSecurePort: 636
+   systemCommonName: hpcc_admin2
+   systemPassword: ""
+   systemUser: hpcc_admin2
+   adminGroupName: HPCCAdmin
+   maxConnections: 10
+   passwordExpirationWarningDays: 10
+   cacheTimeout: 5
+   ldapTimeoutSecs: 131
+   sharedCache: true
+   checkViewPermissions: ''
+   filesBasedn: ou=files,ou=ecl
+   groupsBasedn: ou=groups,ou=ecl
+   sudoersBasedn: ou=SUDOers
+   systemBasedn: cn=Users
+   usersBasedn: ou=users,ou=ecl
+   resourcesBasedn: ou=WsEcl,ou=EspServices,ou=ecl
+   workunitsBasedn: ou=workunits,ou=ecl

+ 11 - 0
esp/applications/sql2ecl/ldap_authorization_map.yaml

@@ -0,0 +1,11 @@
+ldap:
+   root_access:
+      resource: WsSQLAccess
+      required: Read
+      description: Base access to EclWatch
+   resource_map:
+      ws_ecl:
+         Feature:
+         -  path: WsSQLAccess
+            resource: WsSQLAccess
+            description: Base access to sql2ecl services

+ 9 - 0
esp/applications/sql2ecl/plugins.yaml

@@ -0,0 +1,9 @@
+protocol_plugins:
+  http_protocol: esphttp
+  secure_http_protocol: esphttp
+
+service_plugins:
+  ws_sql: ws_sql
+
+binding_plugins:
+  ws_sql: ws_sql

+ 8 - 0
helm/hpcc/values.yaml

@@ -144,6 +144,14 @@ esp:
   public: true
   servicePort: 8002
 
+- name: sql2ecl
+  application: sql2ecl
+  auth: none
+  tls: off
+  replicas: 1
+  public: true
+  servicePort: 8510
+
 roxie:
 - name: roxie-cluster
   disabled: false