def shutdownAllNodes(conf): """ Goes through all of stow and """ executePolicyDirWEx(shutdownPolicy, '/opt/config_policies') uninstallAllStow() uninstallAllOptPackages()
def shutdownAllNodes(conf): """ Goes through all of stow and """ executePolicyDirWEx(shutdownPolicy, "/opt/config_policies") uninstallAllStow() uninstallAllOptPackages()
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""")
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""")
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')
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')
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')
def startUpMasterNode(conf): executePolicyDirWEx(startPolicy, '/opt/config_policies', 'MASTER')
def shutdownExecNode(conf): executePolicyDirWEx(shutdownPolicy, "/opt/config_policies", "EXEC")
def shutdownMasterNode(conf): executePolicyDirWEx(shutdownPolicy, "/opt/config_policies", "MASTER")
def shutdownDevNode(conf): executePolicyDirWEx(shutdownPolicy, "/opt/config_policies", "DEV")
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')
def startUpMasterNode(conf): executePolicyDirWEx(startPolicy, '/opt/config_policies', 'MASTER')
def shutdownExecNode(conf): executePolicyDirWEx(shutdownPolicy, '/opt/config_policies', 'EXEC')
def shutdownMasterNode(conf): executePolicyDirWEx(shutdownPolicy, '/opt/config_policies', 'MASTER')
def shutdownDevNode(conf): executePolicyDirWEx(shutdownPolicy, '/opt/config_policies', 'DEV')