예제 #1
0
def auditServersBIXThread(environment, servers, propertiesDictionary, bApplyRequiredChanges) :
    # merge global properties into dict - deliberately overwriting local with global dict all values
    runtimeProperties = dict()
    runtimeProperties.update(globalDictionary)
    runtimeProperties.update(propertiesDictionary)
       
    ##############################################################
    # Base server audit...
    ##############################################################
    auditServersBasePega(environment, servers, runtimeProperties, bApplyRequiredChanges)

    for servername in servers:
        
        if connectSilent(servername, runtimeProperties["username"], runtimeProperties["password"]) == None:
            return

        ##############################################################
        # OO based auditing atoms - automatically reported on...
        ##############################################################
        
        bAllMustPass = True
        AllDatasources = getAllDataSources(servername, runtimeProperties["username"], runtimeProperties["password"])
        if (AllDatasources) :
            auditObjectMolecule1 = auditObjectMolecule("JDBC URL", servername, bAllMustPass)
            for ds in AllDatasources:
                auditObjectMolecule1.auditObjectAtoms.append(auditObjectAtom(servername, runtimeProperties["username"], runtimeProperties["password"], "JDBC URL - " + ds, "/subsystem=datasources/data-source=" + ds + "/", "connection-url", runtimeProperties["targetDSUrl"], bApplyRequiredChanges))
            
        auditReport(environment, servername)
예제 #2
0
def completeChecksPega(env, serverList, propertiesDict, bApplyRequiredChanges):
    # merge global propertiesDict into dict - deliberately overwriting local with global dict all values
    runtimeProperties = dict()
    #runtimeProperties.update(globalDictionary)
    runtimeProperties.update(propertiesDict)

    for servername in serverList :
        auditServersPega(env, servername, runtimeProperties["usernamePega"], propertiesDict, bApplyRequiredChanges)

        auditingLibrary.auditObjectAtoms.append(auditingLibrary.auditObjectAtomCompleteAnAction(servername, runtimeProperties["usernamePega"], runtimeProperties["identityFileFullPath"], runtimeProperties["identityFilePassword"], 'JVM Mem Opts', 'source ~/.bash_profile; grep -ia \'Xmx\' \'/opt/jboss/EAP-6.4.0/bin/standalone.conf\''))
    
        auditReport(env, servername)
예제 #3
0
def auditServersMarketing(environment, servers, propertiesDictionary, bApplyRequiredChanges) :
    # merge global properties into dict - deliberately overwriting local with global dict all values
    
    strThreadPoolId = "auditServersMarketing"    
    for servername in servers:
        # Create new threads
        scatterThread(strThreadPoolId, auditServersMarketingThread, args=(environment, servername, propertiesDictionary, bApplyRequiredChanges))
        
    gatherThreads(strThreadPoolId)

    for servername in servers:
        auditReport(environment, servername)
예제 #4
0
def auditServers(environment, servers, propertiesDict, bApplyRequiredChanges):
    # merge global propertiesDict into dict - deliberately overwriting local with global dict all values
    runtimeProperties = dict()
    runtimeProperties.update(globalProperties.dictionary)
    runtimeProperties.update(propertiesDict)

    for servername in servers:
        ##############################################################
        # Base server audit...
        ##############################################################
        scatterThread("auditServerExtended",
                      auditServerExtended,
                      args=(environment, servername, propertiesDict,
                            bApplyRequiredChanges))
        ##############################################################
        # Base server audit...
        ##############################################################
        # auditServersBaseAudit(environment, servers, propertiesDict, bApplyRequiredChanges)

    gatherThreads("auditServerExtended")
    for servername in servers:
        auditReport(environment, servername)