--
You received this message because you are subscribed to the Google Groups "rundeck-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rundeck-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rundeck-discuss/6ff62640-6373-4498-b2f2-9b38e90bc2aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Alex Honor
[SimplifyOps, Inc | a...@simplifyops.com ]
Be sure to comment and vote on Rundeck Feature Development!
- description: Manages FireMotD on Linux servers.
executionEnabled: true
group: Linux/Templates
id: 6c970e16-b8c1-46ee-a8f2-f2faae74cca2
loglevel: DEBUG
multipleExecutions: true
name: DAF-Linux-FireMotD
nodefilters:
dispatch:
excludePrecedence: true
keepgoing: false
rankOrder: ascending
threadcount: 1
filter: 'os-name: Linux'
nodesSelectedByDefault: false
scheduleEnabled: true
sequence:
commands:
- configuration:
destinationPath: ~/daf_linux_functions.sh
echo: 'true'
sourcePath: /var/rundeck/projects/DAF/scripts/daf_linux_functions.sh
description: Copy Linux Functions
nodeStep: true
type: copyfile
- configuration:
destinationPath: /etc/profile.d/daf_linux_logon.sh
echo: 'true'
sourcePath: /var/rundeck/projects/DAF/scripts/daf_linux_logon.sh
description: 'Copy Logon Script => '
nodeStep: true
type: copyfile
- description: 'Clone and Make => '
script: |-
#!/bin/bash
Verbose=1
. ~/daf_linux_functions.sh
WriteLog Output Info "Removing FireMotD folder."
rm -R FireMotD -f
WriteLog Output Info "Checking git existence."
git --version 2>&1 >/dev/null
GitInstalled=$?
if [ $GitInstalled -eq 0 ]; then
WriteLog Output Info "Cloning FireMotD."
git clone https://github.com/willemdh/FireMotD.git
cd FireMotD
WriteLog Output Info "Making FireMotD."
sudo make all
exit 0
else
WriteLog Output Error "Git not installed."
exit 2
fi
exit 3
keepgoing: true
strategy: node-first
uuid: 6c970e16-b8c1-46ee-a8f2-f2faae74cca2Alex Honor