-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
188 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
src/main/groovy/com/rundeck/plugins/ansible/plugin/AnsiblePluginGroup.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
package com.rundeck.plugins.ansible.plugin; | ||
|
||
import com.dtolabs.rundeck.core.plugins.Plugin; | ||
import com.dtolabs.rundeck.core.plugins.configuration.Describable; | ||
import com.dtolabs.rundeck.core.plugins.configuration.Description; | ||
import com.dtolabs.rundeck.core.plugins.configuration.PluginAdapterUtility; | ||
import com.dtolabs.rundeck.plugins.ServiceNameConstants; | ||
import com.dtolabs.rundeck.plugins.config.PluginGroup; | ||
import com.dtolabs.rundeck.plugins.descriptions.PluginDescription; | ||
import com.dtolabs.rundeck.plugins.descriptions.PluginProperty; | ||
import com.dtolabs.rundeck.plugins.util.DescriptionBuilder; | ||
|
||
|
||
@Plugin(service = ServiceNameConstants.PluginGroup, name = "Ansible Project Configuration") | ||
@PluginDescription(title = "Ansible", description = "Plugin basic ansible configurations") | ||
public class AnsiblePluginGroup implements PluginGroup, Describable { | ||
|
||
public String getAnsibleConfigFilePath() { | ||
return ansibleConfigFilePath; | ||
} | ||
|
||
public void setAnsibleConfigFilePath(String ansibleConfigFilePath) { | ||
this.ansibleConfigFilePath = ansibleConfigFilePath; | ||
} | ||
|
||
public String getAnsibleBinariesDirPath() { | ||
return ansibleBinariesDirPath; | ||
} | ||
|
||
public void setAnsibleBinariesDirPath(String ansibleBinariesDirPath) { | ||
this.ansibleBinariesDirPath = ansibleBinariesDirPath; | ||
} | ||
|
||
public Boolean getEncryptExtraVars() { | ||
return encryptExtraVars; | ||
} | ||
|
||
public void setEncryptExtraVars(Boolean encryptExtraVars) { | ||
this.encryptExtraVars = encryptExtraVars; | ||
} | ||
|
||
@PluginProperty( | ||
title = "Ansible config file path", | ||
description = "Set ansible config file path." | ||
) | ||
//@RenderingOptions({ | ||
// @RenderingOption(key = StringRenderingConstants.GROUP_NAME, value = "Authentication") | ||
//}) | ||
String ansibleConfigFilePath; | ||
|
||
@PluginProperty( | ||
title = "Ansible binaries directory path", | ||
description = "Set ansible binaries directory path." | ||
) | ||
//@RenderingOptions({ | ||
// @RenderingOption(key = StringRenderingConstants.GROUP_NAME, value = "Authentication") | ||
//}) | ||
String ansibleBinariesDirPath; | ||
|
||
@PluginProperty( | ||
title = "Encrypt Extra Vars.", | ||
description = "Encrypt the value of the extra vars keys." | ||
) | ||
//@RenderingOptions({ | ||
// @RenderingOption(key = StringRenderingConstants.GROUP_NAME, value = "Authentication") | ||
//}) | ||
Boolean encryptExtraVars; | ||
|
||
@Override | ||
public Description getDescription() { | ||
DescriptionBuilder builder = DescriptionBuilder.builder(); | ||
Description description = PluginAdapterUtility.buildDescription(this, builder); | ||
return builder.build(); | ||
} | ||
} |