示例#1
0
文件: shutdown.py 项目: carze/vappio
def shutdownAllNodes(conf):
    """
    Goes through all of stow and
    """
    executePolicyDirWEx(shutdownPolicy, '/opt/config_policies')
    uninstallAllStow()
    uninstallAllOptPackages()
示例#2
0
文件: shutdown.py 项目: carze/vappio
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
文件: startup.py 项目: carze/vappio
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
文件: startup.py 项目: carze/vappio
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
文件: shutdown.py 项目: carze/vappio
def shutdownExecNode(conf):
    executePolicyDirWEx(shutdownPolicy, "/opt/config_policies", "EXEC")
示例#10
0
文件: shutdown.py 项目: carze/vappio
def shutdownMasterNode(conf):
    executePolicyDirWEx(shutdownPolicy, "/opt/config_policies", "MASTER")
示例#11
0
文件: shutdown.py 项目: carze/vappio
def shutdownDevNode(conf):
    executePolicyDirWEx(shutdownPolicy, "/opt/config_policies", "DEV")
示例#12
0
文件: startup.py 项目: carze/vappio
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
文件: startup.py 项目: carze/vappio
def startUpMasterNode(conf):
    executePolicyDirWEx(startPolicy, '/opt/config_policies', 'MASTER')
示例#14
0
文件: shutdown.py 项目: carze/vappio
def shutdownExecNode(conf):
    executePolicyDirWEx(shutdownPolicy, '/opt/config_policies', 'EXEC')
示例#15
0
文件: shutdown.py 项目: carze/vappio
def shutdownMasterNode(conf):
    executePolicyDirWEx(shutdownPolicy, '/opt/config_policies', 'MASTER')
示例#16
0
文件: shutdown.py 项目: carze/vappio
def shutdownDevNode(conf):
    executePolicyDirWEx(shutdownPolicy, '/opt/config_policies', 'DEV')