Fabsible
Fabsible is ansible framework which is object-oriented.
Getting started
Installation ############
Create python virtual env
python3 -m venv venv
. venv/bin/activate
Install fabsible
pip install fabsible
Configuration
TODO: creating inventory file
Init new project
fabsible-init -i libvirt-inventory.py
Create provisioning tasks and place them in files/providers/<name>.yml. Ex.
cat files/providers/libvirt.yml
- name: libvirt
debug:
msg: "Jeste provisione libvirte"
- include_role:
name: exphost.create_user
vars:
ansible_user: root
ansible_password: super_password
loop: "{{ users }}"
loop_control:
loop_var: user
Create users
cat group_vars/all/users_admins.yml
users_admins:
- user: torgiren
group: wheel
password: "XXX" #Password hash
home: "/home/torgiren"
and add ssh-keys to files/ssh-keys/<username>/<keyname>.pub
add become password (TODO: this should be per user not per project)
cat become.yml
ansible_become_pass: anotherpassword
Run
fabsible-play
Release files for fabsible 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fabsible-0.2.1.tar.gz | 8.2 kB | Details |
Release files / fabsible-0.2.1.tar.gz
| Download URL | fabsible-0.2.1.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30cec870ff0e7c79d43b84f8e3f5bc703cd0edd526d209add478873afe35071d
|
|
BLAKE2b-256 checksum How to use checksums |
3f76c120b08e199359731780eaa1c33400c5ca6d28d5b42c6d30d9d839e8f0af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.9
|