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

open-build-service (16) Versions 0.1.0

Installs/Configures open-build-service

Berkshelf/Librarian
Policyfile
Knife
cookbook 'open-build-service', '= 0.1.0'
cookbook 'open-build-service', '= 0.1.0', :supermarket
knife cookbook site install open-build-service
knife cookbook site download open-build-service
README
Dependencies
Changelog
Quality 0%

open-build-service Cookbook

This cookbook makes your favorite build system a lot easier and maintainable.

Requirements

packages

  • apache2
  • passenger_apache2 Required for the frontend / API / WebUI
  • mysql (patched to handle openSUSE version of MariaDB)
  • mysql2_chef_gem
  • database
  • ssl_certificate
  • lvm (for worker)

Attributes

open-build-service::worker

<table> <tr> <th>Key</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> <tr> <td><tt>['open-build-service']['worker']['repo_servers']</tt></td> <td>Sring</td> <td>Repository server instance addresses</td> <td><tt>""</tt></td> </tr> </table>

Usage

open-build-service::....

Just include open-build-service in your node's run_list:

{
  "open-build-service": {
    "signer": {
      "user": "obsrun@build.example.com"
    },
    "signd": {
      "keypairs": {
        "obsrun@build.example.com": {
          "bag": "gpgkeys_data_bag",
          "private_key": {
            "item": "signd_private_key"
          },
          "public_key": {
            "item": "signd_public_key"
          },
          "key_phrase": {
            "item": "signd_key_phrase"
          }
        }
      }
    },
    "worker": {
      "kvm": true,
      "kernel_package": "kernel-obs-build",
      "vm_type": "kvm",
      "vm_kernel": "/.build.kernel.kvm",
      "vm_initrd": "/.build.initrd.kvm"
    },
    "source_services": ["download_url"],
    "frontend" : {
            "remote_instances": {
               "openSUSE": {
                  "title": "openSUSE.org",
                  "description": "Public OpenSUSE OBS instance",
                  "remoteurl": "https:/api.opensuse.org/public"
                }
            },
            "global_notification": {
               "BuildFail": {
                  "bugowner": 1,
                  "maintainer": 1 
                }
             },
        "ssl_key": {
        "source": "data-bag",
        "bag": "ssl_data_bag",
        "item": "key",
        "item_key": "content",
        "encrypted": true
        },
        "ssl_cert": {
        "source": "data-bag",
        "bag": "ssl_data_bag",
        "item": "cert",
        "item_key": "content",
        "encrypted": true
        }
    }
        }
    }
  },
  "run_list": [
        "recipe[open-build-service::source_server]",
        "recipe[open-build-service::service_server]",
        "recipe[open-build-service::api_server]",
        "recipe[open-build-service::signd]",
        "recipe[open-build-service::repo_server]",
        "recipe[open-build-service::worker]"
  ]
}

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

Copyright 2014-2015, Brocade Communications Systems, Inc.

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

passenger_apache2 >= 0.0.0
ssl_certificate >= 0.0.0
apache2 >= 0.0.0
database >= 0.0.0
mysql2_chef_gem >= 0.0.0
mysql >= 0.0.0
zypper >= 0.0.0
lvm >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

open-build-service CHANGELOG

0.1.0

  • Daniel Gollub - Initial release of open-build-service

Foodcritic Metric
            

0.1.0 failed this metric

FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/275f78359270d6a28089f98a/open-build-service/libraries/worker_helper.rb:29
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/275f78359270d6a28089f98a/open-build-service/libraries/worker_helper.rb:40
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/275f78359270d6a28089f98a/open-build-service/templates/default/obs-server.erb:4
FC002: Avoid string interpolation where not required: /tmp/cook/275f78359270d6a28089f98a/open-build-service/templates/default/bsconfig.erb:46
FC002: Avoid string interpolation where not required: /tmp/cook/275f78359270d6a28089f98a/open-build-service/templates/default/global_notification.yml.erb:10
FC002: Avoid string interpolation where not required: /tmp/cook/275f78359270d6a28089f98a/open-build-service/templates/default/global_notification.yml.erb:11
FC002: Avoid string interpolation where not required: /tmp/cook/275f78359270d6a28089f98a/open-build-service/templates/default/remote_instances.yml.erb:4
FC002: Avoid string interpolation where not required: /tmp/cook/275f78359270d6a28089f98a/open-build-service/templates/default/remote_instances.yml.erb:5
FC002: Avoid string interpolation where not required: /tmp/cook/275f78359270d6a28089f98a/open-build-service/templates/default/remote_instances.yml.erb:6
FC007: Ensure recipe dependencies are reflected in cookbook metadata: /tmp/cook/275f78359270d6a28089f98a/open-build-service/recipes/_api_database.rb:32
FC019: Access node attributes in a consistent manner: /tmp/cook/275f78359270d6a28089f98a/open-build-service/libraries/worker_helper.rb:29
FC019: Access node attributes in a consistent manner: /tmp/cook/275f78359270d6a28089f98a/open-build-service/libraries/worker_helper.rb:40
FC023: Prefer conditional attributes: /tmp/cook/275f78359270d6a28089f98a/open-build-service/recipes/_worker_storage.rb:33
FC023: Prefer conditional attributes: /tmp/cook/275f78359270d6a28089f98a/open-build-service/recipes/worker.rb:28
FC023: Prefer conditional attributes: /tmp/cook/275f78359270d6a28089f98a/open-build-service/recipes/worker.rb:34
FC048: Prefer Mixlib::ShellOut: /tmp/cook/275f78359270d6a28089f98a/open-build-service/libraries/worker_helper.rb:46