This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from eumel8/dev
Dev20180420
- Loading branch information
Showing
67 changed files
with
440 additions
and
548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,5 @@ ansible_otc.egg-info/ | |
doc/build/ | ||
playbooks/test.* | ||
playbooks/roles.yml | ||
AUTHORS | ||
ChangeLog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
ARA - Ansible Run Analysis | ||
========================== | ||
|
||
ARA records Ansible playbook runs and makes the recorded data | ||
available and intuitive for users and systems. It's described | ||
on `ARA ReadTheDocs <http://ara.readthedocs.io/en/latest/>`__. | ||
|
||
ARA doesn't run your playbooks for you: it integrates with Ansible | ||
as a callback plugin wherever it is. In ``playbooks/ara.sh`` is a | ||
workflow described as an example:: | ||
|
||
export ANSIBLE_CALLBACK_PLUGINS=$(python -c "import os,ara; print(os.path.dirname(ara.__file__))")/plugins/callbacks | ||
export ANSIBLE_ACTION_PLUGINS=$(python -c "import os,ara; print(os.path.dirname(ara.__file__))")/plugins/actions | ||
export ANSIBLE_LIBRARY=$(python -c "import os,ara; print(os.path.dirname(ara.__file__))")/plugins/modules | ||
|
||
ansible-playbook roles.yml | ||
ara generate html ./html | ||
|
||
The ``html`` directory should be accessable within a webbrowser to fits | ||
the best view. | ||
It's also possible to handle this in CI/CD environments, | ||
like .gitlab-ci.yml:: | ||
|
||
araweb: | ||
stage: araweb | ||
script: | ||
- tar cfz ara_html.tgz tests/html | ||
tags: | ||
- araweb | ||
artifacts: | ||
paths: | ||
- ara_html*.tgz | ||
expire_in: 1 week | ||
|
||
|
||
See also on `Github <https://github.com/openstack/ara>`__ and this | ||
`OpenStack SuperUser article <http://superuser.openstack.org/articles/scaling-ara-ansible/>`__. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Authors | ||
======= | ||
|
||
.. literalinclude:: ../../AUTHORS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ Welcome to Ansible-OTC documentation! | |
workshop | ||
buildservice | ||
dns | ||
ara | ||
roles | ||
changelog | ||
authors | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
|
||
export ANSIBLE_CALLBACK_PLUGINS=$(python -c "import os,ara; print(os.path.dirname(ara.__file__))")/plugins/callbacks | ||
export ANSIBLE_ACTION_PLUGINS=$(python -c "import os,ara; print(os.path.dirname(ara.__file__))")/plugins/actions | ||
export ANSIBLE_LIBRARY=$(python -c "import os,ara; print(os.path.dirname(ara.__file__))")/plugins/modules | ||
|
||
ansible-playbook roles.yml | ||
ara generate html ./html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
--- | ||
default: | ||
vpc_name : "ansible-vpc01", | ||
zone_email: "[email protected]", | ||
zone_ttl: 86400 | ||
dnszones: | ||
ansible.internal.corp: | ||
zone_description: "Core Zone internal services" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
os-client-config | ||
================ | ||
|
||
OTC role for generate os-clientconfig | ||
|
||
Variables: | ||
^^^^^^^^^^ | ||
|
||
+-------------------------+---------------------------------------------+ | ||
| Name | Description | | ||
+=========================+=============================================+ | ||
| occ_profile_name | cloud profile name, e.g. otc | | ||
+-------------------------+---------------------------------------------+ | ||
| occ_auth_url | IAM auth url (version 3 is default) | | ||
+-------------------------+---------------------------------------------+ | ||
| occ_region_name | cloud region name | | ||
+-------------------------+---------------------------------------------+ | ||
| occ_username | cloud username | | ||
+-------------------------+---------------------------------------------+ | ||
| occ_password | cloud password | | ||
+-------------------------+---------------------------------------------+ | ||
| occ_project_name | cloud project name, e.g. eu-de | | ||
+-------------------------+---------------------------------------------+ | ||
| occ_project_domain_name | cloud project domain name, e.g. Default | | ||
+-------------------------+---------------------------------------------+ | ||
| occ_user_domain_name | cloud user domain, e.g. OTC-eu-de-0012345 | | ||
+-------------------------+---------------------------------------------+ | ||
|
||
Functions: | ||
^^^^^^^^^^ | ||
|
||
Create:: | ||
|
||
ansible-playbook os-client-config.yml | ||
|
||
Read:: | ||
|
||
n/a | ||
|
||
Update:: | ||
|
||
n/a | ||
|
||
Delete:: | ||
|
||
n/a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,3 @@ | ||
- name: Get Zone list | ||
include: list.yml | ||
when: | ||
- localaction is defined and localaction == "list" | ||
tags: | ||
- zonelist | ||
|
||
- name: Get PTR list | ||
include: ptr_list.yml | ||
when: | ||
- localaction is defined and localaction == "ptrlist" | ||
tags: | ||
- ptrlist | ||
|
||
- name: Transfer Zone to OTC | ||
include: transfer.yml | ||
when: | ||
- localaction is defined and localaction == "transfer" | ||
tags: | ||
- transfer | ||
|
||
- name: Get Zone detail | ||
include: show.yml | ||
when: | ||
- localaction is defined and localaction == "show" | ||
tags: | ||
- zoneshow | ||
|
||
- name: Create Zone | ||
include: create.yml | ||
when: | ||
- localaction is defined and localaction == "create" | ||
tags: | ||
- zonecreate | ||
|
||
- name: Create PTR | ||
include: ptr_create.yml | ||
when: | ||
- localaction is defined and localaction == "ptrcreate" | ||
tags: | ||
- ptrcreate | ||
|
||
- name: Create Zonerecords | ||
include: zonerecord_create.yml | ||
when: | ||
- localaction is defined and localaction == "zonerecordcreate" | ||
tags: | ||
- zonerecordscreate | ||
|
||
- name: Delete Zone | ||
include: delete.yml | ||
when: | ||
- localaction is defined and localaction == "delete" | ||
tags: | ||
- zonedelete | ||
|
||
- name: Delete PTR | ||
include: ptr_delete.yml | ||
when: | ||
- localaction is defined and localaction == "ptrdelete" | ||
tags: | ||
- ptrdelete | ||
- name: action {{ localaction }} | ||
include: "{{ localaction }}.yml" | ||
when: localaction is defined |
Oops, something went wrong.