Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
8df6b48e
Commit
8df6b48e
authored
Jul 20, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3485 from frankshearar/let-rabbitmq-plugin-module-use-nonstandard-path
Let rabbitmq plugin module use nonstandard path
parents
18d4b66b
472c18c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
library/messaging/rabbitmq_plugin
+13
-3
No files found.
library/messaging/rabbitmq_plugin
View file @
8df6b48e
...
@@ -42,10 +42,15 @@ options:
...
@@ -42,10 +42,15 @@ options:
choices: [ "yes", "no" ]
choices: [ "yes", "no" ]
state:
state:
description:
description:
- Specify if plugins
s
are to be enabled or disabled
- Specify if plugins are to be enabled or disabled
required: false
required: false
default: enabled
default: enabled
choices: [enabled, disabled]
choices: [enabled, disabled]
prefix:
description:
- Specify a custom prefix to a Rabbit
required: false
default: null
'''
'''
EXAMPLES
=
'''
EXAMPLES
=
'''
...
@@ -56,7 +61,11 @@ EXAMPLES = '''
...
@@ -56,7 +61,11 @@ EXAMPLES = '''
class
RabbitMqPlugins
(
object
):
class
RabbitMqPlugins
(
object
):
def
__init__
(
self
,
module
):
def
__init__
(
self
,
module
):
self
.
module
=
module
self
.
module
=
module
self
.
_rabbitmq_plugins
=
module
.
get_bin_path
(
'rabbitmq-plugins'
,
True
)
if
module
.
params
[
'prefix'
]:
self
.
_rabbitmq_plugins
=
module
.
params
[
'prefix'
]
+
"/sbin/rabbitmq-plugins"
else
:
self
.
_rabbitmq_plugins
=
module
.
get_bin_path
(
'rabbitmq-plugins'
,
True
)
def
_exec
(
self
,
args
,
run_in_check_mode
=
False
):
def
_exec
(
self
,
args
,
run_in_check_mode
=
False
):
if
not
self
.
module
.
check_mode
or
(
self
.
module
.
check_mode
and
run_in_check_mode
):
if
not
self
.
module
.
check_mode
or
(
self
.
module
.
check_mode
and
run_in_check_mode
):
...
@@ -78,7 +87,8 @@ def main():
...
@@ -78,7 +87,8 @@ def main():
arg_spec
=
dict
(
arg_spec
=
dict
(
names
=
dict
(
required
=
True
,
aliases
=
[
'name'
]),
names
=
dict
(
required
=
True
,
aliases
=
[
'name'
]),
new_only
=
dict
(
default
=
'no'
,
type
=
'bool'
),
new_only
=
dict
(
default
=
'no'
,
type
=
'bool'
),
state
=
dict
(
default
=
'enabled'
,
choices
=
[
'enabled'
,
'disabled'
])
state
=
dict
(
default
=
'enabled'
,
choices
=
[
'enabled'
,
'disabled'
]),
prefix
=
dict
(
required
=
False
,
default
=
None
)
)
)
module
=
AnsibleModule
(
module
=
AnsibleModule
(
argument_spec
=
arg_spec
,
argument_spec
=
arg_spec
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment