Created
February 8, 2017 20:15
-
-
Save cmarzullo/07651ff32b7761b0fac16e922a5f57ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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