cookbook 'looker', '= 0.2.0'
looker (6) Versions 0.2.0 Follow1
Installs/Configures Looker
cookbook 'looker', '= 0.2.0', :supermarket
knife supermarket install looker
knife supermarket download looker
Looker Cookbook
This is a cookbook for setting up an on-premise install of Looker, the business intelligence software.
Production Deployment
With the standard set of defaults, this cookbook will install looker very similarly to the official looker documentation. Putting things in the the standard locations (/home/looker/looker...
), creating a looker
user and group on the machine, and using the self-signed certificate.
You can override the attributes in a cookbook, role, or environment:
default[:looker][:looker_user] = 'looker' default[:looker][:looker_group] = 'looker' default[:looker][:home_dir] = '/home/looker/'
Java JDK
NOTE: Looker 4.2 and greater require a java JDK version of Oracle Java 8 or greater, and will be part of the installation. You can override this in your environment with:
default[:java][:jdk_version] = '8' default[:java][:install_flavor] = 'oracle'
SSL
If you'd like to have your looker use a proper SSL certificate, you can provide override the [:looker][:use_custom_ssl]
attribute to be true
, and set the following values:
looker: { ssl: { aws_access_key_id: 'my-access-key', aws_secret_access_key: 'my-secret-key', s3_bucket: 'my-bucket', certificate_key_path: '/path/to/my-cert.key', certificate_path: '/path/to/my-cert.pem', } }
This allows you to point to a given s3 bucket and grab both your certificate .pem
file, and it's corresponding .key
, and the looker::ssl
recipe will setup a java key store, and give those credentials to the looker script.
Usage
Simply include the looker
recipe wherever you would like looker to be installed.
Requirements
Chef 12+
Java JDK 8+
Platform
- Ubuntu 16.04
Attributes
See attributes/default.rb
for default values.
Attribute | Note | Default Value |
---|---|---|
node[:looker][:looker_user] |
The user looker should be run as, and will be created in the looker::user recipe. |
'looker' |
node[:looker][:looker_group] |
The group the looker user should belong to, and will be created in the looker::user recipe. |
'looker' |
node[:looker][:home_dir] |
The home directory for the looker user |
'/home/looker/' |
node[:looker][:looker_dir] |
The looker wokring directory. |
/home/looker/looker , per the looker convention |
node[:looker][:looker_jar_file] |
The name of the looker jarfile | 'looker.jar' |
node[:looker][:looker_script_name] |
The execution script to start the looker process. | 'looker' |
node[:looker][:forward_to_443] |
Boolean toggle for setting iptables to forward requests to :443 to :9999 | true |
node[:looker][:use_custom_ssl] |
Boolean toggle for using a custom SSL certificate. | false |
node[:looker][:looker_user_ulimit] |
The ulimit to be set for the looker user. | 4096 |
node[:looker][:major_version] |
The major version of looker to install. | 5 |
node[:looker][:minor_version] |
The minor version of looker to install. | 2 |
Recipes
default
Include the default recipe in a run list or recipe to install looker.
setup
Included as part of default
, this recipe configures and installs the looker application, the required JDK dependancies, and starts the looker service.
user
Sets up the looker user, group and home directory. This is included by default.rb
.
ssl
Configures a java keystore, and generate and installs custom certificates for your looker server.
stop
Stops the looker service.
start
Starts the looker service.
License and Author
Author: Barclay Loftus (barclay@deliv.co)
Copyright (c) 2017 Deliv
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
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.
Dependent cookbooks
java >= 0.0.0 |
aws >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.2.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.2.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.2.0 passed this metric
License Metric
0.2.0 failed this metric
looker does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.
No Binaries Metric
0.2.0 passed this metric
Testing File Metric
0.2.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.2.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.2.0 failed this metric
0.2.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.2.0 passed this metric
License Metric
0.2.0 failed this metric
looker does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.
No Binaries Metric
0.2.0 passed this metric
Testing File Metric
0.2.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.2.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.2.0 passed this metric
0.2.0 failed this metric
looker does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.
No Binaries Metric
0.2.0 passed this metric
Testing File Metric
0.2.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.2.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.2.0 passed this metric
0.2.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.2.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.2.0 failed this metric