cookbook 'yum-gitlab-ce', '~> 0.1.1', :supermarket
yum-gitlab-ce (2) Versions 0.1.1 Follow0
Installs/Configures yum-gitlab-ce
cookbook 'yum-gitlab-ce', '~> 0.1.1'
knife cookbook site install yum-gitlab-ce
knife cookbook site download yum-gitlab-ce
yum-gitlab-ce Cookbook
Configures repo file, via attributes, for Gitlab Community Edition
This is a simple cookbook, which points at the gitlab-ce Omnibus package hosted
on packages.gitlab.com. One may override yum.gitlab-ce.baseurl
to point
an alternate mirror of gitlab-ce Omnibus packages.
Requirements
This cookbook depends on the yum_repository
provider from the yum
cookbook.
You need to have a RHEL family platform, and yum, to use the cookbook.
cookbooks
yum
- Opscode maintained v3.0.x cookbook
Attributes
The following are overridable attributes, in the yum['gitlab-ce']
namespace.
yum-gitlab-ce::default
<table> <tr> <th>Key</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> <tr> <td><tt>['yum']['gitlab-ce']['repositoryid']</tt></td> <td>String</td> <td>Name of the repository</td> <td><tt>gitlab_gitlab-ce</tt></td> </tr> <tr> <td><tt>['yum']['gitlab-ce']['baseurl']</tt></td> <td>String</td> <td>URL where repodata folder is located. Given domain example.com; platform_family rhel; and platform_version 6.4 the default would be:</td> <td><tt>https://packages.gitlab.com/gitlab/gitlab-ce/el/$releasever/$basearch</tt></td> </tr> <tr> <td><tt>['yum']['gitlab-ce']['gpgkey']</tt></td> <td>String</td> <td>URL where GPG key is located.</td> <td><tt>https://packages.gitlab.com/gpg.key</tt></td> </tr> <tr> <td><tt>['yum']['gitlab-ce']['gpgcheck']</tt></td> <td>true/false</td> <td>Whether, or not, to validate signed packages from this repository against the GPG key specified.</td> <td><tt>true</tt></td> </tr> <tr> <td><tt>['yum']['gitlab-ce']['sslverify']</tt></td> <td>true/false</td> <td>Whether, or not, to verify the TLS certificate at the baseurl.</td> <td><tt>true</tt></td> </tr> <tr> <td><tt>['yum']['gitlab-ce']['sslcacert']</tt></td> <td>String</td> <td>TLS CA Bundle</td> <td><tt>/etc/pki/tls/certs/ca-bundle.crt</tt></td> </tr> <tr> <td><tt>['yum']['gitlab-ce']['enabled']</tt></td> <td>true/false</td> <td>Disable, or enable, repository</td> <td><tt>true</tt></td> </tr> <tr> <td><tt>['yum']['gitlab-ce']['managed']</tt></td> <td>true/false</td> <td>Whether, or not, Chef should manage the gitlab_gitlab-ce.repo file</td> <td><tt>true</tt></td> </tr> <tr> <td><tt>['yum']['gitlab-ce']['makecache']</tt></td> <td>true/false</td> <td>Whether Chef should update the yum cache when installing the repo file.</td> <td><tt>true</tt></td> </tr> </table>
Usage
yum-gitlab-ce::default
Optionally, set attributes in a role, and
include yum-gitlab-ce
in your node's run_list
:
default_attributes(
:yum => {
:gitlab-ce => {
:baseurl => {
"http://yum.example.com/yum/$releasever/$basearch"
}
}
}
)
{
"name":"my_node",
"run_list": [
"recipe[yum-gitlab-ce]"
]
}
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - 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
Author:: Eric G. Wolfe Copyright:: 2016
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.
v0.1.1
- Omnibus Gitlab CE is apparently not signed
v0.1.0
- Initial release
Collaborator Number Metric
0.1.1 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.1 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.1 failed this metric
FC066: Ensure chef_version is set in metadata: yum-gitlab-ce/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: yum-gitlab-ce/metadata.rb:1
FC069: Ensure standardized license defined in metadata: yum-gitlab-ce/metadata.rb:1
Run with Foodcritic Version 13.0.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
0.1.1 failed this metric
yum-gitlab-ce 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.1.1 passed this metric
Publish Metric
0.1.1 passed this metric
Supported Platforms Metric
0.1.1 failed this metric
yum-gitlab-ce should declare what platform(s) it supports.
Testing File Metric
0.1.1 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.1 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.1 failed this metric
0.1.1 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.1 failed this metric
FC066: Ensure chef_version is set in metadata: yum-gitlab-ce/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: yum-gitlab-ce/metadata.rb:1
FC069: Ensure standardized license defined in metadata: yum-gitlab-ce/metadata.rb:1
Run with Foodcritic Version 13.0.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
0.1.1 failed this metric
yum-gitlab-ce 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.1.1 passed this metric
Publish Metric
0.1.1 passed this metric
Supported Platforms Metric
0.1.1 failed this metric
yum-gitlab-ce should declare what platform(s) it supports.
Testing File Metric
0.1.1 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.1 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.1 failed this metric
FC067: Ensure at least one platform supported in metadata: yum-gitlab-ce/metadata.rb:1
FC069: Ensure standardized license defined in metadata: yum-gitlab-ce/metadata.rb:1
Run with Foodcritic Version 13.0.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.1 failed this metric
yum-gitlab-ce 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.1.1 passed this metric
Publish Metric
0.1.1 passed this metric
Supported Platforms Metric
0.1.1 failed this metric
yum-gitlab-ce should declare what platform(s) it supports.
Testing File Metric
0.1.1 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.1 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.1 passed this metric
0.1.1 passed this metric
Supported Platforms Metric
0.1.1 failed this metric
yum-gitlab-ce should declare what platform(s) it supports.
Testing File Metric
0.1.1 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.1 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.1 failed this metric
0.1.1 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.1 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.1 failed this metric