Skip to content

Instantly share code, notes, and snippets.

@cmarzullo
Created February 8, 2017 20:15
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 cmarzullo/07651ff32b7761b0fac16e922a5f57ca to your computer and use it in GitHub Desktop.
Save cmarzullo/07651ff32b7761b0fac16e922a5f57ca to your computer and use it in GitHub Desktop.
{% if not salt.file.directory_exists(nagiosplugins.install_dir) %}
# build-essential
nagiosplugins_buildpkgs_install:
pkg.installed:
- pkgs: {{ nagiosplugins.buildpkgs }}
nagiosplugins_source_extract:
archive.extracted:
- name: {{ nagiosplugins.build_dir }}
- source: {{ nagiosplugins.source.url }}
- source_hash: {{ nagiosplugins.source.hash }}
- archive_format: tar
- archive_user: root
nagiosplugins_source_build:
cmd.run:
- cwd: {{ nagiosplugins.build_dir }}/nagios-plugins-{{ nagiosplugins.version }}
- user: root
- name: |
./configure --prefix={{ nagiosplugins.install_dir }} --without-world-permissions
make install
{% else %}
'nagiosplugins_already_installed':
test.succeed_without_changes
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment