-
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.
add test for node executor with password auth
- Loading branch information
Showing
10 changed files
with
120 additions
and
12 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
1 change: 1 addition & 0 deletions
1
functional-test/src/test/resources/docker/ansible/inventory.ini
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
[servers] | ||
ssh-node ansible_host=ssh-node | ||
ssh-node-password ansible_host=ssh-node ansible_connection=ssh ansible_user=rundeck ansible_ssh_pass=testpassword123 |
6 changes: 6 additions & 0 deletions
6
functional-test/src/test/resources/docker/ansible/rundeckNodes.yaml
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,6 @@ | ||
ssh-node-password: | ||
nodename: ssh-node-password | ||
hostname: ssh-node | ||
osFamily: Linux | ||
username: rundeck | ||
tags: '' |
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
8 changes: 8 additions & 0 deletions
8
...roject-import/sshPasswordProject/rundeck-sshPasswordProject/files/acls/node-acl.aclpolicy
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,8 @@ | ||
by: | ||
urn: project:sshPasswordProject | ||
for: | ||
storage: | ||
- match: | ||
path: 'keys/project/sshPasswordProject/.*' | ||
allow: [read] | ||
description: Allow access to key storage |
38 changes: 38 additions & 0 deletions
38
...project-import/sshPasswordProject/rundeck-sshPasswordProject/files/etc/project.properties
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,38 @@ | ||
#Mon Jul 08 21:50:51 GMT 2024 | ||
#edit below | ||
project.ansible-binaries-dir-path=/usr/local/bin/ | ||
project.ansible-config-file-path=/home/rundeck/ansible/ansible.cfg | ||
project.ansible-executable=/bin/bash | ||
project.ansible-generate-inventory=true | ||
project.ansible-ssh-auth-type=password | ||
project.ansible-ssh-passphrase-option=option.password | ||
project.ansible-ssh-password-storage-path=keys/project/sshPasswordProject/ssh-node.pass | ||
project.ansible-ssh-user=rundeck | ||
project.description= | ||
project.disable.executions=false | ||
project.disable.schedule=false | ||
project.execution.history.cleanup.batch=500 | ||
project.execution.history.cleanup.enabled=false | ||
project.execution.history.cleanup.retention.days=60 | ||
project.execution.history.cleanup.retention.minimum=50 | ||
project.execution.history.cleanup.schedule=0 0 0 1/1 * ? * | ||
project.jobs.gui.groupExpandLevel=1 | ||
project.label= | ||
project.later.executions.disable=false | ||
project.later.executions.enable=false | ||
project.later.schedule.disable=false | ||
project.later.schedule.enable=false | ||
project.name=sshPasswordProject | ||
project.nodeCache.enabled=false | ||
project.nodeCache.firstLoadSynch=true | ||
project.output.allowUnsanitized=false | ||
project.retry-counter=3 | ||
project.ssh-authentication=privateKey | ||
resources.source.1.type=local | ||
resources.source.2.config.file=/home/rundeck/ansible/rundeckNodes.yaml | ||
resources.source.2.config.format=resourceyaml | ||
resources.source.2.config.generateFileAutomatically=true | ||
resources.source.2.config.writeable=true | ||
resources.source.2.type=file | ||
service.FileCopier.default.provider=sshj-scp | ||
service.NodeExecutor.default.provider=com.batix.rundeck.plugins.AnsibleNodeExecutor |
30 changes: 30 additions & 0 deletions
30
...swordProject/rundeck-sshPasswordProject/jobs/job-f04f17a9-77cf-4feb-aec1-889a3de0f5ae.xml
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,30 @@ | ||
<joblist> | ||
<job> | ||
<defaultTab>nodes</defaultTab> | ||
<description>it targets a single ansible node</description> | ||
<dispatch> | ||
<excludePrecedence>true</excludePrecedence> | ||
<keepgoing>false</keepgoing> | ||
<rankOrder>ascending</rankOrder> | ||
<successOnEmptyNodeFilter>false</successOnEmptyNodeFilter> | ||
<threadcount>1</threadcount> | ||
</dispatch> | ||
<executionEnabled>true</executionEnabled> | ||
<id>f04f17a9-77cf-4feb-aec1-889a3de0f5ae</id> | ||
<loglevel>INFO</loglevel> | ||
<name>simpleCommand</name> | ||
<nodeFilterEditable>false</nodeFilterEditable> | ||
<nodefilters> | ||
<filter>name: ssh-node-password </filter> | ||
</nodefilters> | ||
<nodesSelectedByDefault>true</nodesSelectedByDefault> | ||
<plugins /> | ||
<scheduleEnabled>true</scheduleEnabled> | ||
<sequence keepgoing='false' strategy='node-first'> | ||
<command> | ||
<exec>whoami</exec> | ||
</command> | ||
</sequence> | ||
<uuid>f04f17a9-77cf-4feb-aec1-889a3de0f5ae</uuid> | ||
</job> | ||
</joblist> |