ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Is it possible to use groupinstall in a Salt State?

    IT Discussion
    saltstack saltstate help
    4
    8
    1.0k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ObsolesceO
      Obsolesce
      last edited by

      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 the pkg.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.

      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        Likely, but I've never tried that one.

        ObsolesceO 1 Reply Last reply Reply Quote 1
        • ObsolesceO
          Obsolesce @scottalanmiller
          last edited by Obsolesce

          @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.

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller
            last edited by

            No, I rarely do that manually, either. I tend to do each package.

            travisdh1T 1 Reply Last reply Reply Quote 0
            • travisdh1T
              travisdh1 @scottalanmiller
              last edited by

              @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.

              scottalanmillerS 1 Reply Last reply Reply Quote 1
              • scottalanmillerS
                scottalanmiller @travisdh1
                last edited by

                @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.

                1 Reply Last reply Reply Quote 0
                • ObsolesceO
                  Obsolesce
                  last edited by

                  It looks like it is supported, but I haven't tested it yet:

                  https://docs.saltstack.com/en/latest/ref/states/all/salt.states.pkg.html#salt.states.pkg.group_installed

                  black3dynamiteB 1 Reply Last reply Reply Quote 0
                  • black3dynamiteB
                    black3dynamite @Obsolesce
                    last edited by

                    @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:

                    https://docs.saltstack.com/en/latest/ref/states/all/salt.states.pkg.html#salt.states.pkg.group_installed

                    That's cool.

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post