diff --git a/contrib/bootstrap.sh b/contrib/bootstrap.sh index 540786f..2a02b75 100755 --- a/contrib/bootstrap.sh +++ b/contrib/bootstrap.sh @@ -26,6 +26,7 @@ # * git-review (package or pip) # * cookiecutter (package or pip) # * modulesync (gem) +# * digest (gem) proj=$1 user=$2 @@ -84,8 +85,10 @@ EOF # msync update --noop pushd modules/puppet-$proj +md5password=`ruby -e "require 'digest/md5'; puts 'md5' + Digest::MD5.hexdigest('pw${proj}')"` +sed -i "s|md5c530c33636c58ae83ca933f39319273e|${md5password}|g" spec/classes/${proj}_db_postgresql_spec.rb git remote add gerrit ssh://$user@review.openstack.org:29418/openstack/puppet-$proj.git -git commit --amend -am "puppet-${proj}: Initial commit +git add --all && git commit --amend -am "puppet-${proj}: Initial commit This is the initial commit for puppet-${proj}. It has been automatically generated using cookiecutter[1] and msync[2]