Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #20 from eumel8/galaxy
Browse files Browse the repository at this point in the history
Add Galaxy Support
  • Loading branch information
eumel8 authored Aug 31, 2018
2 parents 16b8893 + 79b24a2 commit 68debe1
Show file tree
Hide file tree
Showing 194 changed files with 387 additions and 4,727 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
_secrets.yml
_user_data*.txt
tenant.ini.*
roles/
*.retry
.eggs/
.tox/
Expand Down
21 changes: 0 additions & 21 deletions .gitlab-ci.yml

This file was deleted.

26 changes: 5 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,20 @@
---
sudo: required
dist: xenial

language: python
python:
- "2.7"
- "3.5"

# Doc: https://docs.travis-ci.com/user/customizing-the-build#Build-Matrix
# https://docs.travis-ci.com/user/common-build-problems/
env:
- ANSIBLE_VERSION=latest
- ANSIBLE_VERSION=2.4.3.0
- ANSIBLE_VERSION=2.5.0
- ANSIBLE_VERSION=2.5.2

branches:
only:
- master
- dev
- galaxy

# before_install:
# - sudo apt-get update -qq

install:
# Install Ansible.
- if [ "$ANSIBLE_VERSION" = "latest" ]; then pip install ansible; else pip install ansible==$ANSIBLE_VERSION; fi
- pip install ansible-lint jmespath
before_install:
- sudo apt-get update
- sudo apt-get install -y tox make latexmk texlive-latex-recommended texlive-fonts-recommended texlive-latex-extra

script:
# Check the role/playbook's syntax.
- find roles/ -name "*.yml" | xargs ansible-lint

# Run the role/playbook with ansible-playbook.
- tests/tests.sh
- tox
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ For local build use:

```
tox -edocs
pip install -r requirements.txt
```

Roles are excluded, to use sample playbooks use:

```
./install_roles.sh
```


Expand All @@ -45,8 +50,6 @@ Presentations

Contributing
------------
Very welcome. We are in a very early state of automated platform deployment
on OTC. So each help is still welcome

1. Fork it.
2. Create a branch (`git checkout -b my_markup`)
Expand Down
48 changes: 48 additions & 0 deletions ansible-role-requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
- name: otc_auth
scm: git
src: https://github.com/eumel8/otc_auth.git
- name: otc_cts
scm: git
src: https://github.com/eumel8/otc_cts.git
- name: otc_dns
scm: git
src: https://github.com/eumel8/otc_dns.git
- name: otc_ecs
scm: git
src: https://github.com/eumel8/otc_ecs.git
- name: otc_eip
scm: git
src: https://github.com/eumel8/otc_eip.git
- name: otc_elb
scm: git
src: https://github.com/eumel8/otc_elb.git
- name: otc_evs
scm: git
src: https://github.com/eumel8/otc_evs.git
- name: otc_ims
scm: git
src: https://github.com/eumel8/otc_ims.git
- name: otc_job
scm: git
src: https://github.com/eumel8/otc_job.git
- name: otc_keypair
scm: git
src: https://github.com/eumel8/otc_keypair.git
- name: otc_obs
scm: git
src: https://github.com/eumel8/otc_obs.git
- name: otc_rds
scm: git
src: https://github.com/eumel8/otc_rds.git
- name: otc_secgroup
scm: git
src: https://github.com/eumel8/otc_secgroup.git
- name: otc_subnet
scm: git
src: https://github.com/eumel8/otc_subnet.git
- name: otc_vpc
scm: git
src: https://github.com/eumel8/otc_vpc.git
- name: os-client-config
scm: git
src: https://github.com/eumel8/os-client-config.git
25 changes: 25 additions & 0 deletions doc/source/galaxy.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Ansible Galaxy
==============

Ansible Galaxy is a repository for sharing roles.
You can search for specific roles on `Galaxy website <http://galaxy.ansible.com/>`__.
All ansible-otc are to find there and you can also use the CLI::

ansible-galaxy search otc_

To install a specific role you can use::

ansible-galaxy install eumel8.otc_auth

or with the requirements file with Galaxy source::

ansible-galaxy install -r galaxy.yml

or with the requirements file with Git source::

ansible-galaxy install -r ansible-role-requirements.yml

You need to adjust the roles_path in ansible.cfg. The system-white
roles_path is /etc/ansible/roles

WIP: This feature is a Proof of Concept
4 changes: 4 additions & 0 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ Welcome to Ansible-OTC documentation!
buildservice
dns
ara
galaxy
.. toctree::
:maxdepth: 3

roles
changelog
authors
Expand Down
Loading

0 comments on commit 68debe1

Please sign in to comment.