Пример #1
0
def shutdownAllNodes(conf):
    """
    Goes through all of stow and
    """
    executePolicyDirWEx(shutdownPolicy, '/opt/config_policies')
    uninstallAllStow()
    uninstallAllOptPackages()
Пример #2
0
def shutdownAllNodes(conf):
    """
    Goes through all of stow and
    """
    executePolicyDirWEx(shutdownPolicy, "/opt/config_policies")
    uninstallAllStow()
    uninstallAllOptPackages()
Пример #3
0
def startUpDevNode(conf):
    """
    DEPRECATED: This type is deprecated, instead we should just be using the [dev] section of
    the config file to specify what branches and what parts of the system to load from
    svn

    
    Steps in starting a dev node:

    1 - Remove /usr/local/stow (this should be a config option eventually)
    2 - Check out /usr/local/stow
    3 - Check out /opt/packages

    Any SVN work is done on trunk (need to add config to specify a branch)
    """
    executePolicyDirWEx('/opt/config_policies', 'DEV')
    runSystemEx("""updateAllDirs.py --co""")
Пример #4
0
def startUpDevNode(conf):
    """
    DEPRECATED: This type is deprecated, instead we should just be using the [dev] section of
    the config file to specify what branches and what parts of the system to load from
    svn

    
    Steps in starting a dev node:

    1 - Remove /usr/local/stow (this should be a config option eventually)
    2 - Check out /usr/local/stow
    3 - Check out /opt/packages

    Any SVN work is done on trunk (need to add config to specify a branch)
    """
    executePolicyDirWEx('/opt/config_policies', 'DEV')
    runSystemEx("""updateAllDirs.py --co""")
Пример #5
0
def startUpAllNodes(conf):
    """
    Things that need to be done for all nodes:

    1 - Go through /usr/local/stow and /opt/opt-packages installing all packages
    2 - List through all .py files in /opt/config_policies and run them (eventually this directory should probably
        be split up by node type)
    """
    if conf('dev.update_dirs', default=None):
        cmd = [
            'updateAllDirs.py',
            '--clovr-branch=' + conf('dev.clovr_branch', default=''),
            '--vappio-branch=' + conf('dev.vappio_branch', default=''),
            conf('dev.update_dirs')
        ]

        runSystemEx(' '.join(cmd))

    installAllStow()
    installAllOptPackages()
    executePolicyDirWEx(startPolicy, '/opt/config_policies')
Пример #6
0
def startUpAllNodes(conf):
    """
    Things that need to be done for all nodes:

    1 - Go through /usr/local/stow and /opt/opt-packages installing all packages
    2 - List through all .py files in /opt/config_policies and run them (eventually this directory should probably
        be split up by node type)
    """
    if conf('dev.update_dirs', default=None):
        cmd = ['updateAllDirs.py',
               '--clovr-branch=' + conf('dev.clovr_branch', default=''),
               '--vappio-branch=' + conf('dev.vappio_branch', default=''),
               conf('dev.update_dirs')]

        runSystemEx(' '.join(cmd))


    
    installAllStow()
    installAllOptPackages()            
    executePolicyDirWEx(startPolicy, '/opt/config_policies')
Пример #7
0
def startUpExecNode(conf):
    """
    Just need to run the vappio-script for starting the exec node
    This should eventually replace that script
    """
    executePolicyDirWEx(startPolicy, '/opt/config_policies', 'EXEC')
Пример #8
0
def startUpMasterNode(conf):
    executePolicyDirWEx(startPolicy, '/opt/config_policies', 'MASTER')
Пример #9
0
def shutdownExecNode(conf):
    executePolicyDirWEx(shutdownPolicy, "/opt/config_policies", "EXEC")
Пример #10
0
def shutdownMasterNode(conf):
    executePolicyDirWEx(shutdownPolicy, "/opt/config_policies", "MASTER")
Пример #11
0
def shutdownDevNode(conf):
    executePolicyDirWEx(shutdownPolicy, "/opt/config_policies", "DEV")
Пример #12
0
def startUpExecNode(conf):
    """
    Just need to run the vappio-script for starting the exec node
    This should eventually replace that script
    """
    executePolicyDirWEx(startPolicy, '/opt/config_policies', 'EXEC')
Пример #13
0
def startUpMasterNode(conf):
    executePolicyDirWEx(startPolicy, '/opt/config_policies', 'MASTER')
Пример #14
0
def shutdownExecNode(conf):
    executePolicyDirWEx(shutdownPolicy, '/opt/config_policies', 'EXEC')
Пример #15
0
def shutdownMasterNode(conf):
    executePolicyDirWEx(shutdownPolicy, '/opt/config_policies', 'MASTER')
Пример #16
0
def shutdownDevNode(conf):
    executePolicyDirWEx(shutdownPolicy, '/opt/config_policies', 'DEV')