Skip to content

Commit

Permalink
DEVEXP-151: Added task for deploying host certificate templates
Browse files Browse the repository at this point in the history
Verified manually with sample files in ml-app-deployer project
  • Loading branch information
rjrudin committed Dec 20, 2022
1 parent 0874c6d commit 1e90b75
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ class MarkLogicPlugin implements Plugin<Project> {
project.task("mlDeployCertificateAuthorities", type: DeployCertificateAuthoritiesTask, group: securityGroup, description: "Deploy each certificate authority, updating it if it exists, in the configuration directory")
project.task("mlDeployCertificateTemplates", type: DeployCertificateTemplatesTask, group: securityGroup, description: "Deploy each certificate template, updating it if it exists, in the configuration directory")
project.task("mlDeployExternalSecurity", type: DeployExternalSecurityTask, group: securityGroup, description: "Deploy external security configurations, updating each if it exists, in the configuration directory")
project.task("mlDeployHostCertificateTemplates", type: DeployHostCertificateTemplatesTask, group: securityGroup, description: "Deploy host certificate templates, updating each if it exists, in the configuration directory")
project.task("mlDeploySecureCredentials", type: DeploySecureCredentialsTask, group: securityGroup, description: "Deploy secure credentials configurations, updating each if it exists, in the configuration directory")
project.task("mlDeployPrivileges", type: DeployPrivilegesTask, group: securityGroup, description: "Deploy each privilege, updating it if it exists, in the configuration directory")
project.task("mlDeployProtectedCollections", type: DeployProtectedCollectionsTask, group: securityGroup, description: "Deploy each protected collection, updating it if it exists, in the configuration directory")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.marklogic.gradle.task.security

import com.marklogic.gradle.task.MarkLogicTask
import org.gradle.api.tasks.TaskAction

class DeployHostCertificateTemplatesTask extends MarkLogicTask {

@TaskAction
void deployHostCertificateTemplates() {
invokeDeployerCommandWithClassName("InsertCertificateHostsTemplateCommand")
}

}

0 comments on commit 1e90b75

Please sign in to comment.