浏览代码

Allow user to determine if RMQ/Redis should be deployed

cmacrae 9 年之前
父节点
当前提交
ade8ee1cef
共有 5 个文件被更改,包括 21 次插入2 次删除
  1. 8 1
      README.md
  2. 3 0
      defaults/main.yml
  3. 1 1
      docs/index.md
  4. 7 0
      docs/role_variables.md
  5. 2 0
      tasks/main.yml

+ 8 - 1
README.md

@@ -6,7 +6,7 @@ This role deploys a full [Sensu](https://sensuapp.org) stack, a modern, open sou
 
 ## Features
 - Deploy a full [Sensu](https://sensuapp.org) stack, including RabbitMQ, Redis, and the [Uchiwa dashboard](https://uchiwa.io/#/)
-- Tight integration with the Ansible inventory - deployment of monitoring checks based on role defined in your inventory
+- Tight integration with the Ansible inventory - deployment of monitoring checks based on inventory grouping
 - Fine grained control over dynamic client configurations
 - Automatic generation and dynamic deployment of SSL certs for secure communication between your clients and servers
 - Highly configurable
@@ -32,6 +32,13 @@ The current version includes the following variables:
 
 ## Defaults
 
+### Service Deployment Options
+| Name               | Default Value | Description                  |
+|--------------------|---------------|------------------------------|
+|`sensu_deploy_rabbitmq` | `true`    | Determines whether or not to use this role to deploy/configure RabbitMQ |
+|`sensu_deploy_redis`    | `true`    | Determines whether or not to use this role to deploy/configure Redis |
+_Note: The above options are intended to provide users with flexibility. This allows the use of other roles for deployment of these services._
+
 ### [RabbitMQ Server Properties](https://sensuapp.org/docs/0.21/rabbitmq)
 | Name               | Default Value | Description                  |
 |--------------------|---------------|------------------------------|

+ 3 - 0
defaults/main.yml

@@ -1,4 +1,7 @@
 ---
+# Service deployment options
+sensu_deploy_rabbitmq: true
+sensu_deploy_redis: true
 
 # RabbitMQ server properties
 rabbitmq_config_path: /etc/rabbitmq

+ 1 - 1
docs/index.md

@@ -5,7 +5,7 @@ An [Ansible](https://ansible.com) role that deploys a full [Sensu](https://sensu
 
 ## Features
 - Deploy a full [Sensu](https://sensuapp.org) stack, including RabbitMQ, Redis, and the [Uchiwa dashboard](https://uchiwa.io/#/)
-- Tight integration with the Ansible inventory - deployment of monitoring checks based on role defined in your inventory
+- Tight integration with the Ansible inventory - deployment of monitoring checks based on inventory grouping
 - Fine grained control over dynamic client configurations
 - Automatic generation and dynamic deployment of SSL certs for secure communication between your clients and servers
 - Highly configurable

+ 7 - 0
docs/role_variables.md

@@ -1,6 +1,13 @@
 # Role Variables
 ## Defaults
 
+### Service Deployment Options
+| Name               | Default Value | Description                  |
+|--------------------|---------------|------------------------------|
+|`sensu_deploy_rabbitmq` | `true`    | Determines whether or not to use this role to deploy/configure RabbitMQ |
+|`sensu_deploy_redis`    | `true`    | Determines whether or not to use this role to deploy/configure Redis |
+_Note: The above options are intended to provide users with flexibility. This allows the use of other roles for deployment of these services._
+
 ### [RabbitMQ Server Properties](https://sensuapp.org/docs/0.21/rabbitmq)
 | Name               | Default Value | Description                  |
 |--------------------|---------------|------------------------------|

+ 2 - 0
tasks/main.yml

@@ -12,10 +12,12 @@
   - include: rabbit.yml
     tags: rabbitmq
     when: rabbitmq_server
+          and sensu_deploy_rabbitmq
 
   - include: redis.yml
     tags: redis
     when: redis_server
+          and sensu_deploy_redis
 
   - include: server.yml
     tags: server