Is it possible to use groupinstall in a Salt State?
-
As the title asks, is it possible to do a "groupinstall" (Fedora) within a Salt State under the pkg.installed?
A quick Google search got me nowhere.
What I've been doing is doing a
dnf group info virtualization
(for example), and then just listing all of those packages under thepkg.installed
area in the Salt State. That's been working fine. But I'd like to be able to use a groupinstall, to keep things simpler, and also incase the packages in a groupinstall change.I've tried adding @virtualization, but that give an error when trying to run a HighState.
I suppose I can do a
cmd.run
, but looking for easier or overlooked alternatives that exist already for that purpose. -
Likely, but I've never tried that one.
-
@scottalanmiller said in Is it possible to use groupinstall in a Salt State?:
Likely, but I've never tried that one.
Aw, I was hoping you've already been there and done that.
-
No, I rarely do that manually, either. I tend to do each package.
-
@scottalanmiller said in Is it possible to use groupinstall in a Salt State?:
No, I rarely do that manually, either. I tend to do each package.
Do you like hurting your fingers? That's a lot of extra typing.
-
@travisdh1 said in Is it possible to use groupinstall in a Salt State?:
@scottalanmiller said in Is it possible to use groupinstall in a Salt State?:
No, I rarely do that manually, either. I tend to do each package.
Do you like hurting your fingers? That's a lot of extra typing.
Noting is much typing in the state world.
-
It looks like it is supported, but I haven't tested it yet:
-
@tim_g said in Is it possible to use groupinstall in a Salt State?:
It looks like it is supported, but I haven't tested it yet:
That's cool.