from ..xlate import XLATOR
-__version__ = '0.5.5'
+__version__ = '0.5.6'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
files.append('init-puppet')
files.append('update-all-packages')
+ zone = "{z}/{c}".format(z=vm.vsphere, c=vm.cluster)
+
for sname in files:
if self.verbose > 1:
commands.append("echo '------------------------------'")
purpose = self.re_doublequote.sub('\\\"', vm.purpose)
- zone = "{z}/{c}".format(z=vm.vsphere, c=vm.cluster)
commands.append("chmod -v +x /tmp/create-motd")
cmd = (
"/tmp/create-motd --purpose '{p}' --hardware 'vmware (x86_64)' --owner '{o}' "
commands.append("echo '------------------------------'")
commands.append("chmod -v +x /tmp/fix-etc-hosts")
- commands.append("/tmp/fix-etc-hosts --no-ipv6")
+ commands.append("/tmp/fix-etc-hosts --no-ipv6 --location 'VMWare {}'".format(zone))
content += ' provisioner "remote-exec" {\n'
content += ' inline = [\n'