cookbook 'cesi', '~> 0.1.0'
cesi (1) Versions 0.1.0 Follow0
Installs/Configures cesi
cookbook 'cesi', '~> 0.1.0', :supermarket
knife supermarket install cesi
knife supermarket download cesi
CeSI Cookbook
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
Dependent cookbooks
tar ~> 2.2.0 |
poise-python ~> 1.7.0 |
poise-service ~> 1.5.2 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
cesi CHANGELOG
This file is used to list changes made in each version of the cesi cookbook.
0.1.0
Initial release.
- Install the CeSI 2.6.7+
Collaborator Number Metric
0.1.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.0 passed this metric
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.0 failed this metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.1.0 passed this metric
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.0 passed this metric
0.1.0 passed this metric
Testing File Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.1.0 failed this metric
0.1.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number