Skip to content

Instantly share code, notes, and snippets.

Created March 6, 2018 19:25
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 anonymous/a3a22504fbc81fe2070718910bef8b4d to your computer and use it in GitHub Desktop.
Save anonymous/a3a22504fbc81fe2070718910bef8b4d to your computer and use it in GitHub Desktop.
# pillar
apache:
mod_jk:
version: 1.2.42
source_dir: /opt/mod_jk
workers_file: /etc/httpd/conf/workers.properties
shm_file: /var/log/httpd/mod_jk.shm
log_file: /var/log/httpd/mod_jk.log
log_level: error
log_stamp_format: '"[%a %b %d %H:%M:%S %Y] "'
# state
mod_jk_source_downloaded:
archive.extracted:
- name: {{ mod_jk.source_dir }}
- source: https://archive.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-{{ mod_jk.version}}-src.tar.gz
- source_hash: https://archive.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-{{ mod_jk.version }}-src.tar.gz.md5
- source_hash_name: {{ "*tomcat-connectors-" ~ mod_jk.version ~ "-src.tar.gz" }}
- archive_format: tar
- keep: True
- if_missing: {{ apache.modulesdir }}/mod_jk.so
file.absent:
- name: {{ apache.modulesdir }}/mod_jk.so
- onchanges:
- archive: mod_jk_source_downloaded
{% set mod_jk_build_dir = mod_jk.source_dir +
# error
Data failed to compile:
----------
Rendering SLS 'base:apache.mod_jk' failed: expected alphabetic or numeric character, but found '.'; line 35
---
[...]
mod_jk_source_downloaded:
archive.extracted:
- name: /opt/mod_jk
- source: https://archive.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.42-src.tar.gz
- source_hash: https://archive.apache.org/dist/tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.42-src.tar.gz.md5
- source_hash_name: *tomcat-connectors-1.2.42-src.tar.gz <======================
- archive_format: tar
- keep: True
- if_missing: /etc/lib64/httpd/modules/mod_jk.so
file.absent:
- name: /etc/lib64/httpd/modules/mod_jk.so
[...]
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment