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

enabling a yum repo should implicitly set the manage attribute to true #174

Closed
haidangwa opened this issue May 3, 2017 · 1 comment
Closed

Comments

@haidangwa
Copy link

haidangwa commented May 3, 2017

Cookbook version

4.1.0

Chef-client version

12.14.89

Platform Details

redhat 6

Scenario:

I intended to enable a yum repo, but setting only the yum//enable attribute doesn't do the trick. It also requires setting the yum//managed attribute to true before a file is dropped onto /etc/yum.repos.d/.repo.

Steps to Reproduce:

in a role, set the enabled attribute to true:

    "yum": {
      "remi": {
        "enabled": true
      }
    }

Expected Result:

I should see /etc/yum.repos.d/remi.repo on the target node. Setting the enabled attribute should imply that the managed attribute is also true.

Actual Result:

nothing is created.

@iennae
Copy link
Contributor

iennae commented May 3, 2017

@haidangwa this looks like you are having an expectation of behaviors around the yum-remi-chef cookbook. The yum-remi-chef cookbook recipes expect that node['yum'][repo]['managed'] is set to true or it doesn't configure the repo. Take a look at this recipe. This doesn't have anything to do with the yum cookbook so I'm going to go ahead and close this issue. If you want to submit a pull request to the yum-remi-chef cookbook to update this behavior this will give folks who use the cookbook the space and time to evaluate the proposed change.

Thanks.

@iennae iennae closed this as completed May 3, 2017
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

No branches or pull requests

2 participants