Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

alfresco-db (3) Versions 1.1.0

Installs/Configures chef-alfresco-db

Berkshelf/Librarian
Policyfile
Knife
cookbook 'alfresco-db', '= 1.1.0'
cookbook 'alfresco-db', '= 1.1.0', :supermarket
knife cookbook site install alfresco-db
knife cookbook site download alfresco-db
README
Dependencies
Quality 56%

chef-alfresco-db cookbook

Build Status Cookbook Version Coverage Status

This cookbook will install the DBMS part of the Alfresco stack. The default choice is Mysql, but it can be expanded to use your own db.

Requirements

Cookbooks

The following cookbooks are direct dependencies because they're used for common "default" functionality.

  • mysql for MySql installation
  • poise-derived for defining lazily evaluated node attributes
  • mysql2_chef_gem library cookbook that provides a resource for installing the mysql2 gem against either mysql or mariadb depending on usage
  • selinux_policy to manage SELinux policies and components
  • alfresco-utils Chef utilities used by Chef-Alfresco

Platforms

The following platforms are supported and tested with Test Kitchen:

  • CentOS 7+

Chef

  • Chef 12.1+

Attributes

Key Type Description Default
default['db']['name'] String DB name alfresco
default['db']['host'] String DB host 127.0.0.1
default['db']['port'] String DB port 3306
default['db']['username'] String DB username alfresco
default['db']['password'] String DB password alfresco
default['db']['root_user'] String DB root user false
default['db']['allowed_host'] String Allowed host 127.0.0.1
default['db']['server_root_password'] String DB Root Password true
default['db']['engine'] String Engine of choice mysql

other specific MySql Attributes

Key Type Description Default
default['mysql_local']['version'] String Mysql Version '5.6'
default['mysql_local']['bind_address'] String bind_address nil
default['mysql_local']['service_name'] String Mysql service name default'
default['mysql_local']['collation'] String collation utf8_general_ci
default['mysql_local']['encoding'] String encoding utf8
default['mysql_local']['datadir'] String datadir /media/mysql-default/
default['mysql_local']['my_cnf']['mysqld']['local-infile'] Int local-infile 0
default['mysql_local']['my_cnf']['mysqld']['skip-grant-tables'] String skip-grant-tables FALSE
default['mysql_local']['my_cnf']['mysqld']['skip_symbolic_links'] String skip_symbolic_links 'YES'
default['mysql_local']['my_cnf']['mysqld']['sql_mode'] String sql_mode 'STRICT_ALL_TABLES'
default['mysql_local']['my_cnf']['mysqld']['log-bin'] String log-bin 'log-bin/mysql-bin'
default['mysql_local']['my_cnf']['mysqld']['slow_query_log'] Int slow_query_log 1
default['mysql_local']['my_cnf']['mysqld']['slow_query_log_file'] String slow_query_log_file /var/log/mysql-default/slow.log
default['mysql_local']['my_cnf']['mysqld']['long_query_time'] Int long_query_time 30
default['mysql_local']['my_cnf']['mysqld']['log_queries_not_using_indexes'] Int log_queries_not_using_indexes 1
default['mysql_local']['my_cnf']['mysqld']['log-warnings'] Int log-warnings 2
default['mysql_local']['my_cnf']['mysqld']['log-raw'] String log-raw 'OFF'
default['mysql_local']['my_cnf']['mysqld']['general_log_file'] String general_log_file /var/log/mysql-default/query.log
default['mysql_local']['my_cnf']['mysqld']['general_log'] Int general_log 1
default['mysql_local']['my_cnf']['cookbook'] String cookbook for my.cnf.erb template 'alfresco-db'

Usage

Just add the reference of this cookbook inside your metadata.rb file:

depends 'alfresco-db', '~> v0.1'

Main recipe is:

  • alfresco-db::default will install the Application Server of your choice ( specified under the default['db']['engine'] attribute)

Include alfresco-db in your node run_list:

{
  "run_list": [
    "recipe[alfresco-db:default]"
  ]
}

Testing

Refer to: Testing

License and Authors

Copyright 2017, Alfresco

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Dependent cookbooks

poise-derived ~> 1.0.0
alfresco-utils ~> 1.0.0
database >= 4.0.6
selinux_policy ~> 2.0.1
mysql2_chef_gem >= 1.0.1
mysql ~> 7.2

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

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

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

1.1.0 failed this metric

FC069: Ensure standardized license defined in metadata: alfresco-db/metadata.rb:1
Run with Foodcritic Version 10.3.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

1.1.0 passed this metric

No Binaries Metric
            

1.1.0 passed this metric

Publish Metric
            

1.1.0 passed this metric

Supported Platforms Metric
            

1.1.0 passed this metric

Testing File Metric
            

1.1.0 passed this metric

Version Tag Metric
            

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