-
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.
Merge pull request #373 from rundeck-plugins/RUN-2566
RUN-2566: add a new mechanisms to wait from the prompt of vault-ids
- Loading branch information
Showing
8 changed files
with
217 additions
and
38 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
44 changes: 44 additions & 0 deletions
44
...mport/ansible-test/rundeck-ansible-test/jobs/job-0ea27de5-ef36-4a2f-b09c-1bd548eb78d4.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,44 @@ | ||
<joblist> | ||
<job> | ||
<defaultTab>nodes</defaultTab> | ||
<description></description> | ||
<dispatch> | ||
<excludePrecedence>true</excludePrecedence> | ||
<keepgoing>false</keepgoing> | ||
<rankOrder>ascending</rankOrder> | ||
<successOnEmptyNodeFilter>false</successOnEmptyNodeFilter> | ||
<threadcount>1</threadcount> | ||
</dispatch> | ||
<executionEnabled>true</executionEnabled> | ||
<group>Ansible</group> | ||
<id>0ea27de5-ef36-4a2f-b09c-1bd548eb78d4</id> | ||
<loglevel>INFO</loglevel> | ||
<name>simple-inline-playbook-user-encryption-and-ssh-pass</name> | ||
<nodeFilterEditable>false</nodeFilterEditable> | ||
<nodefilters> | ||
<filter>name: ssh-node </filter> | ||
</nodefilters> | ||
<nodesSelectedByDefault>true</nodesSelectedByDefault> | ||
<plugins /> | ||
<scheduleEnabled>true</scheduleEnabled> | ||
<sequence keepgoing='false' strategy='node-first'> | ||
<command> | ||
<node-step-plugin type='com.batix.rundeck.plugins.AnsiblePlaybookInlineWorkflowNodeStep'> | ||
<configuration> | ||
<entry key='ansible-become' value='false' /> | ||
<entry key='ansible-encrypt-extra-vars' value='false' /> | ||
<entry key='ansible-extra-param' value='--extra-vars=@/home/rundeck/ansible/user-encrypted-env-vars.yaml' /> | ||
<entry key='ansible-playbook-inline' value='- hosts: all gather_facts: false tasks: - name: Hello World! debug: msg: "Hello World!" - name: wait shell: "sleep 15" register: sh_output - name: Get Disk Space shell: "df -h" register: sh_output - debug: msg={{hostvars[inventory_hostname]}} - debug: var=sh_output.stdout_lines - debug: msg="{{ username }}" - debug: msg="{{ token }}" - debug: msg="{{ environmentTest }}" ' /> | ||
<entry key='ansible-ssh-auth-type' value='password' /> | ||
<entry key='ansible-ssh-passphrase-option' value='option.password' /> | ||
<entry key='ansible-ssh-password-storage-path' value='keys/project/ansible-test/ssh-node.pass' /> | ||
<entry key='ansible-ssh-use-agent' value='false' /> | ||
<entry key='ansible-ssh-user' value='rundeck' /> | ||
<entry key='ansible-vault-storage-path' value='keys/project/ansible-test/vault-user.pass' /> | ||
</configuration> | ||
</node-step-plugin> | ||
</command> | ||
</sequence> | ||
<uuid>0ea27de5-ef36-4a2f-b09c-1bd548eb78d4</uuid> | ||
</job> | ||
</joblist> |
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
13 changes: 13 additions & 0 deletions
13
src/main/groovy/com/rundeck/plugins/ansible/util/VaultPrompt.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,13 @@ | ||
package com.rundeck.plugins.ansible.util; | ||
|
||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
@Builder | ||
@Data | ||
public class VaultPrompt { | ||
|
||
private String vaultId; | ||
private String vaultPassword; | ||
|
||
} |
Oops, something went wrong.