win_repo: Providing dynamic data at install time

6 views
Skip to first unread message

Dirk Heinrichs

unread,
May 29, 2015, 9:15:30 AM5/29/15
to salt-...@googlegroups.com
Hi,

while migrating stuff from Puppet, I came accross one Puppet class that has a package definition like below:

  package { 'The Package':
    alias           => 'the_pkg',
    ensure       => present,
    source       => $the_pkg_win,
    install_options => [
      '/qn',
      {
        'PROPERTY1'  => "${value1}",
        'PROPERTY2'  => "${value2}",
      }
      ],
  }

How can I pass arbitrary values to installer properties when using win_repo?

Thanks...

    Dirk
--

Dirk Heinrichs, Senior Systems Engineer, Engineering Solutions
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Tel: +49 2226 1596666 (Ansage) 1149
Email: d...@recommind.com
Skype: dirk.heinrichs.recommind
www.recommind.com

Loren Gordon

unread,
May 29, 2015, 9:28:29 AM5/29/15
to salt-...@googlegroups.com, dirk.he...@recommind.com
Currently, I don't think there is support for that, see [0]. The released versions of salt do not support rendering in winrepo sls files. However, some initial support has been added to the develop branch, see [1], for master-side rendering (via `winrepo.genrepo`), which can then be pushed to the minion (via `pkg.refresh_db`). That won't support dynamic properties that should be determined at install time on a per-minion basis, but it's better than nothing.

[0] https://github.com/saltstack/salt/issues/6859
[1] https://github.com/saltstack/salt/pull/22675

-Loren
Reply all
Reply to author
Forward
0 new messages