Example #1
0
@author: ...
'''
import datetime

from linuxProperties import linuxPropertiesDict

from library.auditing.auditServerBase import auditServersBaseAudit
from library.auditing.auditingLibrary import auditInitAudit, auditReport
from library.pega.auditServerPega import auditServersPega
from library.auditing import auditingLibrary

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)

bApplyRequiredChanges = False

auditInitAudit("PreProd Servers", "Pega")

completeChecksPega('preProdServersPega', ['localhost', '127.0.0.1'], linuxPropertiesDict, bApplyRequiredChanges)

exit()
Example #2
0
# Created on 20 Oct 2016

# @author: ...

from environmentProperties.localhost.inventory import servers
from environmentProperties.localhost.properties import dictionary
from library.auditing.auditServersBase import auditServersBase
from library.auditing.auditingLibrary import auditInitAudit

bApplyRequiredChanges = False
auditInitAudit("localhost", "GlassFishGeneral")
auditServersBase("local servers", servers, dictionary, bApplyRequiredChanges)

def completeChecksMdm(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:
        auditServersMdm(env, servername, runtimeProperties["usernameMdm"],
                        propertiesDict, bApplyRequiredChanges)

        auditingLibrary.auditObjectAtoms.append(
            auditingLibrary.auditObjectAtomCompleteAnAction(
                servername, runtimeProperties["usernameMdm"],
                runtimeProperties["identityFileFullPath"],
                runtimeProperties["identityFilePassword"], 'JVM Mem Opts',
                'source ~/.bash_profile; grep -ia \'Xmx\' \'/opt/install/EAP-6.4.0/bin/standalone.conf\''
            ))

        auditReport(env, servername)


bApplyRequiredChanges = False

auditInitAudit("PreProd Servers", "MDM")

completeChecksMdm('PreProd1ServersMdm', ['localhost', '127.0.0.1'],
                  linuxPropertiesDict, bApplyRequiredChanges)

exit()
'''
Created on 11 Oct 2016

@author: ...
'''

from environmentProperties.localhost.inventory import servers as localServers
from environmentProperties.localhost.properties import dictionary as localServerDictionary
from library.auditing.auditingLibrary import auditInitAudit
from library.pega.auditServers_CCI import auditServersCCI

auditInitAudit("localMachine", "pegaCCI")

# whether to allow the auditing framework to make changes to correct its findings...
applyChanges = False

auditServersCCI("Local Reference - Pega CCI", localServers,
                localServerDictionary, applyChanges)

exit()
Example #5
0
'''
Created on 11 Oct 2016

@author: ...
'''

from environmentProperties.localhost.inventory import servers as localServers
from environmentProperties.localhost.properties import dictionary as localServerDictionary
from library.auditing.auditingLibrary import auditInitAudit
from library.informatica.auditServers_IDQ import auditServersIDQ

auditInitAudit("localMachine", "Informatica IDQ")

# whether to allow the auditing framework to make changes to correct its findings...
applyChanges = False

auditServersIDQ("Local Reference - Informatica IDQ", localServers,
                localServerDictionary, applyChanges)

exit()
Example #6
0
def completeChecks(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:
        auditServersBaseAudit(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)


bApplyRequiredChanges = False

auditInitAudit("PreProd Servers", "Base Linux")

completeChecks('preProdServers', ['localhost', '127.0.0.1'],
               linuxPropertiesDict, bApplyRequiredChanges)

exit()
Example #7
0
'''
Created on 11 Oct 2016

@author: ...
'''
 
from environmentProperties.localhost.inventory import servers as localServers
from environmentProperties.localhost.properties import dictionary as localServerDictionary
from library.auditing.auditingLibrary import auditInitAudit
from library.auditing.auditServers import auditServers

auditInitAudit("localMachine", "Tomcat Base")

# whether to allow the auditing framework to make changes to correct its findings...
applyChanges = False

auditServers("Local Reference", localServers, localServerDictionary, applyChanges)

exit()    
Example #8
0
'''
Created on 11 Oct 2016

@author: ...
'''

from environmentProperties.localhost.inventory import servers as localServers
from environmentProperties.localhost.properties import dictionary as localServerDictionary
from library.auditing.auditingLibrary import auditInitAudit
from library.auditing.auditServers import auditServers

auditInitAudit("localMachine", "jbossBase")

# whether to allow the auditing framework to make changes to correct its findings...
applyChanges = False

auditServers("Local Reference", localServers, localServerDictionary,
             applyChanges)

exit()
'''
Created on 11 Oct 2016

@author: ...
'''

from environmentProperties.localhost.inventory import servers as localServers
from environmentProperties.localhost.properties import dictionary as localServerDictionary
from library.auditing.auditingLibrary import auditInitAudit
from library.pega.auditServers_MarketingDMZ import auditServersMarketingDMZ

auditInitAudit("localMachine", "pegaDMZ")

# whether to allow the auditing framework to make changes to correct its findings...
applyChanges = False

auditServersMarketingDMZ("Local Reference - Pega CCI", localServers,
                         localServerDictionary, applyChanges)

exit()
'''
Created on 11 Oct 2016

@author: ...
'''
 


from environmentProperties.localhost.inventory import servers as localServers
from environmentProperties.localhost.properties import dictionary as localServerDictionary
from library.auditing.auditingLibrary import auditInitAudit
from library.informatica.auditServersMdm import auditServersMdm


auditInitAudit("localMachine", "MDM")

# whether to allow the auditing framework to make changes to correct its findings...
applyChanges = False

auditServersMdm("Local Reference - MDM", localServers, localServerDictionary, applyChanges)

exit()