Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <job>
- <context></context>
- <defaultTab>nodes</defaultTab>
- <description/>
- <dispatch></dispatch>
- <executionEnabled>true</executionEnabled>
- <id>fb82cfee-6a5a-49df-bad0-e640a297373d</id>
- <loglevel>INFO</loglevel>
- <name>Setup iptables</name>
- <nodeFilterEditable>false</nodeFilterEditable>
- <nodefilters>
- <filter>${option.node}</filter>
- </nodefilters>
- <nodesSelectedByDefault>true</nodesSelectedByDefault>
- <plugins/>
- <scheduleEnabled>true</scheduleEnabled>
- <sequence keepgoing="false" strategy="node-first">
- <command>
- <description>Set autosave V4 false.</description>
- <exec>
- echo iptables-persistent iptables-persistent/autosave_v4 boolean false | sudo debconf-set-selections
- </exec>
- </command>
- <command>
- <description>Set autosave V6 false</description>
- <exec>
- echo iptables-persistent iptables-persistent/autosave_v6 boolean false | sudo debconf-set-selections
- </exec>
- </command>
- <command>
- <description>Install iptables persistent</description>
- <exec>sudo apt-get -y install iptables-persistent</exec>
- </command>
- <command>
- <description>Upload iptables rules</description>
- <node-step-plugin type="copyfile">
- <configuration>
- <entry key="destinationPath" value="~/"/>
- <entry key="echo" value="true"/>
- <entry key="pattern" value="rules\.v."/>
- <entry key="recursive" value="false"/>
- <entry key="sourcePath" value="/home/rundeck/files/generic/"/>
- </configuration>
- </node-step-plugin>
- </command>
- <command>
- <description>Move ipfiles to /etc/iptables/</description>
- <exec>sudo mv ~/rules.v4 ~/rules.v6 /etc/iptables/</exec>
- </command>
- </sequence>
- <uuid>fb82cfee-6a5a-49df-bad0-e640a297373d</uuid>
- </job>
- </joblist>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement