1. mypack_prereq:
  2. pkg.installed:
  3. - pkgs:
  4. - glibc
  5. - compat-libstdc++-33.i686
  6. - libstdc++.i686
  7. - normalize: False
  8. - onlyif:
  9. - lspci|grep -qP '(this|that)'
  10. mypack:
  11. pkg.installed:
  12. - sources:
  13. - pack1: salt://mypack/files/pack1.noarch.rpm
  14. - pack2.i386: salt://mypack/files/pack2.i386.rpm
  15. - normalize: False
  16. - require:
  17. - pkg: mypack_prereq
  18. - pkg: some-other-state