|
| 1 | +# AxonOps Ansible Collection - Role Documentation |
| 2 | + |
| 3 | +This directory contains detailed documentation for each role in the AxonOps Ansible Collection. |
| 4 | + |
| 5 | +## Available Roles |
| 6 | + |
| 7 | +### Core AxonOps Components |
| 8 | + |
| 9 | +#### [agent](agent.md) |
| 10 | +Installs and configures the AxonOps Agent on Cassandra nodes for monitoring and metric collection. |
| 11 | + |
| 12 | +**Use when**: You want to monitor your Cassandra cluster with AxonOps (required on all Cassandra nodes). |
| 13 | + |
| 14 | +#### [server](server.md) |
| 15 | +Installs and configures the AxonOps Server for self-hosted deployments. |
| 16 | + |
| 17 | +**Use when**: You're deploying AxonOps on-premises instead of using the SaaS offering. |
| 18 | + |
| 19 | +#### [dash](dash.md) |
| 20 | +Installs and configures the AxonOps Dashboard web interface. |
| 21 | + |
| 22 | +**Use when**: You're deploying a self-hosted AxonOps Server and need the web UI (typically installed alongside the server). |
| 23 | + |
| 24 | +#### [alerts](alerts.md) |
| 25 | +Configures alerts, integrations, and monitoring settings for AxonOps. |
| 26 | + |
| 27 | +**Use when**: You need to automate the configuration of alerts, Slack/PagerDuty integrations, or backup policies. |
| 28 | + |
| 29 | +### Infrastructure Components |
| 30 | + |
| 31 | +#### [cassandra](cassandra.md) |
| 32 | +Installs and configures Apache Cassandra (versions 3.11, 4.x, and 5.x). |
| 33 | + |
| 34 | +**Use when**: You need to deploy new Cassandra nodes or manage existing installations. |
| 35 | + |
| 36 | +#### [elastic](elastic.md) |
| 37 | +Installs and configures Elasticsearch for AxonOps Server configuration storage. |
| 38 | + |
| 39 | +**Use when**: Deploying a self-hosted AxonOps Server (Elasticsearch stores AxonOps configuration data). |
| 40 | + |
| 41 | +#### [java](java.md) |
| 42 | +Installs Java (OpenJDK or Azul Zulu) on target systems. |
| 43 | + |
| 44 | +**Use when**: Deploying Cassandra, Elasticsearch, or any Java-dependent component. |
| 45 | + |
| 46 | +### Utility Roles |
| 47 | + |
| 48 | +#### [preflight](preflight.md) |
| 49 | +Performs pre-installation checks to ensure systems meet requirements. |
| 50 | + |
| 51 | +**Use when**: Before deploying Cassandra or AxonOps components to validate system readiness. |
| 52 | + |
| 53 | +## Quick Reference |
| 54 | + |
| 55 | +| Role | Purpose | Typically Used With | |
| 56 | +|------|---------|-------------------| |
| 57 | +| **agent** | Monitor Cassandra clusters | Cassandra nodes | |
| 58 | +| **server** | Self-hosted AxonOps backend | Elastic, Cassandra (optional) | |
| 59 | +| **dash** | Web UI for AxonOps | Server | |
| 60 | +| **alerts** | Alert configuration | Server | |
| 61 | +| **cassandra** | Apache Cassandra installation | Agent, Java | |
| 62 | +| **elastic** | Elasticsearch installation | Server | |
| 63 | +| **java** | Java installation | Cassandra, Elastic | |
| 64 | +| **preflight** | System validation | Before any installation | |
| 65 | + |
| 66 | +## Common Deployment Patterns |
| 67 | + |
| 68 | +### Pattern 1: Monitor Existing Cassandra Cluster (SaaS) |
| 69 | + |
| 70 | +Deploy AxonOps Agent on existing Cassandra nodes to monitor with AxonOps SaaS: |
| 71 | + |
| 72 | +```yaml |
| 73 | +- hosts: cassandra |
| 74 | + roles: |
| 75 | + - agent |
| 76 | +``` |
| 77 | +
|
| 78 | +**Roles needed**: `agent` |
| 79 | + |
| 80 | +**See**: [agent.md](agent.md) |
| 81 | + |
| 82 | +--- |
| 83 | + |
| 84 | +### Pattern 2: New Cassandra Cluster with Monitoring (SaaS) |
| 85 | + |
| 86 | +Deploy new Cassandra cluster with AxonOps monitoring: |
| 87 | + |
| 88 | +```yaml |
| 89 | +- hosts: cassandra |
| 90 | + roles: |
| 91 | + - preflight |
| 92 | + - java |
| 93 | + - agent |
| 94 | + - cassandra |
| 95 | +``` |
| 96 | + |
| 97 | +**Roles needed**: `preflight`, `java`, `agent`, `cassandra` |
| 98 | + |
| 99 | +**See**: [cassandra.md](cassandra.md), [agent.md](agent.md), [java.md](java.md), [preflight.md](preflight.md) |
| 100 | + |
| 101 | +--- |
| 102 | + |
| 103 | +### Pattern 3: Self-Hosted AxonOps Server |
| 104 | + |
| 105 | +Deploy complete self-hosted AxonOps stack: |
| 106 | + |
| 107 | +```yaml |
| 108 | +- hosts: axon-server |
| 109 | + roles: |
| 110 | + - java |
| 111 | + - elastic |
| 112 | + - cassandra # Optional: for metrics storage |
| 113 | + - server |
| 114 | + - dash |
| 115 | +``` |
| 116 | + |
| 117 | +**Roles needed**: `java`, `elastic`, `server`, `dash`, optionally `cassandra` |
| 118 | + |
| 119 | +**See**: [server.md](server.md), [elastic.md](elastic.md), [dash.md](dash.md) |
| 120 | + |
| 121 | +--- |
| 122 | + |
| 123 | +### Pattern 4: Complete Infrastructure |
| 124 | + |
| 125 | +Deploy both AxonOps Server and monitored Cassandra cluster: |
| 126 | + |
| 127 | +**Server host**: |
| 128 | +```yaml |
| 129 | +- hosts: axon-server |
| 130 | + roles: |
| 131 | + - java |
| 132 | + - elastic |
| 133 | + - cassandra |
| 134 | + - agent |
| 135 | + - server |
| 136 | + - dash |
| 137 | +``` |
| 138 | + |
| 139 | +**Cassandra hosts**: |
| 140 | +```yaml |
| 141 | +- hosts: cassandra |
| 142 | + roles: |
| 143 | + - preflight |
| 144 | + - java |
| 145 | + - agent |
| 146 | + - cassandra |
| 147 | +``` |
| 148 | + |
| 149 | +**Roles needed**: All roles |
| 150 | + |
| 151 | +--- |
| 152 | + |
| 153 | +### Pattern 5: Alert Configuration |
| 154 | + |
| 155 | +Configure alerts and integrations for existing AxonOps deployment: |
| 156 | + |
| 157 | +```yaml |
| 158 | +- hosts: localhost |
| 159 | + roles: |
| 160 | + - alerts |
| 161 | +``` |
| 162 | + |
| 163 | +**Roles needed**: `alerts` |
| 164 | + |
| 165 | +**See**: [alerts.md](alerts.md) |
| 166 | + |
| 167 | +## Getting Started |
| 168 | + |
| 169 | +1. **Choose your deployment pattern** from the list above |
| 170 | +2. **Read the documentation** for each role you'll use |
| 171 | +3. **Review the example playbooks** in each role's documentation |
| 172 | +4. **Customize variables** to match your environment |
| 173 | +5. **Run preflight checks** before deploying Cassandra |
| 174 | +6. **Deploy in stages** (infrastructure first, then applications, then configuration) |
| 175 | + |
| 176 | +## Additional Resources |
| 177 | + |
| 178 | +- [Main README](../../README.md) - Collection overview and installation |
| 179 | +- [Examples Directory](../../examples/) - Complete example playbooks |
| 180 | +- [AxonOps Documentation](https://docs.axonops.com/) - Official AxonOps documentation |
| 181 | +- [ALERTS.md](../../ALERTS.md) - Alert configuration guide |
| 182 | + |
| 183 | +## Support |
| 184 | + |
| 185 | +For issues, questions, or contributions: |
| 186 | +- GitHub Issues: [axonops-ansible-collection](https://github.com/axonops/axonops-ansible-collection/issues) |
| 187 | +- AxonOps Support: [support@axonops.com](mailto:support@axonops.com) |
| 188 | +- Community Slack: [axonops.slack.com](https://axonops.slack.com) |
| 189 | + |
| 190 | +## License |
| 191 | + |
| 192 | +See the [LICENSE](../../LICENSE) file in the repository root. |
0 commit comments