Skip to content

Commit 1cf366e

Browse files
committed
Added "sealing" directory and a sealing script for Linux
This directory contains scripts to seal virtual machines so that they can be converted into generalized templates. Other virtual machines can then be created from these templates. Signed-off-by: Samuli Seppänen <[email protected]>
1 parent dcae3cd commit 1cf366e

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
bootstrap/custom
2+
sealing/custom

bootstrap/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
This directory contains scripts for bootstrapping new nodes. For example on
2+
Windows they may install SSH and rsync and on Linux fetch and install Puppet.

sealing/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This directory contains scripts for sealing an operating system before making it
2+
a template in RHEV, for example. On Linux sealing typically entails removing
3+
ssh_host keys and removing persistent net rules from udev.

sealing/linux/seal.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
#
3+
# Remove node-specific information to allow converting it into a virtual
4+
# machine template.
5+
#
6+
echo "Removing SSH host keys"
7+
rm -f /etc/ssh/ssh_host_*
8+
9+
echo "Removing persistent net rules from udev"
10+
rm -f /etc/udev/rules.d/70-persistent-net.rules
11+

0 commit comments

Comments
 (0)