Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

molecule tests #19

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
0e30e09
install python3.7 in prepare.yml
Jun 19, 2024
b006aa9
trigger workflow
abhi8080 Jul 1, 2024
57424cc
change python version
abhi8080 Jul 1, 2024
9d528ea
extract version number from variable
abhi8080 Jul 6, 2024
e377cee
remove condition since the variables cannot be compared
abhi8080 Jul 6, 2024
9a3dc1b
make idempotence pass
abhi8080 Jul 6, 2024
c244c56
make all tasks pass
abhi8080 Jul 6, 2024
38227e0
write molecule tests
abhi8080 Jul 6, 2024
894bb15
add condition
abhi8080 Jul 8, 2024
7dd6d14
upgrade to version 8 and fix so that role passes
abhi8080 Jul 8, 2024
64accdf
fix github actions
abhi8080 Jul 8, 2024
a0ea47e
update workflow
abhi8080 Jul 8, 2024
cf584ee
make workflow pass
abhi8080 Jul 8, 2024
461f5f1
change remote_tmp
abhi8080 Jul 8, 2024
6ebafd0
change remote user
abhi8080 Jul 8, 2024
33846ce
debugging
abhi8080 Jul 8, 2024
0bb06f0
change gather_facts
abhi8080 Jul 8, 2024
7f81f9b
change ubuntu version
abhi8080 Jul 8, 2024
2692249
debugging
abhi8080 Jul 9, 2024
063b027
fix typo
abhi8080 Jul 9, 2024
f4dcdbc
update molecule.yml to make github actions pass
abhi8080 Jul 12, 2024
5af081b
run molecule as root in github actions
abhi8080 Jul 12, 2024
c97e643
update to run with correct sudo
abhi8080 Jul 12, 2024
5d94f0b
add sudo when installing
abhi8080 Jul 12, 2024
15ec3db
add debugging information
abhi8080 Jul 12, 2024
fa53877
remove sudo
abhi8080 Jul 12, 2024
9a8b56c
fix so that the container is created
abhi8080 Jul 12, 2024
548a422
add back sudo, but runs on a different image
abhi8080 Jul 12, 2024
f9e2cff
remove sudo
abhi8080 Jul 12, 2024
76c6bb8
fix so that the role can be run without being root
abhi8080 Jul 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions molecule/default/prepare.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---

- name: Prepare
hosts: all
Expand All @@ -8,6 +7,14 @@
pre_tasks:
- name: Install python
raw: apt update; apt install -y python3
- name: Install software-properties-common
raw: apt update; apt install -y software-properties-common
- name: Add deadsnakes PPA
raw: add-apt-repository ppa:deadsnakes/ppa; apt update
- name: Install python3.7
raw: apt install -y python3.7
- name: Gathering Facts
setup:
abhi8080 marked this conversation as resolved.
Show resolved Hide resolved
vars:
easyrsa_servers:
- name: elastic
Expand All @@ -16,7 +23,6 @@
easyrsa_clients:
- name: logstash
pass: 'nk}$Q%];a3Gy$E!QvT8E'
- name: kibana-backend
pass: 'nk}$Q%];a3Gy$E!QvT8E'
- name: beats
pass: 'nk}$Q%];a3Gy$E!QvT8E'
Expand All @@ -28,3 +34,4 @@
easyrsa_download: []
easyrsa_download_pki: true
easyrsa_download_dir: '~/'
ansible_python_interpreter: /usr/bin/python3.7
abhi8080 marked this conversation as resolved.
Show resolved Hide resolved