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

document the origin configurations in README #105

Closed
ghost opened this issue Jul 25, 2017 · 5 comments · Fixed by #224
Closed

document the origin configurations in README #105

ghost opened this issue Jul 25, 2017 · 5 comments · Fixed by #224
Labels
beginner-friendly docs Improvements or additions to documentation

Comments

@ghost
Copy link

ghost commented Jul 25, 2017

Hi,

I am playing around with your module. It's nice but I am missing deeper origin configuration options.

E.g. we often have the following configuration

"origin=Debian,n=oldstable";
"origin=Debian,n=oldstable-updates";
"origin=Debian,n=oldstable-proposed-updates";
"origin=Debian,n=oldstable,l=Debian-Security";

So it's nice that it is possible to activate the Security origin by default but what if I want the other origins, too?

How does the origin parameter works? The documentation isn't very verbose about it.

Additionally it would be great if it would be possible to activate the other three with Boolean parameters as well.

So I wouldn't be forced to use hard coded strings for different distributions.

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 5
  • Ruby: ruby 2.3.3p222 (2016-11-21) [x86_64-linux-gnu]
  • Distribution: Debian 8
  • Module version: newest
@cristianbalan-mf
Copy link

Exactly, can't figure out how to declare the origins.

@ghost
Copy link
Author

ghost commented Dec 6, 2017

Got it out of the source code. You have to setup the origins array like that

origins   => [
  "origin=Debian,n=oldstable",
  "origin=Debian,n=oldstable-updates",
  "origin=Debian,n=oldstable-proposed-updates",
  "origin=Debian,n=oldstable,l=Debian-Security",
]

but in that case you have to check (with an if clause or something else) which distribution you'll use first.

@ekohl
Copy link
Member

ekohl commented Dec 11, 2017

I'd be great if someone could add this to README.md.

@fetzerms
Copy link
Contributor

Is there a "proper" way to simply append an origin to the default ones?

@anarcat anarcat changed the title origin configurations document the origin configurations in README Feb 6, 2020
@anarcat anarcat added beginner-friendly docs Improvements or additions to documentation labels Feb 6, 2020
@vegaaz
Copy link

vegaaz commented Feb 22, 2021

Is there a "proper" way to simply append an origin to the default ones?

I guess the parameter 'extra_origins' (Array) will satisfy your needs.
In my case I used this:

  class { 'unattended_upgrades':
    extra_origins        => [
      '${distro_id}ESM:${distro_codename}',         #lint:ignore:single_quote_string_with_variables
      '${distro_id}:${distro_codename}-updates',    #lint:ignore:single_quote_string_with_variables
    ]
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginner-friendly docs Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants