OpenStack Helper Utilities
Project description
# Useful OpenStack Helper Commands
## Install
~~~
pip install python-stackhelper
~~~
## Usage:
### Security Group Synchronization
~~~
$ stackhelper secgroup-sync --secgroup-json secgroups.example.json
Deleting group: testing
Creating group: chef
Creating group: haproxy
Creating group: apt
Create rule ALLOW tcp/80-80 FROM 'chef' in group 'apt'
Create rule ALLOW tcp/80-80 FROM 'haproxy' in group 'apt'
Create rule ALLOW tcp/4000-4000 FROM 'apt' in group 'chef'
Create rule ALLOW tcp/4000-4000 FROM 'haproxy' in group 'chef'
Create rule ALLOW tcp/443-443 FROM '0.0.0.0/0' in group 'haproxy'
$ nova secgroup-add-rule chef tcp 100 200 0.0.0.0/0
+-------------+-----------+---------+-----------+--------------+
| IP Protocol | From Port | To Port | IP Range | Source Group |
+-------------+-----------+---------+-----------+--------------+
| tcp | 100 | 200 | 0.0.0.0/0 | |
+-------------+-----------+---------+-----------+--------------+
$ stackhelper secgroup-sync --secgroup-json secgroups.example.json
Delete rule ALLOW tcp/100-200 in group 'chef'
~~~
# Credential Management
No OS_ vars
~~~
$ env | grep OS_
$
~~~
Run stackhelper (inside backticks)
~~~
$ `stackhelper credentials hpcloud az1 exampleuser`
~~~
Check the OS_ env var's again:
~~~
$ env | grep OS_
OS_REGION_NAME='az-1.region-b.geo-1'
OS_TENANT_ID='...'
OS_PASSWORD='...'
OS_AUTH_URL='...'
OS_USERNAME='...'
OS_TENANT_NAME='...'
~~~
## Install
~~~
pip install python-stackhelper
~~~
## Usage:
### Security Group Synchronization
~~~
$ stackhelper secgroup-sync --secgroup-json secgroups.example.json
Deleting group: testing
Creating group: chef
Creating group: haproxy
Creating group: apt
Create rule ALLOW tcp/80-80 FROM 'chef' in group 'apt'
Create rule ALLOW tcp/80-80 FROM 'haproxy' in group 'apt'
Create rule ALLOW tcp/4000-4000 FROM 'apt' in group 'chef'
Create rule ALLOW tcp/4000-4000 FROM 'haproxy' in group 'chef'
Create rule ALLOW tcp/443-443 FROM '0.0.0.0/0' in group 'haproxy'
$ nova secgroup-add-rule chef tcp 100 200 0.0.0.0/0
+-------------+-----------+---------+-----------+--------------+
| IP Protocol | From Port | To Port | IP Range | Source Group |
+-------------+-----------+---------+-----------+--------------+
| tcp | 100 | 200 | 0.0.0.0/0 | |
+-------------+-----------+---------+-----------+--------------+
$ stackhelper secgroup-sync --secgroup-json secgroups.example.json
Delete rule ALLOW tcp/100-200 in group 'chef'
~~~
# Credential Management
No OS_ vars
~~~
$ env | grep OS_
$
~~~
Run stackhelper (inside backticks)
~~~
$ `stackhelper credentials hpcloud az1 exampleuser`
~~~
Check the OS_ env var's again:
~~~
$ env | grep OS_
OS_REGION_NAME='az-1.region-b.geo-1'
OS_TENANT_ID='...'
OS_PASSWORD='...'
OS_AUTH_URL='...'
OS_USERNAME='...'
OS_TENANT_NAME='...'
~~~
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-stackhelper-0.0.7.tar.gz
(13.4 kB
view details)
File details
Details for the file python-stackhelper-0.0.7.tar.gz
.
File metadata
- Download URL: python-stackhelper-0.0.7.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d57001104d58428646f67fe53793954e43ef3a54d0359ec4a98609135fe65a69 |
|
MD5 | 63b9985f74da4efe794e1399bf67c026 |
|
BLAKE2b-256 | b6dd812b6a8c493658342a232a79bcebb6cbf6add05d1f035cda25c1f77a160d |