Okay I tried it again.
So I tried the puppet invocation manually and as it failed I tried the commands on the command line
[root@abgit app]# bin/rake db:migrate
(in /var/www/gitorious/app)
rake aborted!
Access denied for user 'gitorious'@'localhost' (using password: YES)
/var/www/gitorious/app/Rakefile:10:in `require'
(See full trace by running task with --trace)
[root@abgit ce-installer]# puppet apply --modulepath=modules manifests/site.pp
notice: /Stage[main]/Gitorious::Database/Exec[install_bundler]/returns: executed successfully
err: /Stage[main]//Node[gitorious-ce]/Gitorious::Version[v2.4.12]/Exec[post_version_upgrade]/returns: change from notrun to 0 failed: sh -c 'export GIT_SSL_NO_VERIFY=true && cd /var/www/gitorious/app && bin/bundle install && git submodule update --init && bin/rake db:migrate && bin/rake assets:clear && touch /var/www/gitorious/deployed_tags/v2.4.12_requirements' returned 1 instead of one of [0] at /root/gitorious/ce-installer/modules/gitorious/manifests/templates.pp:30
err: /Stage[main]/Gitorious::Sphinx/Exec[bootstrap_thinking_sphinx]/returns: change from notrun to 0 failed: /var/www/gitorious/app/bin/rake ts:config returned 1 instead of one of [0] at /root/gitorious/ce-
installer/modules/gitorious/manifests/sphinx.pp:16
notice: /Stage[main]/Gitorious::Sphinx/Cron[reindex_sphinx]: Dependency Exec[bootstrap_thinking_sphinx] has failures: true
warning: /Stage[main]/Gitorious::Sphinx/Cron[reindex_sphinx]: Skipping because of failed dependencies
err: /Stage[main]/Gitorious::Database/Exec[populate_database]/returns: change from notrun to 0 failed: /var/www/gitorious/app/bin/rake db:setup && touch /var/www/gitorious/app/tmp/database_populated returned 1 instead of one of [0] at /root/gitorious/ce-installer/modules/gitorious/manifests/database.pp:69
notice: /Stage[main]/Gitorious::Core/File[/etc/gitorious.conf]: Dependency Exec[populate_database] has failures: true
warning: /Stage[main]/Gitorious::Core/File[/etc/gitorious.conf]: Skipping because of failed dependencies
notice: /Stage[main]/Gitorious::Nginx/File[/etc/nginx/nginx.conf]: Dependency Exec[populate_database] has failures: true
warning: /Stage[main]/Gitorious::Nginx/File[/etc/nginx/nginx.conf]: Skipping because of failed dependencies
notice: /Stage[main]/Gitorious::Dependencies/Service[monit]: Dependency Exec[populate_database] has failures: true
warning: /Stage[main]/Gitorious::Dependencies/Service[monit]: Skipping because of failed dependencies
notice: /Stage[main]/Gitorious::Logrotate/Package[logrotate]: Dependency Exec[populate_database] has failures: true
warning: /Stage[main]/Gitorious::Logrotate/Package[logrotate]: Skipping because of failed dependencies
notice: /Stage[main]/Gitorious::Logrotate/File[/etc/logrotate.d/gitorious]: Dependency Exec[populate_database] has failures: true
warning: /Stage[main]/Gitorious::Logrotate/File[/etc/logrotate.d/gitorious]: Skipping because of failed dependencies
notice: /Stage[main]/Gitorious::Unicorn/File[unicorn.rb]: Dependency Exec[populate_database] has failures: true
warning: /Stage[main]/Gitorious::Unicorn/File[unicorn.rb]: Skipping because of failed dependencies
notice: /Stage[main]/Gitorious::Core/File[restart.txt]: Dependency Exec[populate_database] has failures: true
warning: /Stage[main]/Gitorious::Core/File[restart.txt]: Skipping because of failed dependencies
notice: Finished catalog run in 15.09 seconds