Advertisement
Guest User

Rundeck Debconf

a guest
Jul 2nd, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.84 KB | None | 0 0
  1. <job>
  2.   <context></context>
  3.   <defaultTab>nodes</defaultTab>
  4.   <description/>
  5.   <dispatch></dispatch>
  6.   <executionEnabled>true</executionEnabled>
  7.   <id>fb82cfee-6a5a-49df-bad0-e640a297373d</id>
  8.   <loglevel>INFO</loglevel>
  9.   <name>Setup iptables</name>
  10.   <nodeFilterEditable>false</nodeFilterEditable>
  11.   <nodefilters>
  12.     <filter>${option.node}</filter>
  13.   </nodefilters>
  14.   <nodesSelectedByDefault>true</nodesSelectedByDefault>
  15.   <plugins/>
  16.   <scheduleEnabled>true</scheduleEnabled>
  17.   <sequence keepgoing="false" strategy="node-first">
  18.     <command>
  19.       <description>Set autosave V4 false.</description>
  20.       <exec>
  21.         echo iptables-persistent iptables-persistent/autosave_v4 boolean false | sudo debconf-set-selections
  22.       </exec>
  23.     </command>
  24.     <command>
  25.       <description>Set autosave V6 false</description>
  26.       <exec>
  27.         echo iptables-persistent iptables-persistent/autosave_v6 boolean false | sudo debconf-set-selections
  28.       </exec>
  29.     </command>
  30.     <command>
  31.       <description>Install iptables persistent</description>
  32.       <exec>sudo apt-get -y install iptables-persistent</exec>
  33.     </command>
  34.     <command>
  35.       <description>Upload iptables rules</description>
  36.       <node-step-plugin type="copyfile">
  37.         <configuration>
  38.           <entry key="destinationPath" value="~/"/>
  39.           <entry key="echo" value="true"/>
  40.           <entry key="pattern" value="rules\.v."/>
  41.           <entry key="recursive" value="false"/>
  42.           <entry key="sourcePath" value="/home/rundeck/files/generic/"/>
  43.         </configuration>
  44.       </node-step-plugin>
  45.     </command>
  46.     <command>
  47.       <description>Move ipfiles to /etc/iptables/</description>
  48.       <exec>sudo mv ~/rules.v4 ~/rules.v6 /etc/iptables/</exec>
  49.     </command>
  50.   </sequence>
  51.   <uuid>fb82cfee-6a5a-49df-bad0-e640a297373d</uuid>
  52. </job>
  53. </joblist>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement