Coder Social home page Coder Social logo

typo3-cookbooks / gerrit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bfritz/chef-gerrit

14.0 14.0 27.0 233 KB

Chef cookbook for the Gerrit review system.

Home Page: https://code.google.com/p/gerrit/

Ruby 94.10% HTML 5.53% Shell 0.37%

gerrit's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gerrit's Issues

Update cookbook on community.opscode.com?

Hi, I will be using you gerrit cookbook and adding EL support. Can you update the version deployed to opscode? Or is there a reason it has not been updated for some time? Will you have time to accept patched or should I produce a new version based on this?

Thanks for your time.

Aimon

include mysql::client instead of mysql

the opscode mysql cookbook used to ship a default recipe that installed a mysql-client. In recent versions of the mysql cookbook the default recipe was dropped.

As we want the mysql-client we should explicitly include the mysql::client recipe.

cannot set sendmail section

I have set this on my attributes/default.rb:

default['gerrit']['sendemail']['smtpServer'] = 'smtp.mydomain.com'
default['gerrit']['sendemail']['smtpUser'] = 'gerrit'
default['gerrit']['sendemail']['from'] = 'Code Review <[email protected]>'

on gerrit.config:

[sendemail]
    smtpServer = localhost

Non-proxy HTTPS is untested

I think only a keystore has to be deployed, but personally I have no interest in that usage.

Pull requests wellcome.

Don' run reindex while running

Reindexing of the secondary index should only run, when Gerrit is freshly installed.

Currently, it runs also while upgrading.

It should not run, while upgrading, esp. not while the Gerrit service is running. It will fail with Lock obtain timed out otherwise (no data will be harmed however).

cannot override to use mysql

on attributes/default.rb

node.set['gerrit']['database']['type'] = 'MYSQL'
node.set['gerrit']['database']['host'] = 'localhost'
node.set['gerrit']['database']['name'] = 'gerrit'
node.set['gerrit']['database']['username'] = 'gerrit'

on gerrit.config

[database]
    type = H2
    database = db/ReviewDB
    hostname = localhost
    username = gerrit

NoMethodError with Debian 7/Chef-Client 10

I just tried the cookbook from the refactoring branch but it fails with

NoMethodError: undefined method `[]' for nil:NilClass

because of the java7 condition in the attributes. After removing

if node['java']['jdk_version'] < "7"

on line 88 it works like a charm. Should I look into this further or is my Chef-Client version (10.34.2-1) generally unsupported?

Ensure idempotency when running recipe

Possibly related to issue #1

When I run chef-solo the first time (with the war flavor of gerrit), secure.config contains configuration items for auth.registerEmailPrivateKey and auth.restTokenPrivateKey.

When I run chef-solo a second time, these items have disappeared from secure.config.

This violates the idempotency principle (see http://docs.opscode.com/chef_why.html)

The symptom of the missing secure.config entries is that registering/confirming an email address for a user no longer works because tokens cannot be generated.

Checksum on resource (96b4b8) does not match checksum on content (96b4b8)

 * remote_file[/var/gerrit/review/lib/bcprov-jdk15on-1.49.jar] action create[2014-12-12T07:29:51+00:00] INFO: Processing remote_file[/var/gerrit/review/lib/bcprov-jdk15on-1.49.jar] action create (gerrit::_deploy line 38)


    ================================================================================
    Error executing action `create` on resource 'remote_file[/var/gerrit/review/lib/bcprov-jdk15on-1.49.jar]'
    ================================================================================

    Chef::Exceptions::ChecksumMismatch
    ----------------------------------
    Checksum on resource (96b4b8) does not match checksum on content (96b4b8)

    Resource Declaration:

---------------------
           # In /tmp/kitchen/cache/cookbooks/gerrit/recipes/_deploy.rb


            38:   remote_file "#{node['gerrit']['install_dir']}/lib/#{lib_filename}" do
            39:     source url
            40:     checksum checksum

            41:     owner node['gerrit']['user']
            42:     group node['gerrit']['group']

 43:   end
            44: end

           Compiled Resource:
           ------------------
           # Declared in /tmp/kitchen/cache/cookbooks/gerrit/recipes/_deploy.rb:38:in `block in from_file'

           remote_file("/var/gerrit/review/lib/bcprov-jdk15on-1.49.jar") do
             provider Chef::Provider::RemoteFile
             action "create"
             retries 0
             retry_delay 2
             default_guard_interpreter :default
             path "/var/gerrit/review/lib/bcprov-jdk15on-1.49.jar"
             backup 5
             atomic_update true
             source ["http://central.maven.org/maven2/org/bouncycastle/bcprov-jdk15on/1.49/bcprov-jdk15on-1.49.jar"]

             use_etag true
             use_last_modified true
             cookbook_name "gerrit"
             recipe_name "_deploy"
             owner "gerrit"
             checksum "96b4b8d46e38"
             group "gerrit"

           end

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.