sbadia / puppet-gitlab

Puppet module for manage GitLab installation
http://forge.puppetlabs.com/sbadia/gitlab
GNU General Public License v3.0
131 stars 76 forks source link

Database Is Wiped Out On Every Run #215

Closed StrangeWill closed 9 years ago

StrangeWill commented 9 years ago

Fresh install on Debian 7, ${git_home}/.gitlab_setup_done is not being created, touching it fixes it. Not sure why...

toepi commented 9 years ago

Note: with version 0.1.5 and gitlab 6.9 it works on debian 7 like expected. My database (postgress on separate host) is alive since 4 month and puppet runs every 30 minutes. So it must introduced between 0.1.5 and 0.2.

alexcern commented 9 years ago

Hi

Same behavior here on Centos7. The cause is 9df87b7e6249ab35a7ec51186d4631e24205b20f removing ensure => present on File["${git_home}/.gitlab_setup_done"] because lint complained about it. Now the file is not created anymore and new installs will keep recreating the database.

I guess the way to keep lint happy and restore the correct behavior is to have ensure => file

sbadia commented 9 years ago

Indeed, sorry for this bug… Many thanks for the debug+patch!