Git Product home page Git Product logo

cesi-cookbook's Introduction

CeSI Cookbook

Build Status Cookbook Version

This cookbook installs and configures CeSI. We support 2.6.7+ versions of cesi.

Requirements

Platforms

  • Ubuntu 14.04+
  • Centos 7+
  • Debian 7+

Chef

  • Chef 12+

Cookbooks

  • tar
  • poise-python
  • poise-service

Usage

Here's a quick example of installing the CeSI.

cesi_install '2.6.7'

cesi_config 'supervisor'

cesi_service 'cesi'

Recipes

  • default - installs the CeSI.

Attributes

Attribute Default Description
node['cesi']['user'] 'cesi' Run cesi with this user
node['cesi']['group'] 'cesi' Run cesi with this group
node['cesi']['version'] '2.6.7' Install this version of CeSI
node['cesi']['setup_path'] '/opt/cesi' Download CeSI to this directory
node['cesi']['conf']['database_uri'] 'sqlite:///users.db' Use this database uri for CeSI database operations
node['cesi']['conf']['activity_log'] 'activity_log' File path for CeSI activity logs
node['cesi']['conf']['admin_username'] 'admin' A cesi user with admin privileges
node['cesi']['conf']['admin_password'] 'admin' The cesu user's password
node['cesi']['service']['name'] 'cesi' Service name of the cesi application
node['cesi']['service']['host'] '0.0.0.0' The host cesi is running on
node['cesi']['service']['port'] 5000 The port cesi is running on
node['cesi']['service']['debug'] false Activate debug mode of the cesi backend
node['cesi']['service']['auto_reload'] false Activate auto reload mode of the cesi backend
node['cesi']['supervisors']['rolename'] 'supervisor' Instead of typing all node configurations, find all nodes on the chef server with rolename
node['cesi']['supervisors']['cloud_ipaddress'] 'local_ipv4' Get ipaddress of the supervisor in cloud servers

Resources

cesi_install

This resource installs the CeSI.

Properties

Property Type Default Value Description
version String '2.6.7' The version of cesi
user String 'cesi' The user of cesi
group Integer 'cesi' The group of cesi
setup_path String 'admin' Download CeSI to this directory
release_url String 'admin' Download CeSI with this url
action String create Valid action is create.

Examples

cesi_install '2.6.7' do
  user 'cesi'
  group 'cesi'
  setup_path '/opt/cesi'
  release_url 'https://gitlab.example.com/gamegos/cesi/releases/v2.6.7/cesi-extended.tar.gz'
  action :create
end

cesi_config

This resource defines configurations of the CeSI.

Properties

Property Type Default Value Description
supervisors_rolename String 'supervisor' The supervisors rolename
database_uri String 'sqlite:///users.db' The database uri for CeSI database
activity_log String 'activity.log' File path for CeSI activity logs
admin_user String 'admin' A cesi user with admin privileges
admin_password String 'admin' The cesi user's password
cloud_ipaddress String 'local_ipv4' Get ipaddress of the supervisor in cloud servers
action String create Valid action is create.

Examples

cesi_config 'supervisor' do
  supervisors_rolename 'supervisor'
  database_uri 'sqlite:////opt/cesi/2.6.7/users.db'
  activity_log '/opt/cesi/2.6.7/activity.log'
  admin_username 'admin'
  admin_password 'admin'
  cloud_ipaddress 'local_ipv4'
  action :create
end

cesi_service

This resource creates the Cesi service for your systems.

Properties

Property Type Default Value Description
host String '0.0.0.0' The host cesi is running on
port Integer 5000 The port cesi is running on
debug Boolean false Activate debug mode of the cesi backend
auto_reload Boolean false Activate auto reload mode of the cesi backend
action String create Valid action is create.

Examples

cesi_service 'cesi' do
  host '0.0.0.0'
  port 5000
  debug false
  auto_reload false
  action :create
end

cesi-cookbook's People

Contributors

f9n avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  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.