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

Commit

Permalink
fixing ansible lint. adding basic molecule tests. adding gitignore and
Browse files Browse the repository at this point in the history
travis.yml file for auto-publishing to github
  • Loading branch information
caphrim007 committed Oct 12, 2018
1 parent 3f3d061 commit d14a0a4
Show file tree
Hide file tree
Showing 8 changed files with 760 additions and 14 deletions.
6 changes: 6 additions & 0 deletions .gitignore
@@ -0,0 +1,6 @@
.idea
**.iml
*.retry
*/__pycache__
*.pyc
**/pytestdebug.log
31 changes: 31 additions & 0 deletions .travis.yml
@@ -0,0 +1,31 @@
---

language: python
services: docker

env:
global:
- ROLE_NAME: f5ansible
matrix:
- MOLECULE_DISTRO: centos7
MOLECULE_DOCKER_COMMAND: /usr/lib/systemd/systemd
- MOLECULE_DISTRO: ubuntu1804
- MOLECULE_DISTRO: ubuntu1604
- MOLECULE_DISTRO: debian9

install:
# Install test dependencies.
- pip install molecule docker

before_script:
# Use actual Ansible Galaxy role name for the project directory.
- cd ../
- mv ansible-role-$ROLE_NAME f5devcentral.$ROLE_NAME
- cd f5devcentral.$ROLE_NAME

script:
# Run tests.
- molecule test

notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion defaults/main.yaml
@@ -1,3 +1,3 @@
---

f5ansible_debug: no
f5ansible_debug: false
26 changes: 13 additions & 13 deletions meta/main.yml
Expand Up @@ -6,21 +6,21 @@ galaxy_info:
author: caphrim007
description: Ansible role that allows use of the F5 Ansible Modules
company: F5 Networks
license: Apache
license: GPLv3
min_ansible_version: 2.7
platforms:
- name: EL
versions:
- all
- name: Fedora
versions:
- all
- name: Ubuntu
versions:
- all
- name: Debian
versions:
- all
- name: EL
versions:
- all
- name: Fedora
versions:
- all
- name: Ubuntu
versions:
- all
- name: Debian
versions:
- all
galaxy_tags:
- f5
- networking
Expand Down
28 changes: 28 additions & 0 deletions molecule/default/molecule.yml
@@ -0,0 +1,28 @@
---

dependency:
name: galaxy
driver:
name: docker
lint:
name: yamllint
options:
config-file: molecule/default/yaml-lint.yml
platforms:
- name: instance
image: geerlingguy/docker-${MOLECULE_DISTRO:-centos7}-ansible
command: ${MOLECULE_DOCKER_COMMAND:-"sleep infinity"}
privileged: true
pre_build_image: true
provisioner:
name: ansible
lint:
name: ansible-lint
scenario:
name: default
test_sequence:
- lint
verifier:
name: testinfra
lint:
name: flake8
Empty file added molecule/default/playbook.yml
Empty file.
7 changes: 7 additions & 0 deletions molecule/default/yaml-lint.yml
@@ -0,0 +1,7 @@
---

extends: default
rules:
line-length:
max: 200
level: warning

0 comments on commit d14a0a4

Please sign in to comment.