-
-
Save mikecmpbll/9f15e0132b479480173d7ba82d9857c9 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
---------- | |
ID: Update static config portion | |
Function: file.blockreplace | |
Name: /etc/redis/6379.conf | |
Result: False | |
Comment: Recursive requisite found | |
Started: | |
Duration: | |
Changes: | |
---------- | |
ID: redis_6379 | |
Function: service.running | |
Result: False | |
Comment: One or more requisite failed: redis.server.Update static config portion | |
Started: | |
Duration: | |
Changes: |
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
Exctract redis source archive: | |
archive.extracted: | |
- name: /tmp/ | |
- source: http://download.redis.io/releases/redis-{{ pillar['redis-version'] }}.tar.gz | |
- source_hash: sha1=6780d1abb66f33a97aad0edbe020403d0a15b67f | |
- archive_format: tar | |
- if_missing: /usr/local/bin/redis-server | |
Build redis: | |
cmd.run: | |
- name: make && make install | |
- cwd: /tmp/redis-{{ pillar['redis-version'] }} | |
- require: | |
- archive: Exctract redis source archive | |
- pkg: build-essential | |
- unless: '[ -f /usr/local/bin/redis-server ]' | |
build-essential: | |
pkg.installed | |
/etc/init.d/redis_6379: | |
file.managed: | |
- source: salt://redis/server-service | |
- mode: 644 | |
redis_6379: | |
service.running: | |
- enable: True | |
- require: | |
- cmd: Build redis | |
- file: /etc/init.d/redis_6379 | |
- file: /etc/redis/6379.conf | |
- watch: | |
- file: /etc/redis/6379.conf | |
/etc/redis/6379.conf: | |
file.managed: | |
- source: salt://redis/server.conf | |
- replace: False | |
- makedirs: True | |
Update static config portion: | |
file.blockreplace: | |
- name: /etc/redis/6379.conf | |
- source: salt://redis/server-config-block.conf | |
- marker_start: "# START MANAGED BY SALT ---DO-NOT-EDIT" | |
- marker_end: "# END MANAGED BY SALT ---DO-NOT-EDIT" | |
- prepend_if_not_found: True | |
- require: | |
- file: /etc/redis/6379.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment