beyondtrust:
cmd.run
{% if grains['os'] == 'Ubuntu' %}
- run
- name: curl -L http://download.beyondtrust.com/PBISO/8.3/pbis-open-8.3.0.3287.linux.x86_64.deb.sh | -o -pbis.sh
{% elif grains['os'] == 'RedHat' %}
- name: curl http://download.beyondtrust.com/PBISO/8.3/pbis-open-8.3.0.3287.linux.x86_64.rpm.sh -o -pbis.sh
{% endif %}
- require
- pkg: curl
Any help would be nice to get a salt state for beyondtrust
thanks.
I'm trying to create a salt state for beyondtrust AD authentication tool.This is what I have so far, and it is saying that i have an unknown yaml render error. on line 5. (underlined)beyondtrust:
cmd.run
{% if grains['os'] == 'Ubuntu' %}
- run
- name: curl -L http://download.beyondtrust.com/PBISO/8.3/pbis-open-8.3.0.3287.linux.x86_64.deb.sh | -o -pbis.sh
pbis-open:
pkgrepo.managed:
- name: pbis-open
- humanname: PBISO- local packages for $basearch
- baseurl: http://repo.pbis.beyondtrust.com/yum/pbiso/$basearch
- enabled: 1
- gpgcheck: 0
- order: 1
- refresh_db: True
pkg.installed:
- name: pbis-open
- require:
- pkgrepo: pbis-open
and for Ubuntu we use:
pbis-open:
pkgrepo.managed:
- humanname: PBISO- local packages for $basearch
- name: deb http://repo.pbis.beyondtrust.com/apt pbiso main
- file: /etc/apt/sources.list.d/pbiso.list
- key_url: http://repo.pbis.beyondtrust.com/yum/RPM-GPG-KEY-pbis
- require_in:
- pkg: pbis-open
pkg.latest:
- name: pbis-open
- refresh: True
Works like a beast