Fu for con.
Project description
Helpers for using these infrastructure tools:
dev
$ git clone git@github.com:bninja/confu.git
$ cd confu
$ mkvirtualenv confu
(confu)$ pip install -e .[tests]
(confu)$ py.test tests/ --cov=confu
install
$ pip install con-fu
settings
Read and merged from these ini files:
~/.confu.cfg
.confu.cfg
and these environment variables:
CONFU_PROFILE
CONFU_REGION
CONFU_LOG
To see what they are:
$ confu cfg
{
"atlas": {
"source_dir": "infras/global/atlas"
},
"aws": {
"default_region": "us-west-1",
"regions": [
"us-west-1"
]
},
"cfn": {
"bucket_format": "{profile}-confu-cfn-{region}",
"bucket_key": "vault",
"parameters": {
"ConfName": "infra-vault",
"ConfSource": "{profile}-confu-pkg",
"InfraSilo": "vault",
"KeyName": "ai-gazelle",
"LogArchiveBucket": "{profile}-confu-log"
},
"stack_name_format": "{Prefix}-{AppEnv}-{random}",
"stack_tags": {
"infra-silo": "vault"
}
},
"pkg": {
"bucket_format": "{profile}-{region}-confu-pkg",
"default_includes": [
"group_vars/",
"host_vars/",
"roles/",
"/ansible.cfg",
"!*/ansible.cfg",
"*.yml",
"!.project",
"!*.git",
"!*.pyc",
"!*.pyo",
"!*.git*",
"!*.travis.yml",
"!*.md",
"!Vagrantfile",
"!*/test/",
"!test.yml"
],
"includes": [
"infras/",
"!infras/global/mq.yml",
"!infras/global/site.yml",
"!infras/global/.confu.cfg",
"!infras/global/inventories/",
"!infras/global/formations/",
"!infras/global/roles/",
"inventories/",
"ops/"
],
"name": "{source.dir_name}",
"source_dir": "./",
"stage_dir": "/tmp/confu/{package.name}-{package.version}",
"version": "{source.git_version}"
},
"profile": "julius",
"region": "us-west-1"
}
shell
Source completion and functions like:
$ source <(confu shell env; confu shell complete)
or use in all shells like:
$ (confu shell env; confu shell complete) > ~/confu.sh
$ cat >> ~/.bashrc <<EOF
. ~/confu.sh
EOF
confue
Shell function for managing confu environments which are just these environment variables:
CONFU_PROFILE
CONFU_REGION
CONFU_LOG
like this:
$ confue
CONFUE_NAME=
CONFU_PROFILE=
CONFU_REGION=
CONFU_LOG=
$ confue jj-us-w1
$ confue -p julius -r us-west-1 -l i
$ confue
CONFUE_NAME=jj-us-w1
CONFU_PROFILE=julius
CONFU_REGION=us-west-1
CONFU_LOG=i
$ confue off
$ confue
CONFUE_NAME=
CONFU_PROFILE=
CONFU_REGION=
CONFU_LOG=
$ confue ls
jj-us-w1
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py3-con-fu-0.2.1.tar.gz.
File metadata
- Download URL: py3-con-fu-0.2.1.tar.gz
- Upload date:
- Size: 21.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.21.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86ee1a64cc0fb818aed114aad18bfbcd8d3499f3a1a9618a8bf1a75274e68ce8
|
|
| MD5 |
d7f7bfad9e1e6099f4da54d2370a8137
|
|
| BLAKE2b-256 |
c8fb3cdcaf5f4de9d6ccf0f1218067dcf3ef77b5ad6db3635c1c198cc21205f9
|
File details
Details for the file py3_con_fu-0.2.1-py3-none-any.whl.
File metadata
- Download URL: py3_con_fu-0.2.1-py3-none-any.whl
- Upload date:
- Size: 22.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.21.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29bd0778b52f913686d8cd9885609a9abc8b242199d754345909ee321033bebb
|
|
| MD5 |
7dd050a70965278a4fa32ba1c54d0fc4
|
|
| BLAKE2b-256 |
c175b9b8c93224c7b6e196507c2b9b4eaa06d62820b561e3e620f172c223e3c4
|