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

Amazon Linux manage_os_default_repos does not compile due to unsupported parameters #100

Closed
Zordrak opened this issue May 15, 2018 · 4 comments · Fixed by #103
Closed

Amazon Linux manage_os_default_repos does not compile due to unsupported parameters #100

Zordrak opened this issue May 15, 2018 · 4 comments · Fixed by #103

Comments

@Zordrak
Copy link

Zordrak commented May 15, 2018

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 5.5.1
  • Ruby: 2.4.4
  • Distribution: Amazon Linux
  • Module version: 2.2.1

How to reproduce (e.g Puppet code you use)

node default {
  lookup('classes', {merge => unique}).include
}
classes:
  - yum
yum::manage_os_default_repos: true

What are you seeing

Failure to configure Amazon Linux default puppet repos due to the setting of parameters that Yumrepo does not support, such as fastestmirror_enabled and report_instanceid

What behaviour did you expect instead

Amazon default yum repos successfully configured

Output log

Error: no parameter named 'fastestmirror_enabled' (file: /etc/puppetlabs/code/environments/mot2/modules/yum/manifests/init.pp, line: 130) on Yumrepo[amzn-main] (file: /etc/puppetlabs/code/environments/mot2/modules/yum/manifests/init.pp, line: 130)

@Zordrak Zordrak changed the title Amazon Linux manage_os_default_repos does not compilen due to unsupported parameters Amazon Linux manage_os_default_repos does not compile due to unsupported parameters May 15, 2018
@Zordrak
Copy link
Author

Zordrak commented May 15, 2018

I'm looking into a PR for puppet to support fastestmirror_enabled and report_instanceid.

However, despite the fact that the amazon default repo configuration contains the parameter fastestmirror_enabled, and Chef already supports it - I have not been able to find any code or documentation in yum or the fastestmirror plugin for yum that suggests it supports enable/disable at the per-repository level.

@Zordrak
Copy link
Author

Zordrak commented May 15, 2018

Zordrak added a commit to cartest/puppet-yum that referenced this issue May 22, 2018
Update Amazon default OS repos to not define unsupported parameters until voxpupuli#100 is resolved
@Zordrak
Copy link
Author

Zordrak commented Jun 4, 2018

Based upon the result of https://tickets.puppetlabs.com/browse/PUP-8730 being Won'tFix, instead raising https://tickets.puppetlabs.com/browse/PUP-8904 to modify the Yumrepo type for implementation in Puppet 6, I would like to request that until such time as there is a valid way to define these unsupported paramaters, they be removed from the current data file for Amazon Linux in this module so that this module's basic functionality can still be used to manage the default repos in Amazon Linux.

@bastelfreak @pillarsdotnet

@Zordrak
Copy link
Author

Zordrak commented Jun 4, 2018

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 a pull request may close this issue.

1 participant