Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add backup job #155

Merged
merged 1 commit into from
Dec 12, 2017
Merged

Add backup job #155

merged 1 commit into from
Dec 12, 2017

Conversation

b4ldr
Copy link
Member

@b4ldr b4ldr commented Aug 18, 2017

Small pull to add managing the gitlab backup cron job

@LongLiveCHIEF
Copy link
Contributor

This one has been on my list also, but I think it needs some things before it can be merged. Mainly, removing hardcoded values in favor of parameters.

@b4ldr b4ldr force-pushed the add_backup_job branch 3 times, most recently from f1159cb to 3e33f83 Compare September 4, 2017 17:57
@b4ldr
Copy link
Member Author

b4ldr commented Sep 4, 2017

@LongLiveCHIEF have updated with params for minute and hour. i also added a param for the gitlab-rake bin although this should not really change. I dont think this needs any further paramertisation but feel free to suggest some

@LongLiveCHIEF
Copy link
Contributor

Those were the ones I was worried about in order to make it a good PR. If you really wanted bonus points, you could add SKIP's. LGTM as is though.

@b4ldr
Copy link
Member Author

b4ldr commented Sep 5, 2017

SKIPs was pretty easy to add so have updated the pull request

@LongLiveCHIEF
Copy link
Contributor

LongLiveCHIEF commented Sep 5, 2017 via email

@b4ldr
Copy link
Member Author

b4ldr commented Sep 6, 2017

@LongLiveCHIEF you may have missed the join (https://github.com/vshn/puppet-gitlab/pull/155/files#diff-0ac866172efd29d0ddc2aa75ae6f182dR81) although it was joining them on white space before so i have fixed that to a comma

@b4ldr
Copy link
Member Author

b4ldr commented Sep 6, 2017

Further to this the reason i prefer an array over a string is for data validation when we move to puppet4. at that point we can do something like

types/skip.pp

type Gitlab::Skip = Enum[
  'db', 'uploads', 'repositories', 'builds', 
  'artifacts', 'lfs', 'registry', 'pages'
]

manifests/init.pp

class gitlab {
 ...
 Array[Gitlab::Skip] $backup_cron_skips
 ...
}

@LongLiveCHIEF
Copy link
Contributor

LongLiveCHIEF commented Sep 6, 2017 via email

@b4ldr
Copy link
Member Author

b4ldr commented Oct 10, 2017

anything preventing this?

@tobru tobru merged commit dfde7e2 into voxpupuli:master Dec 12, 2017
@tobru
Copy link
Contributor

tobru commented Dec 12, 2017

Thanks

@b4ldr b4ldr deleted the add_backup_job branch December 12, 2017 16:29
mhyzon pushed a commit to mhyzon/puppet-gitlab that referenced this pull request Jan 12, 2018
…s managing the backup cron w/o managing the config file and fixing SKIP syntax.
b4ldr added a commit to icann-dns/puppet-gitlab that referenced this pull request Apr 3, 2018
# This is the 1st commit message:

.

# This is the commit message #2:

remove duplicate githooks

# This is the commit message #3:

Refactor cirunners

-

-

update

# This is the commit message #4:

add deprecation notice

# This is the commit message voxpupuli#5:

add travis secret for publishing module

# This is the commit message voxpupuli#6:

release 1.16.0

# This is the commit message voxpupuli#7:

rename changelog for release gem

# This is the commit message voxpupuli#8:

rewrite changelog with github-changelog-generator

# This is the commit message voxpupuli#9:

[blacksmith] Bump version to 1.16.1-rc0

# This is the commit message voxpupuli#10:

modulesync 1.7.0

# This is the commit message voxpupuli#11:

modulesync 1.7.0 take 2

# This is the commit message voxpupuli#12:

fix spec test hiera location

# This is the commit message voxpupuli#13:

release 1.16.1

# This is the commit message voxpupuli#14:

[blacksmith] Bump version to 1.16.2-rc0

# This is the commit message voxpupuli#15:

Propose small spelling change

# This is the commit message voxpupuli#16:

Fixed redhat installation
# This is the commit message voxpupuli#17:

add letsencrypt section to gitlab.rb

# This is the commit message voxpupuli#18:

I think there were some minor problems with voxpupuli#155.  This allows managing the backup cron w/o managing the config file and fixing SKIP syntax.

# This is the commit message voxpupuli#19:

setup fast indexing of ssh keys

# This is the commit message voxpupuli#20:

add unit test for store_git_keys_in_db

# This is the commit message voxpupuli#21:

added docs for using store_git_keys_in_db feature

# This is the commit message voxpupuli#22:

add variable to scope

# This is the commit message voxpupuli#23:

update regex in ssh fast lookup spec

# This is the commit message voxpupuli#24:

another stab at regex

# This is the commit message voxpupuli#25:

typo correction

# This is the commit message voxpupuli#26:

checking file exists first
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants