Skip to main content

A simple system configuration framework

Project description

Alnair

Alnair is a simple system configuration framework. And also are intended to be used in conjunction with the Fabric (https://github.com/fabric/fabric).

Requirement

  • Python 2.6 and later (but does not work in 3.x)

Installation

from pypi:

# using pip
% pip install -U alnair

# or using easy_install
% easy_install -U alnair

from source:

% python setup.py install

Basic usage

First, generate the recipes template set by following command:

% alnair generate template archlinux

In this example, distribution name using archlinux. recipes/archlinux/common.py directories and file are created to current directory by this command. Also "g" as an alias for the generate command has been defined. The following command is same meaning as above:

% alnair g template archlinux

Next, edit install_command variable in common.py for the target distribution:

# common.py
install_command = 'pacman -Sy'

Next, generate recipe template for package setup by following command:

% alnair g recipe python

python.py file is created on recipes/archlinux/ directory by this command. In fact, directories where you want to create the files are recipes/\*/.

Finally, edit python.py for more settings if necessary and setup to the server by following command:

% alnair setup archlinux python

Using as a library

You can use the following code instead of alnair setup archlinux python command:

from alnair import Distribution

distname = 'archlinux'
with Distribution(distname) as dist:
    dist.setup('python')

For more documentation, read the sources or please wait while the document is being prepared.

Changes

0.2

  • Change the APIs (An incompatible with older releases)

0.1.2

  • Implement the commands execution to make before setup

  • Bug fixes

0.1.1

  • A few bug fixes

0.1

  • First release

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

alnair-0.3.tar.gz (8.2 kB view details)

Uploaded Source

File details

Details for the file alnair-0.3.tar.gz.

File metadata

  • Download URL: alnair-0.3.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for alnair-0.3.tar.gz
Algorithm Hash digest
SHA256 c831ae2e1c3fa682202374e7214d530f1a99c11a1be80e6c0c1eecba155df061
MD5 167734b8c9bacf35c1b5d59d7596dc89
BLAKE2b-256 190be1b944dea89f2da221da2724ad39322db63be8a2e2907c321e697ed70e6f

See more details on using hashes here.

Supported by

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