-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from daks/source-files
Option to specify an absolute salt:// path for config_files
- Loading branch information
Showing
5 changed files
with
37 additions
and
9 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,12 +39,14 @@ rabbitmq: | |
config_files: | ||
# config_files, if you need some stuffs set directly in configuration | ||
# files, rather than via the light modules available. | ||
rabbitmq.config: | ||
# Need to add some template in rabbitmq/templates/rabbitmq.config | ||
# templates not provided, as is probably too specific... | ||
source: templates/relay-rabbitmq.config | ||
rabbitmq.conf: | ||
# source is relative to `rabbitmq` formula | ||
# source: templates/rabbitmq.conf | ||
# or absolute in salt fileserver | ||
source: salt://files/rabbitmq/rabbitmq.conf | ||
# an optional map can be passed to the jinja template | ||
context: | ||
src_broker_uri: "amqp://user:[email protected]" | ||
rabbitmqcfg.json: | ||
source: templates/relay-rabbitmqcfg.config | ||
# context: is optional map passed to the jinja template... | ||
# rabbitmqcfg.json: | ||
# source: templates/relay-rabbitmqcfg.config | ||
# # context: is optional map passed to the jinja template... |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
control 'rabbitmq configuration' do | ||
title 'should match desired lines' | ||
|
||
describe file('/etc/rabbitmq/rabbitmq.conf') do | ||
it { should exist } | ||
it { should be_file } | ||
its('content') { should include '# Config file for rabbitmq' } | ||
end | ||
end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Config file for rabbitmq |