Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% set microcode = salt['grains.filter_by']({
- 'Debian': {
- 'pkgs': ['intel-microcode', 'amd64-microcode'],
- },
- 'RedHat': {
- 'pkgs': ['microcode_ctl'],
- 'service': 'microcode',
- },
- 'FreeBSD': {
- 'pkgs': ['devcpu-data'],
- 'sources': [{'devcpu-data': 'http://www.somesite.com/o1/fbsd/' ~ grains.get('osmajorrelease', '') ~ '/devcpu-data-1.7.txz'}],
- 'service': 'microcode_update',
- },
- }, grain='os_family') %}
- The sources for FreeBSD comes out as:
- {'devcpu-data': u'http://blahblah.com/devcpu-data-1.7.txz'}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement