GithubHelp home page GithubHelp logo

propanelib's Introduction

propanelib

propanelib is a library of promise bodies for CFEngine 3.

CFEngine is a configuration management and automation framework that lets you securely manage your IT infrastructure. If you don't know yet about CFEngine, you can take a look at its documentation to get a first grasp of it.

The goal of propanelib is to provide a set of re-usable promise bodies to drive the development of your configuration policies.

Development

propanelib make use of various Python 3 utilities to drive its development. If you wish to bring some changes to the project and build it, you'll need to set up your working environment first.

Make sure to have Python 3 in version 3.4 or later installed on your system. If you are running Fedora or a Red Hat based Linux system, you can run the following:

# yum install python3

On the other hand if you are using a Debian based system, run the following:

# apt-get install python3

For any other system, you can find installation instructions on the website of the Python project.

Virtual environment

In order to keep your system clear from the development tools needed for the project, it is advised to set up a Python 3 virtual environment.

Go to the project directory and run the following:

$ pyvenv pyenv

This will created a directory named pyenv in the current folder in which you will find a new Python 3 environment completely separated from your system.

To activate this environment, you can enter the following command:

$ source ./pyenv/bin/activate
(pyenv)$

When a command should be entered within the virtual environment, we use the following (pyenv)$ prompt in console examples.

Installation requirements

All the utilities required to build or ease project's development are listed in the requirements.txt file. Within an activated virtual environment, run the following to install the required tools:

(pyenv)$ pip install -r requirements.txt

This file will be updated each time a new version of an utility is available or depending on the needs. Be sure to re-run this command each time you notice a change to the requirements.txt file.

Invoke tasks

Building the project involves many different tasks. To ease the operation, needed actions needed are being put together in the tasks.py file and ran using the Invoke tool as simple shell commands.

Licensing

This software project is provided under the licensing terms of the MIT License stated in the file LICENSE.rst.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

propanelib's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.