Skip to content
This repository has been archived by the owner on Sep 15, 2021. It is now read-only.

Commit

Permalink
bug 545895: create new linux and win32 ix ref machines - ix support i…
Browse files Browse the repository at this point in the history
…n host key generator. r=catlee
  • Loading branch information
bhearsum committed Feb 26, 2010
1 parent 09b5e85 commit 7ad9a4e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions buildfarm/opsi/regenerate-hostkey.py
Expand Up @@ -10,7 +10,9 @@
KEY_FILE=path.join("c:\\", "program files", "opsi.org", "preloginloader",
"cfg", "locked.cfg")
LOG_FILE=path.join("c:\\", "tmp", "key-generator.log")
REF_PLATFORMS={'build': 'win2k3-ref-img', 'talos-xp': 'talos-r3-xp-ref',
REF_PLATFORMS={'build': 'win2k3-ref-img',
'build-ix': 'win32-ix-ref',
'talos-xp': 'talos-r3-xp-ref',
'talos-win7': 'talos-r3-w7-ref'}

def generate_hash(str):
Expand All @@ -24,7 +26,11 @@ def get_ref_platform_key(hostname):
return generate_hash(REF_PLATFORMS['talos-win7'])
else:
return None
return generate_hash(REF_PLATFORMS['build'])
else:
if 'ix' in hostname:
return generate_hash(REF_PLATFORMS['build-ix'])
else:
return generate_hash(REF_PLATFORMS['build'])

def write_new_key(host, cp, keyfile):
newKey = generate_hash(host)
Expand Down

0 comments on commit 7ad9a4e

Please sign in to comment.