-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
manage_package_repo is gone and replacement is broken #250
Comments
|
What version of this package are you using? This has not yet been released, and as such is unstable. I don't recommend using |
|
I know.. I just checked out master and saw it was broken (for how I use it atleast :) I have kept my production gitlab version at an older release for now :) |
|
I'm going to be adding some more tests against the new functionality added before I release to make sure any issues are addressed. It will be a breaking change though, so keep an eye out for things that will be different. |
|
@KlavsKlavsen I'm working through what tests I need to add to this, but I need some help with the usage case you're trying to explain. The module is designed to fail when you set What I'm trying to do is reduce the footprint of the docs in I can go back to the scoped method you describe, but I'd like to see if this new way can work first. I'm going to be doing a series/book on puppet development patterns in Puppet 5+, and this is one of the patterns I'm exploring. So to be clear, I'm not saying you're wrong about anything... I think there probably is something I missed, I just need you to take another stab at explaining it. Can you tell me what exactly you mean by:
Can you give me an example use case so I can add that as a test and scenario for a fix? |
|
an example use case would be to add a gitlab-ce repo (from other class) pointing to local mirror - and have NO internet connection. Thats our issue. |
|
I think what you're saying, is that when you have some puppet code almost exactly like the code below, it fails. Right? If so can you provide me with the error you're seeing, along with any differences in your params for the class my_gitlab_profile (
$manage_upstream_edition = 'disabled',
$ensure = '10.7.6-ce.0.el7',
$package_name = 'gitlab-ce',
$repository_configuration = {},
) {
class { 'gitlab':
manage_upstream_edition => $manage_upstream_edition
}
class {'gitlab::install':
ensure => $ensure,
package_name => $package_name,
}
class {'gitlab::omnibus_package_repository':
repository_configuration => $repository_configuration,
}or if you're using hiera: my_gitlab_profile::manage_upstream_edition: 'disabled'
my_gitlab_profile::ensure: '10.7.6-ce.0.el7'
my_gitlab_profile::package_name: 'gitlab-ce'
my_gitlab_profile::repository_configuration:
yumrepo:
gitlab_official_ce:
baseurl: "https://my.mirror.com/repository/packages.gitlab.com/gitlab/gitlab-ce/el/7/$basearch"edit: updated the example to add hiera configuration and common profile type parameterization |
|
@KlavsKlavsen i've went ahead and changed the way these variables are scoped up from the As a result, this should start working again with the new technique once #254 is merged. (all params are now on |
|
Perfect.. thank you very much.. I hope you could use the "early feedback" on the module :) |
|
Definitely appreciated so i could address this before it made it to an official release. Thank you! |
When you removed manage_package_repo - a doc was added 517469b#diff-04c6e90faac2675aa89e2176d2eec7d8R188 - stating how to use the new.
It does however NOT work.
I made it work by adding:
Optional[String] $package_name = undef,
Boolean $manage_omnibus_repository = true,
to gitlab class - and make package::install - default to using $gitlab::package_name and obmibus_.. class - to using $gitlab::manage_ominibus_repository
Otherwise - one cannot use gitlab - and have repos handled by other modules.
The text was updated successfully, but these errors were encountered: