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

[Feature Request] go2chef.step.install.linux.dnf should allow specifying the repo path as source #54

Open
nishchintraina opened this issue Jun 8, 2022 · 0 comments

Comments

@nishchintraina
Copy link

The typical usage of installing a package in dnf is like the following

{
  "steps": [
    {
      "type": "go2chef.step.install.linux.dnf",
      "name": "install chef",
      "version": "15.2.20-1.el7.x86_64",
      "source": {
        "type": "go2chef.source.http",
        "url": "https://packages.chef.io/files/stable/chef/15.2.20/el/8/chef-15.2.20-1.el7.x86_64.rpm"
      }
    }
  ]
}

This is awesome, because it doesn't depend on any repo config on the const and make the bootstrap truly independent.
This works great for packages here the version doesn't change frequently - so the config is reasonably static.

However it might not be ideal in cases where the versions are changing quickly because of CI/CD. In that case it might be desirable to specify the path of the repo instead. Something like this:

{
  "steps": [
    {
      "type": "go2chef.step.install.linux.dnf",
      "name": "install chef-solo-tools",
      "version": "15.2.20-1.el7.x86_64",
      "source": {
        "type": "go2chef.source.repo",
        "baseurl": "https://packages.chef.io/centos/8.x/x86_64/"
      }
    }
  ]
}
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

1 participant