Skip to content

Commit

Permalink
polish etcd_common role
Browse files Browse the repository at this point in the history
  • Loading branch information
ingvagabund committed May 9, 2017
1 parent f7993af commit f696358
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 10 deletions.

This file was deleted.

37 changes: 28 additions & 9 deletions roles/etcd_common/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
etcd_common
========================

TODO
Common resources for dependent etcd roles. E.g. default variables for:
* config directories
* certificates
* ports
* other settings

Requirements
------------

TODO
Or `delegated_serial_command` ansible module for executing a command on a remote node. E.g.

Role Variables
--------------
```yaml
- delegated_serial_command:
command: /usr/bin/make_database.sh arg1 arg2
creates: /path/to/database
```
TODO
Or etcdctl.yml playbook for installation of `etcdctl` aliases on a node (see example).

Dependencies
------------
Expand All @@ -21,7 +25,22 @@ openshift-repos
Example Playbook
----------------

TODO
**Drop etcdctl aliases**

```yaml
- include_role:
name: etcd_common
tasks_from: etcdctl
```

**Get access to common variables**

```yaml
# meta.yml of etcd
...
dependencies:
- { role: etcd_common }
```

License
-------
Expand Down

0 comments on commit f696358

Please sign in to comment.