Skip to content

Instantly share code, notes, and snippets.

@daveneeley
Created March 22, 2016 23:09
Show Gist options
  • Save daveneeley/66c4a61e44e45a695363 to your computer and use it in GitHub Desktop.
Save daveneeley/66c4a61e44e45a695363 to your computer and use it in GitHub Desktop.
Use salt to install apache webserver from http://www.aixtools.net/index.php/httpd-2.2
download_bundle:
file.managed:
- name: /tmp/aixtools/aixtools.asf.httpd-2.2.bundle.tar.bz2
- source: http://download.aixtools.net/tools/asf/aixtools.asf.httpd-2.2.bundle.tar.bz2
- source_hash: sha256=837fb885c8de4755dac88bd7f11558e60b5bd21bc01b8758259b43737b844ea2
- makedirs: true
extract_bundle:
cmd.run:
- name: 'bzip2 -dc aixtools.asf.httpd-2.2.bundle.tar.bz2 | tar xf -'
- cwd: /tmp/aixtools
run_inutoc:
cmd.run:
- name: 'inutoc .'
- cwd: /tmp/aixtools
run_installp:
cmd.run:
- name: 'installp -d . -agX aixtools.asf.httpd'
- cwd: /tmp/aixtools
start_apachectl:
cmd.run:
- name: /opt/bin/apachectl -t
base:
'*':
- apache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment