Skip to content

Commit 0a42436

Browse files
committed
github action
1 parent c92905c commit 0a42436

File tree

15 files changed

+106
-366
lines changed

15 files changed

+106
-366
lines changed

.github/workflows/molecule.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: Ansible Molecule
3+
4+
on:
5+
push:
6+
tags_ignore:
7+
- '*'
8+
pull_request:
9+
10+
jobs:
11+
lint:
12+
runs-on: ubuntu-20.04
13+
steps:
14+
- name: checkout
15+
uses: actions/checkout@v2
16+
with:
17+
path: "${{ github.repository }}"
18+
- name: molecule
19+
uses: robertdebock/[email protected]
20+
with:
21+
command: lint
22+
test:
23+
needs:
24+
- lint
25+
runs-on: ubuntu-20.04
26+
strategy:
27+
fail-fast: false
28+
steps:
29+
- name: checkout
30+
uses: actions/checkout@v2
31+
with:
32+
path: "${{ github.repository }}"
33+
- name: molecule
34+
uses: robertdebock/[email protected]
35+
with:
36+
image: ${{ matrix.config.image }}
37+
tag: ${{ matrix.config.tag }}

.travis.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.yamllint

Lines changed: 6 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,10 @@
11
---
2-
32
extends: default
43

54
rules:
6-
braces:
7-
min-spaces-inside: 1
8-
max-spaces-inside: 1
9-
min-spaces-inside-empty: -1
10-
max-spaces-inside-empty: -1
11-
brackets:
12-
min-spaces-inside: 0
13-
max-spaces-inside: 0
14-
min-spaces-inside-empty: -1
15-
max-spaces-inside-empty: -1
16-
colons:
17-
max-spaces-before: 0
18-
max-spaces-after: 1
19-
commas:
20-
max-spaces-before: 0
21-
min-spaces-after: 1
22-
max-spaces-after: 1
23-
comments:
24-
level: warning
25-
require-starting-space: false
26-
min-spaces-from-content: 2
27-
comments-indentation: disable
28-
document-end: disable
29-
document-start: disable
30-
empty-lines:
31-
max: 2
32-
max-start: 0
33-
max-end: 0
34-
hyphens:
35-
max-spaces-after: 1
36-
indentation:
37-
spaces: consistent
38-
indent-sequences: true
39-
check-multi-line-strings: false
40-
key-duplicates: enable
41-
line-length:
42-
max: 500
43-
allow-non-breakable-words: true
44-
allow-non-breakable-inline-mappings: false
45-
new-line-at-end-of-file: enable
46-
new-lines:
47-
type: unix
48-
trailing-spaces: enable
49-
truthy: disable
5+
truthy:
6+
allowed-values: ['true', 'false', 'on']
7+
check-keys: true
8+
9+
ignore: |
10+
.tox/

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# make a local environment and use molecule test
2+
3+
../base:
4+
python3 -m venv ../base
5+
# (source ../base/bin/activate && python3 -m pip install --upgrade pip)
6+
(source ../base/bin/activate && pip3 install -r requirements.txt)
7+
(source ../base/bin/activate && mol test)
8+
9+
clean:
10+
rm -rf ../base

defaults/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ goss_version: "v0.3.10"
44
goss_path: "/usr/bin/"
55
goss_arch: amd64
66
goss_dst: /usr/bin/goss
7+
# yamllint disable-line rule:line-length
78
goss_url: "https://github.com/aelsabbahy/goss/releases/download/{{ goss_version }}/goss-linux-{{ goss_arch }}"
89
goss_test_directory: /root
910
goss_test_directory_mode: 0700

meta/main.yml

Lines changed: 1 addition & 198 deletions
Original file line numberDiff line numberDiff line change
@@ -1,222 +1,25 @@
1+
---
12
galaxy_info:
23
author: Sean Abbott
34
description: Install goss binary and ensure checksum
45

5-
# If the issue tracker for your role is not on github, uncomment the
6-
# next line and provide a value
7-
# issue_tracker_url: http://example.com/issue/tracker
8-
9-
# Some suggested licenses:
10-
# - BSD (default)
11-
# - MIT
12-
# - GPLv2
13-
# - GPLv3
14-
# - Apache
15-
# - CC-BY
166
license: GPLv2
177

188
min_ansible_version: 2.2.1
199

20-
# Optionally specify the branch Galaxy will use when accessing the GitHub
21-
# repo for this role. During role install, if no tags are available,
22-
# Galaxy will use this branch. During import Galaxy will access files on
23-
# this branch. If travis integration is cofigured, only notification for this
24-
# branch will be accepted. Otherwise, in all cases, the repo's default branch
25-
# (usually master) will be used.
26-
#github_branch:
27-
28-
#
29-
# Below are all platforms currently available. Just uncomment
30-
# the ones that apply to your role. If you don't see your
31-
# platform on this list, let us know and we'll get it added!
32-
#
3310
platforms:
34-
#- name: OpenBSD
35-
# versions:
36-
# - all
37-
# - 5.6
38-
# - 5.7
39-
# - 5.8
40-
# - 5.9
41-
# - 6.0
42-
#- name: Fedora
43-
# versions:
44-
# - all
45-
# - 16
46-
# - 17
47-
# - 18
48-
# - 19
49-
# - 20
50-
# - 21
51-
# - 22
52-
# - 23
53-
# - 24
54-
# - 25
55-
#- name: DellOS
56-
# versions:
57-
# - all
58-
# - 10
59-
# - 6
60-
# - 9
61-
#- name: MacOSX
62-
# versions:
63-
# - all
64-
# - 10.10
65-
# - 10.11
66-
# - 10.12
67-
# - 10.7
68-
# - 10.8
69-
# - 10.9
70-
#- name: Synology
71-
# versions:
72-
# - all
73-
# - any
74-
#- name: Junos
75-
# versions:
76-
# - all
77-
# - any
78-
#- name: GenericBSD
79-
# versions:
80-
# - all
81-
# - any
82-
#- name: Void Linux
83-
# versions:
84-
# - all
85-
# - any
86-
#- name: GenericLinux
87-
# versions:
88-
# - all
89-
# - any
90-
#- name: NXOS
91-
# versions:
92-
# - all
93-
# - any
94-
#- name: IOS
95-
# versions:
96-
# - all
97-
# - any
98-
#- name: Amazon
99-
# versions:
100-
# - all
101-
# - 2013.03
102-
# - 2013.09
103-
# - 2016.03
104-
# - 2016.09
105-
#- name: ArchLinux
106-
# versions:
107-
# - all
108-
# - any
109-
#- name: FreeBSD
110-
# versions:
111-
# - all
112-
# - 10.0
113-
# - 10.1
114-
# - 10.2
115-
# - 10.3
116-
# - 11.0
117-
# - 8.0
118-
# - 8.1
119-
# - 8.2
120-
# - 8.3
121-
# - 8.4
122-
# - 9.0
123-
# - 9.1
124-
# - 9.1
125-
# - 9.2
126-
# - 9.3
12711
- name: Ubuntu
12812
versions:
129-
# - all
130-
# - lucid
131-
# - maverick
132-
# - natty
133-
# - oneiric
134-
# - precise
135-
# - quantal
136-
# - raring
137-
# - saucy
138-
# - trusty
139-
# - utopic
14013
- vivid
141-
# - wily
142-
# - xenial
143-
# - yakkety
14414
- name: Debian
14515
versions:
146-
# - all
147-
# - etch
148-
# - jessie
149-
# - lenny
150-
# - sid
151-
# - squeeze
15216
- stretch
15317
- buster
154-
# - wheezy
155-
#- name: Alpine
156-
# versions:
157-
# - all
158-
# - any
15918
- name: EL
16019
versions:
161-
# - all
162-
# - 5
16320
- 6
16421
- 7
165-
#- name: Windows
166-
# versions:
167-
# - all
168-
# - 2012R2
169-
#- name: SmartOS
170-
# versions:
171-
# - all
172-
# - any
173-
#- name: opensuse
174-
# versions:
175-
# - all
176-
# - 12.1
177-
# - 12.2
178-
# - 12.3
179-
# - 13.1
180-
# - 13.2
181-
#- name: SLES
182-
# versions:
183-
# - all
184-
# - 10SP3
185-
# - 10SP4
186-
# - 11
187-
# - 11SP1
188-
# - 11SP2
189-
# - 11SP3
190-
# - 11SP4
191-
# - 12
192-
# - 12SP1
193-
#- name: GenericUNIX
194-
# versions:
195-
# - all
196-
# - any
197-
#- name: Solaris
198-
# versions:
199-
# - all
200-
# - 10
201-
# - 11.0
202-
# - 11.1
203-
# - 11.2
204-
# - 11.3
205-
#- name: eos
206-
# versions:
207-
# - all
208-
# - Any
20922

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

21925
dependencies: []
220-
# List your role dependencies here, one per line.
221-
# Be sure to remove the '[]' above if you add dependencies
222-
# to this list.

molecule/default/Dockerfile.j2

Lines changed: 0 additions & 14 deletions
This file was deleted.

molecule/default/INSTALL.rst

Lines changed: 0 additions & 26 deletions
This file was deleted.
File renamed without changes.

0 commit comments

Comments
 (0)