return profile_list
# -------------------------------------------------------------------------
- def ensure_remote_file(self, local_file, remote_file):
+ def ensure_remote_file(self, local_file, remote_file, check_parent=True):
- self.check_remote_directory(remote_file.parent)
+ if check_parent:
+ self.check_remote_directory(remote_file.parent)
if self.verbose > 1:
msg = _("Checking remote file {rfile!r} based on local {lfile!r} ...").format(
self.ensure_remote_file(local_ks, remote_ks)
+ # -------------------------------------------------------------------------
+ def ensure_snippets(self):
+
+ local_snippets_dir = self.base_dir / 'snippets'
+
# -------------------------------------------------------------------------
def add_system(self, name, fqdn, mac_address, comment=None):
"""Creating a new system."""
--- /dev/null
+## !/bin/bash
+#raw
+
+HASH_LINE="#######################################################################################"
+
+echo "$(date --rfc-3339=seconds): Das ist das Post-Install-Script '$0'."
+echo
+
+if [[ -z "${hostname}" ]] ; then
+ hostname="template.pixelpark.com"
+fi
+IP_ADDRESS_ETH0=$( host "${hostname}" | sed -e 's/.*has address[ ][ ]*//' )
+DOMAIN=$( echo "${hostname}" | cut -d. -f2,3 )
+SIMPLE_HOSTNAME=$( echo "${hostname}" | cut -d. -f1 )
+
+if [[ -z "${ip_address_eth0}" ]] ; then
+ ip_address_eth0="${IP_ADDRESS_ETH0}"
+fi
+
+#end raw
+## vim: ts=4 et list