Compare commits

..

65 Commits
1.0.0 ... main

Author SHA1 Message Date
c2fd05a3b4 Merge pull request 're-add community.general' (#14) from development into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #14
2023-11-18 02:33:51 -05:00
c5de2157c3 re-add community.general
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-18 02:33:08 -05:00
789b7d485e Merge pull request 'wtf is wrong with community.general in this repo???' (#13) from development into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #13
2023-11-18 02:32:16 -05:00
0097a0bdfb wtf is wrong with community.general in this repo???
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-18 02:30:51 -05:00
ad0982641c Merge pull request 'add missing name... lol' (#12) from development into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #12
2023-11-18 02:29:05 -05:00
9681ef97f0 add missing name... lol
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-18 02:28:04 -05:00
db978752f5 Merge pull request '.drone.yml updates' (#11) from development into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #11
2023-11-18 02:12:20 -05:00
1999484cd8 update ansible_playbook_execution task
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-18 02:11:37 -05:00
ee63cf75f8 .drone.yml updates
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-18 02:09:00 -05:00
04fb9e43a8 Merge pull request 'bullshit' (#10) from development into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #10
2023-11-18 02:01:19 -05:00
e2e8648977 add 'git' installation
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-18 02:00:37 -05:00
de7698dde3 Merge pull request 'test ci to aap workflow' (#9) from development into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #9
2023-11-18 01:57:31 -05:00
a709bb3094 remove 'fail' task
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-18 01:31:16 -05:00
127f0e65ec add 'fail' task
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-18 00:45:08 -05:00
75b4e17394 add 'pwd' to check entrypoint
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-18 00:16:25 -05:00
9282a0e073 add exclusions for .ansible-lint
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-18 00:13:50 -05:00
04d16e2111 revert hello.yml to a simple poc
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-17 22:48:31 -05:00
5623c6186f remove handler
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-17 22:45:34 -05:00
fba685488a add some additional tasks for testing
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-17 22:44:04 -05:00
f3cd8edf67 Merge pull request 'cruft removal' (#8) from development into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #8
2023-11-17 19:57:40 -05:00
97f05614fc remove cruft
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-17 19:57:10 -05:00
6377a24219 Merge pull request 'updates to .drone.yml' (#7) from development into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #7
2023-11-17 15:58:08 -05:00
185d47b0e4 update .ansible-lint to allow for colon tidiness
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-17 15:54:12 -05:00
31b7fe0acc remove debug; fix globals
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-17 15:53:13 -05:00
59bfbf0c2b trying stuff
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-17 15:50:29 -05:00
3a260ac16b reorder and rename
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-11-17 15:45:35 -05:00
cbbeaa4af9 add globals
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-11-17 15:44:33 -05:00
d49c00ceb5 re-add image to test
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-11-17 15:41:56 -05:00
2321723c09 syntax changes
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-11-17 15:41:15 -05:00
7a60623201 fix L#15 mapping values are not allowed in this context
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-11-17 15:40:49 -05:00
c689cd19bd add content to echo
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-11-17 15:40:00 -05:00
af2c35003c add debug test to check environment
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-11-17 15:35:53 -05:00
2ed92a0eda fix hello.yml; .drone-ci.yml refinements
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-11-17 15:34:20 -05:00
3a02d1d9bd remove syntax check as ansible-lint already does this; see: https://ansible.readthedocs.io/projects/lint/rules/syntax-check/
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-17 15:26:42 -05:00
c6c3bf23d7 create syntax error for testing
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-17 15:19:31 -05:00
8186d8d4ae re-order tests
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-17 15:17:45 -05:00
c3d223f289 remove empty line
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-17 12:19:13 -05:00
c0e107641f update .drone.yml
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-17 12:13:40 -05:00
71140b43be Merge pull request 'drone ci updates' (#4) from development into main
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #4
2023-11-17 12:00:44 -05:00
a900700a1c change event
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-11-17 11:56:41 -05:00
0b2a1bd882 remove conditionals. what happens?
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-11-17 11:55:10 -05:00
ed78bb72f7 comment out everything
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-11-17 11:54:27 -05:00
e3fbdb375c grrrrr
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-11-17 11:40:34 -05:00
5070ee375e update requirements.yml and .drone.yml
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-11-17 11:34:58 -05:00
353b71d339 more .drone.yml updates
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
2023-11-17 11:28:29 -05:00
6eed651dc6 this should work
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2023-11-17 11:10:41 -05:00
4a9aa413f0 grrr
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-17 11:10:12 -05:00
be2e76a870 remove hostname/whoami
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-17 11:09:40 -05:00
ae6f03030e fix missing images
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-17 11:09:10 -05:00
891aceb04d fix syntax
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-11-17 11:08:53 -05:00
48ed5a92ba testing modularity
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-11-17 11:07:25 -05:00
b3a3cd6da6 re-add commit; add branch condition
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-17 10:56:39 -05:00
ff22e1cb50 remove conditional params
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-17 10:55:00 -05:00
42ad0c68c2 add whoami
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-17 10:39:46 -05:00
93d839ece1 remove push
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-17 10:36:59 -05:00
4d5fae6872 new conditional
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-17 10:36:16 -05:00
6d76533294 add empty_commit
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-17 10:35:27 -05:00
462f84151a remove some checks; not needed
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-17 10:33:02 -05:00
5b144c5e88 add skip_verify
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-17 10:29:23 -05:00
cc9f96b470 add ssh dir check
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-17 10:10:37 -05:00
fd4b03d2f9 add whoami to verify what user we are
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is failing
2023-11-17 09:52:40 -05:00
da407eddee updated image to include .ssh/config; re-add push commit test
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-17 09:50:35 -05:00
93076731fe remove git push for now
All checks were successful
continuous-integration/drone/push Build is passing
2023-11-17 09:12:16 -05:00
1f4974e1dd change from fqdn to ip addr
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-17 01:06:38 -05:00
c71c2ce761 add git push test
Some checks failed
continuous-integration/drone/push Build is failing
2023-11-17 01:04:09 -05:00
6 changed files with 93 additions and 74 deletions

View File

@ -1,2 +1,7 @@
skip_list:
- yaml[line-length]
- yaml[colons]
exclude_paths:
- .drone.yml
- requirements.yml

View File

@ -1,30 +1,91 @@
---
name: Ansible Playbook Lint and Test Execution
global-variables:
ansible_image: &ansible_image "gitea.thezengarden.net/podman/images/ansible-dev:latest"
ansible_inventory: &ansible_inventory "-i 127.0.0.1, --connection=local"
ansible_playbook: &ansible_playbook "hello.yml"
name: run_ansible_tests
kind: pipeline
type: docker
steps:
- name: Install requirements, lint, and run Ansible playbook
image: gitea.thezengarden.net/podman/images/ansible-dev:latest
environment:
GITEA_TOKEN:
from_secret: gitea_token
ANSIBLE_INVENTORY:
from_secret: ansible_inventory
ANSIBLE_INVENTORY : *ansible_inventory
ANSIBLE_PLAYBOOK : *ansible_playbook
ANSIBLE_DOCKER_IMAGE : *ansible_image
steps:
- name: "ansible_environment_verify"
image: *ansible_image
commands:
- ansible-galaxy install -r $DRONE_WORKSPACE/requirements.yml
- ansible-lint --offline $DRONE_WORKSPACE
- ansible-playbook -v -i $ANSIBLE_INVENTORY $DRONE_WORKSPACE/hello.yml
- echo "Build complete and successful for $DRONE_REPO_NAME"
- git log -1
- ansible --version
- ansible-lint --version
when:
branch:
- development
event:
include:
- push
exclude:
- pull_request
- main
event: [push]
- name: "ansible_galaxy_requirements"
image: *ansible_image
commands:
- ansible-galaxy install -r requirements.yml
when:
branch:
exclude:
- main
event: [push]
- name: "ansible_lint"
image: *ansible_image
commands:
- ansible-lint --offline
when:
branch:
exclude:
- main
event: [push]
- name: "ansible_playbook_execution"
image: *ansible_image
commands:
- ansible-playbook -v $ANSIBLE_INVENTORY $ANSIBLE_PLAYBOOK
when:
branch:
exclude:
- main
event: [push]
###############################################################################
###############################################################################
###############################################################################
# - name: Update repo with build stats
# image: appleboy/drone-git-push
# settings:
# branch: testing
# remote: gitea@10.10.10.109:chris/drone-test-1.git
# force: false
# commit: true
# empty_commit: true
# commit_message: "Drone build ${DRONE_COMMIT_SHA:0:7} => ${DRONE_BUILD_STATUS}"
# author_name: "Drone CI"
# author_email: "chris@thezengarden.net"
# skip_verify: true
# ssh_key:
# from_secret: gitea_ssh_privkey
# when:
# branch:
# - development
# ---
# name: Test Ansible Linting of drone-test-1

View File

@ -1,30 +0,0 @@
---
name: Ansible Linting of drone-test-1
kind: pipeline
type: docker
steps:
- name: "Ansible Testing: Install required packages and Python modules"
image: quay.io/centos/centos:stream9
commands:
- dnf update -y
- dnf install -y python3-pip git hostname
- pip3 install ansible-core==2.14.11 ansible-lint==6.13.1
- name: "Ansible Testing: Make repo directory and clone desired repository"
image: quay.io/centos/centos:stream9
commands:
- mkdir /opt/test
- git clone https://gitea.thezengarden.net/chris/drone-test-1.git /opt/test/drone-test-1
depends_on:
- "Ansible Testing: Install required packages and Python modules"
- name: "Ansible Testing: Run Ansible-Lint and Ansible-Playbook against cloned repo"
image: quay.io/centos/centos:stream9
commands:
- ansible-lint /opt/test/drone-test-1
- ansible-playbook -v -i 127.0.0.1, /opt/test/drone-test-1/hello.yml
depends_on:
- "Ansible Testing: Make repo directory and clone desired repository"

View File

@ -1,10 +1,16 @@
- name: Hello world
hosts: localhost
connection: local
hosts: all
become: false
gather_facts: false
tasks:
- name: Say Hello world
ansible.builtin.debug:
msg: Hello world!
- name: Install Git
ansible.builtin.package:
name: git
state: present

View File

@ -1,21 +0,0 @@
---
name: Ansible Linting of drone-test-1
kind: pipeline
type: docker
steps:
- name: Prepare CentOS 8 image, clone, and test code
image: centos:8
commands:
- hostname
- lscpu
- dnf --disablerepo '*' --enablerepo=extras swap centos-linux-repos centos-stream-repos -y
- dnf distro-sync -y
- dnf update -y
- hostname
- dnf install -y ansible-core git
- pip3 install ansible-lint
- mkdir /opt/test
- git clone https://gitea.thezengarden.net/chris/drone-test-1.git /opt/test/drone-test-1
- ansible-lint /opt/test/drone-test-1

View File

@ -1,5 +1,3 @@
collections:
- community.general
- ansible.netcommon
- community.docker
- containers.podman
- name: ansible.posix
- name: community.general