syseleven.cloudutils 0.1.3

Creator: bradpython12

Last updated:

0 purchases

syseleven.cloudutils 0.1.3 Image
syseleven.cloudutils 0.1.3 Images

Languages

Categories

Add to Cart

Description:

syseleven.cloudutils 0.1.3

python-cloudutils=========This repos contains several useful library to talk to OpenStack APIs and has some wrapper tools for it.scloud-----------scloud is a wrapper that deletes existing stacks and re-creates them according to your config files and command line parameters.Installation-------------```virtualenv ~/syseleven-cloudutils-venv # optional. ~/syseleven-cloudutils-venv/bin/activate # optional# apt-get install python-dev # neededpip install -e [email protected]:syseleven/python-cloudutils.git#egg=syseleven.cloudutils```Usage--------------You can pass as many config files as you want. One common concept would be to have at least two configuration files 1. global config file 2. per stack config fileThose contain a _DEFAULT_ section for scloud configuration and a _heat_params_ section for all parameters needing for creating the heat stack (i.e. the same as ```heat stack-create <name> -P key1=value -P key2=value```)The _heatparamsfromfiles_ key in the _DEFAULT_ section is special. This parameter specifies a list of heat_params key that will be treated as files and their content will be replaced by the actual file content.You may specifiy all heat_params with the command line option -P (multiple invocations possible). All given -P key=value pairs will overwrite the values from the config.#### global config file ####If you want to maintain a global config file you always have to pass it via --config-file to scloud.If the global config file ~/scloud.conf is specified as first --config-file argument it will be parsed the beginning, so it may contain values that will be overwritten by the per-stack config file or by command line parameters.```[DEFAULT]stackname=overwritemeheattemplatebasepath=~/git/openstack-heattemplates/[heat_params]deploy_key=/Users/myuser/.ssh/openstack_deploykeykey_name=mykeyname```#### per stack config file ####A per stack config file can be given as additional --config-file parameter to scloud. ```[DEFAULT]stackname=mystack# heattemplate may be a full path or relative path to heattemplatebasepathheattemplate='dev-cloud.yaml'heatparamsfromfiles=repos_yaml, deploy_key[heat_params]config_branch=masterscripts_branch=masterpuppet_branch=masterpublic_net_id=aaaa-bbbb-ccc-dddrepos_yaml=""```#### command line usage examples ####* ```scloud --config-file ~/.scloud.conf --config-file mycloud.conf```* ```scloud --config-file ~/.scloud.conf --config-file mycloud.conf -P key_name=myotherkey -P config_branch=myotherbranch```Setting an alias to ```alias scloud="scloud --config-file ~/.scloud.conf --config-file "```should smoothen things up.So you can just use ```scloud mycloud.conf```listhosts-----------This tool lists all VMs with the information on which compute node they run. It requires admin privileges and lists all VMs from all tenants by default. It's not configureable yet.```You can't use 'macro parameter character #' in math modeYou can't use 'macro parameter character #' in math modebranch. /path/to/venv/bin/activatepython setup.py develop```Commands like scloud will then be linked to the git repo in the venv.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.