def builderPhase2( self ): Ganymede.debug( "LDAPBuilderTask builderPhase2 running" ) build_script = System.getProperty( "ganymede.biulder.scriptlocation" ) if not build_script: raise RuntimeException( "Unable to determine builder script location" ) else: build_script = PathComplete.completePath( build_script ) + "ldapbuilder" if not os.path.is_file( build_script ): raise RuntimeException( build_script + " doesn't exist, not running external LDAP build script" ) os.system( build_script ) Ganymede.debug( "LDAPBuilderTask builderPhase2 complete" ) return 1
def builderPhase1( self ): Ganymede.debug( "LDAPBuilderTask builderPhase1 running" ) self.dnsdomain = System.getProperty("ganymede.gash.dnsdomain") if not self.dnsdomain: raise RuntimeException("LDAPBuilder not able to determine dns domain name") self.output_path = System.getProperty("ganymede.builder.output") if not self.output_path: raise RuntimeException("LDAPBuilder not able to determine output directory") else: self.output_path = PathComplete.completePath( self.output_path ) self.build_users_and_groups() self.build_netgroups() Ganymede.debug( "LDAPBuilderTask builderPhase1 complete" ) return 1
def builderPhase2(self): Ganymede.debug("LDAPBuilderTask builderPhase2 running") build_script = System.getProperty("ganymede.biulder.scriptlocation") if not build_script: raise RuntimeException( "Unable to determine builder script location") else: build_script = PathComplete.completePath( build_script) + "ldapbuilder" if not os.path.is_file(build_script): raise RuntimeException( build_script + " doesn't exist, not running external LDAP build script") os.system(build_script) Ganymede.debug("LDAPBuilderTask builderPhase2 complete") return 1
def builderPhase1(self): Ganymede.debug("LDAPBuilderTask builderPhase1 running") self.dnsdomain = System.getProperty("ganymede.gash.dnsdomain") if not self.dnsdomain: raise RuntimeException( "LDAPBuilder not able to determine dns domain name") self.output_path = System.getProperty("ganymede.builder.output") if not self.output_path: raise RuntimeException( "LDAPBuilder not able to determine output directory") else: self.output_path = PathComplete.completePath(self.output_path) self.build_users_and_groups() self.build_netgroups() Ganymede.debug("LDAPBuilderTask builderPhase1 complete") return 1