Skip to content

Instantly share code, notes, and snippets.

@amontalban
Created May 14, 2015 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amontalban/34e0b80573495bd7cb75 to your computer and use it in GitHub Desktop.
Save amontalban/34e0b80573495bd7cb75 to your computer and use it in GitHub Desktop.
{% if grains['os'] == 'FreeBSD' %}
{% set p5_crypt_des_pkg = 'p5-crypt-des' %}
{% elif grains['os'] == 'Ubuntu' %}
{% set p5_crypt_des_pkg = 'libcrypt-des-perl' %}
{% endif %}
p5-Crypt-DES:
pkg.installed:
- name: {{ p5_crypt_des_pkg }}
--------------------------------------------------------------------------------
[DEBUG ] Refreshing modules...
[INFO ] Loading fresh modules for state activity
[INFO ] Executing command '/sbin/zfs help' in directory '/root'
[INFO ] Completed state [p5-crypt-cbc] at time 21:01:40.573509
[INFO ] Running state [p5-crypt-des] at time 21:01:40.574377
[INFO ] Executing state pkg.installed for p5-crypt-des
[INFO ] Executing command 'pkg install -y p5-crypt-des' in directory '/root'
[INFO ] Executing command 'pkg info -ao' in directory '/root'
[ERROR ] Installed Packages:
p5-Crypt-DES changed from absent to 2.07_1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment