cookbook 'lxc-web-panel', '~> 0.3.4'
lxc-web-panel (2) Versions 0.3.4 Follow1
Installs/Configures LXC Web Panel
cookbook 'lxc-web-panel', '~> 0.3.4', :supermarket
knife supermarket install lxc-web-panel
knife supermarket download lxc-web-panel
lxc-web-panel Cookbook
This cookbook installs and configures LXC Web Panel application. It also installs and conigures Nginx in order to add HTTPS service layer to this application.
Requirements
Chef
Tested on 11.12.8 but newer and older version should work just fine.
Platform
The following platforms have been tested with this cookbook, meaning that the recipes run on these platforms without error:
- Ubuntu
- Debian
Cookbooks
-
nginx
- Used to install Nginx if you need to configure HTTPS service layer. -
chef-vault
- This cookbook is used to install chef-vault and permit to the cookbook use vaults instead databags. -
apt
- It is used to configures some repositories in order to install the necesaries packages.
Attributes
lxc-web-panel::default
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['lwp']['package']['name']</tt></td>
<td>String</td>
<td>Package name</td>
<td><tt>lwp</tt></td>
</tr>
<tr>
<td><tt>['lwp']['package']['version']</tt></td>
<td>String</td>
<td>Package version</td>
<td><tt></tt></td>
</tr>
<tr>
<td><tt>['lwp']['package']['options']</tt></td>
<td>String</td>
<td>Package install options</td>
<td><tt></tt></td>
</tr>
<tr>
<td><tt>['lwp']['dir']['conf']</tt></td>
<td>String</td>
<td>Path of the directory where are the configuration files</td>
<td><tt>/etc/lwp</tt></td>
</tr>
<tr>
<td><tt>['lwp']['ssl']['enabled']</tt></td>
<td>boolean</td>
<td>Enable or disable SSL protocol</td>
<td><tt>false</tt></td>
</tr>
<tr>
<td><tt>['lwp']['ssl']['log']['access']</tt></td>
<td>String</td>
<td>Nginx access log file</td>
<td><tt>/var/log/nginx/lwp_ssl_access.log</tt></td>
</tr>
<tr>
<td><tt>['lwp']['log']['error']</tt></td>
<td>String</td>
<td>Nginx error log file</td>
<td><tt>/var/log/nginx/lwp_ssl_error.log</tt></td>
</tr>
<tr>
<td><tt>['lwp']['nginx']['proxy_read_timeout']</tt></td>
<td>Numeric</td>
<td>Nginx proxy read timeout value</td>
<td><tt>300</tt></td>
</tr>
<tr>
<td><tt>['lwp']['cert']['databag']['name']</tt></td>
<td>String</td>
<td>Databag name where is located the certificate data. It could be the vault name if you are using chef-vault in order to store your sensible data.</td>
<td><tt>lwp</tt></td>
</tr>
<tr>
<td><tt>['lwp']'cert']['databag']['item']</tt></td>
<td>String</td>
<td>Databag item that contains the certificate data. It could be the vault item if you are using chef-vault in order to store your sensible data.</td>
<td><tt>cert</tt></td>
</tr>
<tr>
<td><tt>['lwp']['cert']['databag']['encrypted_file']</tt></td>
<td>String</td>
<td>The path of the encrypted file if you are using encrypted databags</td>
<td><tt>/etc/chef/encrypted_file</tt></td>
</tr>
<tr>
<td><tt>['lwp']['conf']['global']['address']</tt></td>
<td>String</td>
<td>Listen IP</td>
<td><tt>0.0.0.0</tt></td>
</tr>
<tr>
<td><tt>['lwp']['conf']['global']['port']</tt></td>
<td>String</td>
<td>Listen port</td>
<td><tt>5000</tt></td>
</tr>
<tr>
<td><tt>['lwp']['conf']['global']['debug']</tt></td>
<td>boolean</td>
<td>Enable log debug</td>
<td><tt>false</tt></td>
</tr>
<tr>
<td><tt>['lwp']['conf']['global']['secret_key']</tt></td>
<td>String</td>
<td>Secret key</td>
<td><tt>70c0af95a33e54292ecb095664b0fb975eb8c641</tt></td>
</tr>
<tr>
<td><tt>['lwp']['conf']['global']['auth']</tt></td>
<td>String</td>
<td>Auth method. The posible values are: database, ldap or pam</td>
<td><tt>database</tt></td>
</tr>
<tr>
<td><tt>['lwp']['conf']['global']['buckets']</tt></td>
<td>boolean</td>
<td>Enable buckets feature</td>
<td><tt>false</tt></td>
</tr>
<tr>
<td><tt>['lwp']['conf']['database']['file']</tt></td>
<td>String</td>
<td>Database file path</td>
<td><tt>/var/lwp/lwp.db</tt></td>
</tr>
<tr>
<td><tt>['lwp']['conf']['htpasswd']['file']</tt></td>
<td>String</td>
<td>Htpasswd file path</td>
<td><tt>/var/lwp/htpasswd</tt></td>
</tr>
<tr>
<td><tt>['lwp']['conf']['session']['time']</tt></td>
<td>String</td>
<td>Session time</td>
<td><tt>10</tt></td>
</tr>
<tr>
<td><tt>['lwp']['conf']['overview']['partition']</tt></td>
<td>String</td>
<td>Overview partition path</td>
<td><tt>/</tt></td>
</tr>
<tr>
<td><tt>['lwp']['conf']['storage_repository']['local']</tt></td>
<td>String</td>
<td>Local storahe repository path</td>
<td><tt>/var/lxc-backup</tt></td>
</tr>
<tr>
<td><tt>['lwp']['conf']['storage_repository']['nfs'] = "/mnt/lxc-backup"</tt></td>
<td>String</td>
<td>NFS storage repository path</td>
<td><tt>/mnt/lxc-backup</tt></td>
</tr>
<tr>
<td><tt>['lwp']['conf']['ldap']['host']</tt></td>
<td>String</td>
<td>LDAP server host or ip</td>
<td><tt>ldap.example.com</tt></td>
</tr>
<tr>
<td><tt>['lwp']['conf']['ldap']['port']</tt></td>
<td>String</td>
<td>LDAP server port</td>
<td><tt>389</tt></td>
</tr>
<tr>
<td><tt>['lwp']['conf']['ldap']['ssl']</tt></td>
<td>String</td>
<td>Enable LDAP SSL protocol</td>
<td><tt>false</tt></td>
</tr>
<tr>
<td><tt>['lwp']['conf']['ldap']['base']</tt></td>
<td>String</td>
<td>LDAP base</td>
<td><tt>dc=example,dc=com</tt></td>
</tr>
<tr>
<td><tt>['lwp']['conf']['ldap']['bind_method']</tt></td>
<td>String</td>
<td>LDAP bind method. It could be: anon or user</td>
<td><tt>anon</tt></td>
</tr>
<tr>
<td><tt>['lwp']['conf']['ldap']['bind_dn']</tt></td>
<td>String</td>
<td>LDAP bind dn</td>
<td><tt>ou=people,dc=example,dc=com</tt></td>
</tr>
<tr>
<td><tt>['lwp']['conf']['ldap']['password']</tt></td>
<td>String</td>
<td>LDAP password of the user used to log in in the LDAP server</td>
<td><tt>auth_user_password</tt></td>
</tr>
<tr>
<td><tt>['lwp']['conf']['ldap']['id_mapping']</tt></td>
<td>String</td>
<td>LDAP field used to identify the user</td>
<td><tt>uid</tt></td>
</tr>
<tr>
<td><tt>['lwp']['conf']['ldap']['display_mapping']</tt></td>
<td>String</td>
<td>LDAP field used to identify the real name of the user</td>
<td><tt></tt></td>
</tr>
<tr>
<td><tt>['lwp']['conf']['ldap']['object_class']</tt></td>
<td>String</td>
<td>LDAP objectclass to filter the users objects</td>
<td><tt>posixAccount</tt></td>
</tr>
<tr>
<td><tt>['lwp']['conf']['ldap']['required_group']</tt></td>
<td>String</td>
<td>Group of the users that could authenticate in the application</td>
<td><tt></tt></td>
</tr>
<tr>
<td><tt>['lwp']['buckets']['buckets_host'] </tt></td>
<td>String</td>
<td>Buckets server host or IP</td>
<td><tt>buckets.example.com</tt></td>
</tr>
<tr>
<td><tt>['lwp']['conf']['buckets']['buckets_port'] </tt></td>
<td>String</td>
<td>Buckets server port</td>
<td><tt></tt></td>
</tr>
<tr>
<td><tt>['lwp']['conf']['pam']['service']</tt></td>
<td>String</td>
<td>Pam service</td>
<td><tt>login</tt></td>
</tr>
</table>
Usage
Just include lxc-web-panel
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[lxc-web-panel]" ] }
lxc-web-panel::default
This cookbook installs and configures LXC Web Panel in the node.
lxc-web-panel::ssl
This cookbook installs and configures Nginx in order to use LXC Web Panel with HTTPS service layer.
In order to use it, add this recipe to the node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[nginx]", "recipe[lxc-web-panel]", "recipe[lxc-web-panel::ssl]" ] }
Contributing
- Fork the repository on Github
- Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Authors: Claudio César Sánchez Tejeda
Dependent cookbooks
apt >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
lxc-web-panel CHANGELOG
This file is used to list changes made in each version of the lxc-web-panel cookbook.
0.3.4
- [Claudio Cesar Sanchez Tejeda] - Corrected some Foodcritic alerts in the ssl recipe
0.3.3
- [Claudio Cesar Sanchez Tejeda] - A lot of changes...
0.1.0
- [Claudio Cesar Sanchez Tejeda] - Initial release of lxc-web-panel
Check the Markdown Syntax Guide for help with Markdown.
The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.
Collaborator Number Metric
0.3.4 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.3.4 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.3.4 failed this metric
FC007: Ensure recipe dependencies are reflected in cookbook metadata: lxc-web-panel/recipes/ssl.rb:20
FC007: Ensure recipe dependencies are reflected in cookbook metadata: lxc-web-panel/recipes/ssl.rb:21
FC052: Metadata uses the deprecated "suggests" keyword: lxc-web-panel/metadata.rb:11
FC053: Metadata uses the deprecated "recommends" keyword: lxc-web-panel/metadata.rb:10
FC064: Ensure issues_url is set in metadata: lxc-web-panel/metadata.rb:1
FC065: Ensure source_url is set in metadata: lxc-web-panel/metadata.rb:1
FC066: Ensure chef_version is set in metadata: lxc-web-panel/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.3.4 passed this metric
Testing File Metric
0.3.4 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.3.4 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.3.4 failed this metric
0.3.4 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.3.4 failed this metric
FC007: Ensure recipe dependencies are reflected in cookbook metadata: lxc-web-panel/recipes/ssl.rb:20
FC007: Ensure recipe dependencies are reflected in cookbook metadata: lxc-web-panel/recipes/ssl.rb:21
FC052: Metadata uses the deprecated "suggests" keyword: lxc-web-panel/metadata.rb:11
FC053: Metadata uses the deprecated "recommends" keyword: lxc-web-panel/metadata.rb:10
FC064: Ensure issues_url is set in metadata: lxc-web-panel/metadata.rb:1
FC065: Ensure source_url is set in metadata: lxc-web-panel/metadata.rb:1
FC066: Ensure chef_version is set in metadata: lxc-web-panel/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.3.4 passed this metric
Testing File Metric
0.3.4 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.3.4 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.3.4 failed this metric
FC007: Ensure recipe dependencies are reflected in cookbook metadata: lxc-web-panel/recipes/ssl.rb:21
FC052: Metadata uses the deprecated "suggests" keyword: lxc-web-panel/metadata.rb:11
FC053: Metadata uses the deprecated "recommends" keyword: lxc-web-panel/metadata.rb:10
FC064: Ensure issues_url is set in metadata: lxc-web-panel/metadata.rb:1
FC065: Ensure source_url is set in metadata: lxc-web-panel/metadata.rb:1
FC066: Ensure chef_version is set in metadata: lxc-web-panel/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.3.4 passed this metric
Testing File Metric
0.3.4 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.3.4 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.3.4 failed this metric
0.3.4 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