Skip to content
Permalink
Browse files

First commit from role skeleton

  • Loading branch information...
Cédric DELGEHIER
Cédric DELGEHIER committed Feb 10, 2018
0 parents commit 80569c34ba6b1af96be71eefe6737b4977d1e930
Showing with 356 additions and 0 deletions.
  1. +20 −0 .gitignore
  2. +12 −0 CHANGELOG.md
  3. +13 −0 LICENSE.md
  4. +46 −0 README.md
  5. +4 −0 defaults/main.yml
  6. +7 −0 handlers/main.yml
  7. +223 −0 meta/main.yml
  8. +22 −0 tasks/main.yml
  9. +9 −0 vars/RedHat.yml
@@ -0,0 +1,20 @@
# .gitignore

# Hidden Vagrant-directory
.vagrant

# Backup files (e.g. Vim, Gedit, etc.)
*~

# Vagrant base boxes (you never know when someone puts one in the repository)
*.box

# Compiled Python
*.pyc

# Ignore roles downloaded from Ansible Galaxy
roles/*.*

# Test directories. These are Git worktrees to separate test branches
*tests/

@@ -0,0 +1,12 @@
# Change log

This file contains all notable changes to the cdelgehier.ansible-XtraDB-Cluster Ansible role. This file adheres to the guidelines of [http://keepachangelog.com/](http://keepachangelog.com/). Versioning follows [Semantic Versioning](http://semver.org/).

## 1.0.0 - YYYY-MM-DD

First release!

### Added

- FEATURE

@@ -0,0 +1,13 @@
# BSD License

Copyright (c) 2018, Cedric DELGEHIER, (cedric.delgehier@gmail.com)

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,46 @@
# Ansible role `ansible-XtraDB-Cluster`

An Ansible role for PURPOSE. Specifically, the responsibilities of this role are to:

-

## Requirements

No specific requirements

## Role Variables


| Variable | Default | Comments (type) |
| :--- | :--- | :--- |
| `role_var` | - | (scalar) PURPOSE |

## Dependencies

No dependencies.

## Example Playbook

See the test playbooks in either the [Vagrant](https://github.com/cdelgehier/ansible-role-ansible-XtraDB-Cluster/blob/vagrant-tests/test.yml) or [Docker](https://github.com/cdelgehier/ansible-role-ansible-XtraDB-Cluster/blob/docker-tests/test.yml) test environment. See the section Testing for details.

## Testing

There are two types of test environments available. One powered by Vagrant, another by Docker. The latter is suitable for running automated tests on Travis-CI. Test code is kept in separate orphan branches. For details of how to set up these test environments on your own machine, see the README files in the respective branches:

- Vagrant: [vagrant-tests](https://github.com/cdelgehier/ansible-role-ansible-XtraDB-Cluster/tree/vagrant-tests)
- Docker: [docker-tests](https://github.com/cdelgehier/ansible-role-ansible-XtraDB-Cluster/tree/docker-tests)

## Contributing

Issues, feature requests, ideas are appreciated and can be posted in the Issues section.

Pull requests are also very welcome. The best way to submit a PR is by first creating a fork of this Github project, then creating a topic branch for the suggested change and pushing that branch to your own fork. Github can then easily create a PR based on that branch.

## License

2-clause BSD license, see [LICENSE.md](LICENSE.md)

## Contributors

- [Cedric DELGEHIER](https://github.com/cdelgehier/) (maintainer)

@@ -0,0 +1,4 @@
# roles/ansible-XtraDB-Cluster/defaults/main.yml
---


@@ -0,0 +1,7 @@
# roles/ansible-XtraDB-Cluster/handlers/main.yml
---

- name: restart ansible-XtraDB-Cluster
service:
name: "{{ ansible-XtraDB-Cluster_service }}"
state: restarted
@@ -0,0 +1,223 @@
---
galaxy_info:
author: Cedric DELGEHIER
description: PURPOSE
# If the issue tracker for your role is not on github, uncomment the
# next line and provide a value
# issue_tracker_url: http://example.com/issue/tracker

# Some suggested licenses:
# - BSD (default)
# - MIT
# - GPLv2
# - GPLv3
# - Apache
# - CC-BY
license: BSD

min_ansible_version: 2.0

# Optionally specify the branch Galaxy will use when accessing the GitHub
# repo for this role. During role install, if no tags are available,
# Galaxy will use this branch. During import Galaxy will access files on
# this branch. If travis integration is cofigured, only notification for this
# branch will be accepted. Otherwise, in all cases, the repo's default branch
# (usually master) will be used.
#github_branch:

#
# Below are all platforms currently available. Just uncomment
# the ones that apply to your role. If you don't see your
# platform on this list, let us know and we'll get it added!
#
platforms:
#- name: OpenBSD
# versions:
# - all
# - 5.6
# - 5.7
# - 5.8
# - 5.9
# - 6.0
#- name: Fedora
# versions:
# - all
# - 16
# - 17
# - 18
# - 19
# - 20
# - 21
# - 22
# - 23
# - 24
# - 25
#- name: DellOS
# versions:
# - all
# - 10
# - 6
# - 9
#- name: MacOSX
# versions:
# - all
# - 10.10
# - 10.11
# - 10.12
# - 10.7
# - 10.8
# - 10.9
#- name: Synology
# versions:
# - all
# - any
#- name: Junos
# versions:
# - all
# - any
#- name: GenericBSD
# versions:
# - all
# - any
#- name: Void Linux
# versions:
# - all
# - any
#- name: GenericLinux
# versions:
# - all
# - any
#- name: NXOS
# versions:
# - all
# - any
#- name: IOS
# versions:
# - all
# - any
#- name: Amazon
# versions:
# - all
# - 2013.03
# - 2013.09
# - 2016.03
# - 2016.09
#- name: ArchLinux
# versions:
# - all
# - any
#- name: FreeBSD
# versions:
# - all
# - 10.0
# - 10.1
# - 10.2
# - 10.3
# - 11.0
# - 8.0
# - 8.1
# - 8.2
# - 8.3
# - 8.4
# - 9.0
# - 9.1
# - 9.1
# - 9.2
# - 9.3
- name: Ubuntu
versions:
# - all
# - lucid
# - maverick
# - natty
# - oneiric
# - precise
# - quantal
# - raring
# - saucy
# - trusty
# - utopic
# - vivid
# - wily
- xenial
# - yakkety
#- name: Debian
# versions:
# - all
# - etch
# - jessie
# - lenny
# - sid
# - squeeze
# - stretch
# - wheezy
#- name: Alpine
# versions:
# - all
# - any
- name: EL
versions:
# - all
# - 5
# - 6
- 7
#- name: Windows
# versions:
# - all
# - 2012R2
#- name: SmartOS
# versions:
# - all
# - any
#- name: opensuse
# versions:
# - all
# - 12.1
# - 12.2
# - 12.3
# - 13.1
# - 13.2
#- name: SLES
# versions:
# - all
# - 10SP3
# - 10SP4
# - 11
# - 11SP1
# - 11SP2
# - 11SP3
# - 11SP4
# - 12
# - 12SP1
#- name: GenericUNIX
# versions:
# - all
# - any
#- name: Solaris
# versions:
# - all
# - 10
# - 11.0
# - 11.1
# - 11.2
# - 11.3
#- name: eos
# versions:
# - all
# - Any

galaxy_tags:
- system

# List tags for your role here, one per line. A tag is
# a keyword that describes and categorizes the role.
# Users find roles by searching for tags. Be sure to
# remove the '[]' above if you add tags to this list.
#
# NOTE: A tag is limited to a single word comprised of
# alphanumeric characters. Maximum 20 tags per role.

dependencies: []
# List your role dependencies here, one per line.
# Be sure to remove the '[]' above if you add dependencies
# to this list.
@@ -0,0 +1,22 @@
# roles/ansible-XtraDB-Cluster/tasks/main.yml
---

- include_vars: "{{ item }}"
with_first_found:
- "{{ ansible_distribution }}.yml"
- "{{ ansible_os_family }}.yml"
tags: ansible-XtraDB-Cluster

- name: Install packages
package:
name: "{{ item }}"
state: installed
with_items: "{{ ansible-XtraDB-Cluster_packages }}"
tags: ansible-XtraDB-Cluster

- name: Ensure service is started
service:
name: "{{ ansible-XtraDB-Cluster_service }}"
state: started
enabled: true
tags: ansible-XtraDB-Cluster
@@ -0,0 +1,9 @@
# roles/ansible-XtraDB-Cluster/vars/RedHat.yml
#
# Distribution-specific variables for RHEL, CentOS, ...
---

ansible-XtraDB-Cluster_packages:
- ansible-XtraDB-Cluster

ansible-XtraDB-Cluster_service: ansible-XtraDB-Clusterd

0 comments on commit 80569c3

Please sign in to comment.
You can’t perform that action at this time.