コード例 #1
0
    env = loadenv(
        'env', {
            'what': '[export import deploy]',
            'rel': '910',
            'name': 'BVTEnv',
            'exp_dir': '//rdvmva91/Downloads',
            'migrate': True
        })

    navauth('DefineEnvironments')

    for r in range(0, 1):
        for what in env.get('what'):
            if what == 'export':
                c.navenv(env, False)
                env['file'] = c.exportenv(env)
                print(env['file'])
            elif what == 'import':
                before = c.envnames()
                env['file'] = env['exp_dir'] + '/ExportedEnvironments' + env[
                    'rel'] + '.xml'
                #env['file'] = 'c:\\Users\\Administrator\\Downloads\\ExportedEnvironments96.xml'
                c.importenv(env)
                for k in c.envnames().keys():
                    if k not in before:
                        env['name'] = k
            elif what == 'deploy':
                c.navenv(env)
                #TODO - validate misc settings in CCS
                c.navtab('Configure Servers')
コード例 #2
0
from g import error,clean,loadenv
from mwsm import navauth
import mws.ccs as ccs

try:

    x = loadenv('ccs', {'name':'BVTEnv'})

    navauth('DefineEnvironments')
    ccs.navenv(x)
    ccs.navtab('Configure Servers')
    ccs.navconfig('Station Settings')
    ccs.station_settings(x)
    ccs.validate()
    ccs.finish(x)
    ccs.deploy(x,'Deploy Updates')

except:
    error()
finally:
    clean()

コード例 #3
0
import g
from mwsm import navauth
from mws.cluster import chroot
import mws.ccs as c

try:

    x = g.loadenv('ccs', {
        'name': 'BVTEnv',
        'mapendpoints': {
            'mwspath': 'alta'
        }
    })

    navauth('DefineEnvironments')
    c.navenv(x)
    c.modmwspath(x)
    c.validate()
    c.finish(x)
    c.deploy(x, 'Deploy Updates')
    c.nav("ClusterSettings")
    chroot(x['mapendpoints']['mwspath'])

except:
    g.error()
finally:
    g.clean()