Changeset 206
- Timestamp:
- 12/18/12 12:53:42 (11 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Changelog
r203 r206 1 4.2.0 2 * Added a new option for commandline and pxeconfig.conf: 3 - commandline: 4 -H, --skip-hostname-lookup-error When hostname lookup fails, skip it (default: False) 5 6 - pxeconfig.conf 7 skip_hostname_lookup_error: 1 8 9 This is mostly used for cluster when you just want to install all the nodes, but not all 10 racks/blade-chassis are equally filled with nodes. 11 Author: Bas van der Vlies 12 1 13 4.1.0: 2 14 * Added two new configuration options for pxeconfig.conf file: closes #17 -
trunk/debian/changelog
r203 r206 1 pxeconfig (4.2.0-1) stable; urgency=low 2 3 * See Changelog 4 5 -- Bas van der Vlies <basv@sara.nl> Tue, 18 Dec 2012 12:45:18 +0100 6 1 7 pxeconfig (4.1.0-1) stable; urgency=low 2 8 -
trunk/pxeconfig.spec
r203 r206 4 4 5 5 Name: pxeconfig 6 Version: 4. 1.06 Version: 4.2.0 7 7 Release: 1%{?dist} 8 8 License: See LICENSE -
trunk/setup.py
r171 r206 13 13 14 14 setup ( name = 'pxeconfig', 15 version = '3.1.0',16 17 18 19 url = 'https://subtrac.sara.nl/oss/pxeconfig',15 version = '4.2.0', 16 description = 'SARA pxeconfig utilities', 17 author = 'Bas van der Vlies', 18 author_email = 'pxeconfig@sara.nl', 19 url = 'https://oss.trac.sara.nl/oss/pxeconfig', 20 20 21 21 22 23 24 22 extra_path = 'pxeconfig', 23 package_dir = { '' : 'src' }, 24 py_modules = [ 'pxeconfig', 'pxeconfigd', 'pxe_global', 'AdvancedParser' ], 25 25 ) -
trunk/src/pxeconfig.py
r203 r206 74 74 START = 'start' 75 75 END = 'end' 76 VERSION = ' 3.1.0'76 VERSION = '4.2.0' 77 77 78 78 def select_pxe_configfile(): … … 233 233 SCRIPT_HOOK_ADD = False, 234 234 SCRIPT_HOOK_REMOVE = False, 235 SKIP_HOSTNAME_ERRORS = False, 235 236 ) 236 237 … … 263 264 dest = 'VERBOSE', 264 265 help = 'Make the program more verbose (default: False)' 266 ) 267 268 p.add_option('-H', '--skip-hostname-lookup-error', 269 action = 'store_true', 270 dest = 'SKIP_HOSTNAME_LOOKUP_ERROR', 271 help = 'When hostname lookup fails, skip it (default: False)' 265 272 ) 266 273 … … 309 316 310 317 318 if not options.SKIP_HOSTNAME_LOOKUP_ERROR: 319 try: 320 options.SKIP_HOSTNAME_LOOKUP_ERROR = defaults['skip_hostname_lookup_error'] 321 except KeyError, detail: 322 pass 323 311 324 ## This will be obsoleted by client_script_hook_add 312 325 # … … 343 356 mac_2_hex(host, options) 344 357 else: 345 host_2_hex(host, options) 358 try: 359 host_2_hex(host, options) 360 except PxeConfig, detail: 361 362 if options.SKIP_HOSTNAME_LOOKUP_ERROR: 363 print 'Skipping Hostname lookup failed for: %s' %(host) 364 continue 365 else: 366 print detail 367 sys.exit(1) 346 368 347 369 def main(): -
trunk/src/pxeconfigd.py
r196 r206 26 26 config file which tells how the node must boot. This daemon 27 27 enables a client to remove his/here pxe config file. With the 28 29 30 31 32 28 next boot it will use the default one. 29 30 command line option: 31 -V/--version 32 Prints the version number and exits 33 33 34 34 Note: 35 This server can ONLY be started from inetd .35 This server can ONLY be started from inetd/xinetd. 36 36 """ 37 37 import time … … 59 59 60 60 PXE_CONF_DIR = '/tftpboot/pxelinux.cfg' 61 VERSION = ' 3.1.0'61 VERSION = '4.2.0' 62 62 63 63 # Give the current time
Note: See TracChangeset
for help on using the changeset viewer.