typo3-cookbooks / gerrit Goto Github PK
View Code? Open in Web Editor NEWThis project forked from bfritz/chef-gerrit
Chef cookbook for the Gerrit review system.
Home Page: https://code.google.com/p/gerrit/
This project forked from bfritz/chef-gerrit
Chef cookbook for the Gerrit review system.
Home Page: https://code.google.com/p/gerrit/
on attributes/default.rb
node.set['gerrit']['auth']['type'] = 'LDAP'
node.set['gerrit']['ldap']['username'] = '[email protected]'
on gerrit.config
[auth]
type = OPENID
I think it's common to have a "custom" way to deploy certs that come then through a wrapper cookbook. So I guess we should just have variables for the paths of the cert/key instead of enforcing the use of our ssl_certificates cookbook.
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
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.
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
I think only a keystore has to be deployed, but personally I have no interest in that usage.
Pull requests wellcome.
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).
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
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?
The CentOS image on dropbox is not available anymore. So the box can not be created.
Tested the box with the regular CentOS 7 and installed the vagrant berkshelf plugin but then the box is failing with the message undefined method `cloud'
Don't know who own the dropbox but the box would be helpful ;)
The broken link:
https://dl.dropbox.com/u/31081437/Berkshelf-CentOS-6.3-x86_64-minimal.box
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.
We need the magic of openssl rand -base64 36
put into secure.config and then saved back to an attribute.
* 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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.