Skip to main content

Ansible framework using object-oriented configuration

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fabsible-0.2.1.tar.gz (8.2 kB view details)

Uploaded Source

File details

Details for the file fabsible-0.2.1.tar.gz.

File metadata

  • Download URL: fabsible-0.2.1.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for fabsible-0.2.1.tar.gz
Algorithm Hash digest
SHA256 30cec870ff0e7c79d43b84f8e3f5bc703cd0edd526d209add478873afe35071d
MD5 7c6532de9b686f3387b3f2bfc6168cda
BLAKE2b-256 3f76c120b08e199359731780eaa1c33400c5ca6d28d5b42c6d30d9d839e8f0af

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page