go2chef icon indicating copy to clipboard operation
go2chef copied to clipboard

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

Open nishchintraina opened this issue 3 years ago • 0 comments

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/"
      }
    }
  ]
}

nishchintraina avatar Jun 08 '22 22:06 nishchintraina