Giter Club home page Giter Club logo

ansible-role-goaccess's Introduction

👋 Hey there. My name’s Jonas

LinkedIn stackshare tryhackme

📺 Favourite Series

Avatar: The Last Airbender, Star Trek (VOY / TNG / PICARD / DISCOVERY)

⛳ Hobbies and Interests

Watching Movies with Friends, Learning new things, Programming, Keeping a clean and organized home and setup

🔝 Current Primary Fascinations

Ansible Automation and CI/CD (because its Awesome), Cooking (I spend too much € on other things ;))

📍 Location

EU, Austria, Vorarlberg (CET +1 hour)

IT (Home Setup Diagram)

I know my way around Linux, Windows, IT, programming and generally like to always try to understand most of the things I stumble across every day.

My current keen interest area is Dev - Ops — Specifically, in my current decision case, IaaC with Ansible/Terraform/Amazon Web Services and Continious Automated Integration/Delivery with GitHub Actions and Docker.
I will never get bored of my enthusiasm for web development, the browser, the backend and everything around it, as well as the perspectives that they still offer and make possible for us today.

Details

These are very fascinating topics that are fundamentally changing the way software development and deployment is done. Servers / VMs are transformed from sacred "don’t touch" black box systems into simple disposable and on-demand createable goods. It is the pinnacle of automation and reproducibility.

And the crazy thing is that nothing has fundamentally changed - It’s just that the solutions (Linux, SSH, HTTP, TLS, ..) and concepts (TCP/IP, ..) that were created a long time ago by very smart people are so crazily thought-of princibles which we’re all just slowly sticking together and extending continously. IT is amazing.

🌱 Having just completed an IT apprenticeship, I am currently studying for various certifications (CCNA, MSCA, FSNE 1-4, RHCSA, …​) to solidify my knowledge and help myself making the decision on which path to truly pursue by digging into each of them.

Recent Activities

🙋‍♂️ I actively star repositories I find useful and interesting. Below is an automatically generated overview of my GitHub profile, showing mostly my recently starred projects (which may give somewhat of an indication of what I’m currently onto):

Metrics

Private, Work and Infrastructure Setup

Pinned Repositories / Recent Contributions

ansible-role-goaccess's People

Contributors

jonaspammer avatar pre-commit-ci[bot] avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

lgtm-migrator

ansible-role-goaccess's Issues

[Bug]: rockylinux9 failing (could not find packages)

What happened?

https://github.com/JonasPammer/ansible-role-goaccess/actions/runs/4959612086/jobs/8873961820#step:8:868 (run with ALL distro's enabled and only rockylinux9 failing)

  TASK [ansible-role-goaccess : Install GoAccess dependencies (including optional ones)] ***
  Friday 12 May 2023  14:00:45 +0000 (0:00:00.392)       0:00:04.740 ************
  fatal: [instance-py3-ansible-6-rockylinux9]: FAILED! => changed=false 
    failures:
    - No package geoip-devel available.
    - No package libmaxminddb-devel available.
    msg: Failed to install some of the specified packages
    rc: 1
    results: []

Playbook

`molecule/default/converge.yml`

Role Version

master (192ce95)

Environment / Control Node Information

CI

Environment / Managed Node Information

geerlingguy/rockylinux9

[Bug]: Failed to update apt cache: W:GPG error debian12 / bookworm

What happened?

Hello

Thank you for this magnificent role.

I just tried to deploy this one on my Debian 12 machines (Bookworm) with this variables

goaccess_install_method: system
goaccess_systemd: true

And I encounter the following error:

FAILED! => {"changed": false, "msg": "Failed to update apt cache: W:GPG error: https://deb.goaccess.io bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 97BD1A0133449C3D, E:The repository 'https://deb.goaccess.io bookworm InRelease' is not signed."}

To the job:
TASK [ansible-role-goaccess: Add GoAccess's APT repository to system repository list and update cache.]
On my 3 Debian 12.

However, manual installation gives the same thing but the documentation (https://goaccess.io/download#distro) gives the solution in bash.

The following signatures were invalid: EXPKEYSIG 97BD1A0133449C3D.... See [Github issue](https://github.com/allinurl/goaccess/issues/2321#issuecomment-1128879773) to solve the expired key.
GPG error The following signatures couldn't be verified because the public key is not available.
Please make sure to download the new public key from step 2 above to correct this.
.deb packages in the official repo are available through https as well. You may need to install apt-transport-https.
The key fingerprint is: C03B 4888 7D5E 56B0 4671 5D32 97BD 1A01 3344 9C3D

If I understand:
apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (It's not the problem but it soon will be)

The real problem and the goacess documentation...

apt-key list | grep goaccess -C 2
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
pub   rsa3072 2020-05-17 [SC]
      C03B 4888 7D5E 56B0 4671  5D32 97BD 1A01 3344 9C3D
uid           [ unknown] Gerardo Orellana <[email protected]>
sub   rsa3072 2020-05-17 [E]

I suggest if you want to change that:

- name: Add GoAccess's APT signing key.
  ansible.builtin.apt_key:
    url: "https://deb.goaccess.io/gnugpg.key"
    state: present

- name: Add GoAccess's APT repository to system repository list and update cache.
  ansible.builtin.apt_repository:
    repo: "deb [signed-by=/usr/share/keyrings/goaccess.gpg] https://deb.goaccess.io/ {{ ansible_distribution_release }} main"
    filename: goaccess
    state: present
    update_cache: true

to this:


tasks file of ansible-role jonaspammer.goaccess

  • name: Add GoAccess's APT signing key.
    ansible.builtin.get_url:
    url: "{{ goaccess_repo_key_url }}"
    dest: /etc/apt/trusted.gpg.d/goaccess.asc
    mode: '0644'
    force: true

  • name: Add GoAccess's APT repository to system repository list and update cache.
    ansible.builtin.apt_repository:
    repo: "deb https://deb.goaccess.io/ {{ ansible_distribution_release }} main"
    filename: goaccess
    state: present
    update_cache: true

And add the default vars

→ grep "goaccess_repo_key_url" /roles/ansible-role-goaccess/defaults/main.yml
goaccess_repo_key_url: "https://deb.goaccess.io/gnugpg.key"

Test OK

Available to talk about it

Playbook

site.yml
- hosts:
    - all
  roles:
    - ansible-role-goaccess
  tags: goaccess

requirements.yml
- src: [email protected]:JonasPammer/ansible-role-goaccess.git
  scm: git
  version: 2.0.0+1

Role Version

2.0.0+1

Environment / Control Node Information

cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

ansible --version
ansible [core 2.16.6]
  config file = None
  configured module search path = ['/home/mabed/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/mabed/.local/share/virtualenvs/ansible-hcBhBNDq/lib/python3.11/site-packages/ansible
  ansible collection location = /home/mabed/.ansible/collections:/usr/share/ansible/collections
  executable location = /home/mabed/.local/share/virtualenvs/ansible-hcBhBNDq/bin/ansible
  python version = 3.11.2 (main, Mar 13 2023, 12:18:29) [GCC 12.2.0] (/home/mabed/.local/share/virtualenvs/ansible-hcBhBNDq/bin/python)
  jinja version = 3.1.3
  libyaml = True

Environment / Managed Node Information

06:41:52 root@SRV-MABED ~ → cat /etc/os-release 
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): update actions/checkout digest to 0ad4b8f
  • chore(deps): update actions/download-artifact digest to 65a9edc
  • chore(deps): update actions/upload-artifact digest to 6546280
  • chore(deps): update pandoc/core docker digest to 7652c8b
  • chore(deps): update pandoc/core:3.1 docker digest to 7652c8b
  • chore(deps): update stefanzweifel/git-auto-commit-action digest to 8621497
  • chore(deps): update pascalgn/size-label-action action to v0.5.2
  • chore(deps): update actions/cache action to v4
  • chore(deps): update actions/configure-pages action to v5
  • chore(deps): update actions/deploy-pages action to v4
  • chore(deps): update actions/setup-python action to v5
  • chore(deps): update actions/upload-artifact action to v4
  • chore(deps): update actions/upload-pages-artifact action to v3
  • chore(deps): update crazy-max/ghaction-github-labeler action to v5
  • chore(deps): update geekyeggo/delete-artifact action to v5

Pending Status Checks

These updates await pending status checks. To force their creation now, click the checkbox below.

  • chore(deps): update pandoc/core docker tag to v3.13

Detected dependencies

ansible-galaxy
requirements.yml
github-actions
.github/workflows/ci.yml
  • actions/checkout v4@b4ffde65f46336ab88eb53be808477a3936bae11
  • actions/setup-python v4@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236
  • actions/checkout v4@b4ffde65f46336ab88eb53be808477a3936bae11
  • actions/setup-python v4@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236
  • actions/cache v3@e12d46a63a90f2fae62d114769bbf2a179198b5c
  • actions/upload-artifact v3@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
  • mxschmitt/action-tmate v3@a283f9441d2d96eb62436dc46d7014f5d357ac22
.github/workflows/gh-pages.yml
  • actions/checkout v4@b4ffde65f46336ab88eb53be808477a3936bae11
  • ruby/setup-ruby v1
  • actions/setup-python v5@82c7e631bb3cdc910f68e0081d67478d79c6982d
  • pandoc/core sha256:e65b0b3dd2efb37f8f28caaf875efef0d1b37df71082cc8cb43ea66146b0aade
  • pandoc/core 3.1@sha256:222badaf55d35aa19a54294721b2669a55737e8a96e78f038b89c2b70bccd13f
  • stefanzweifel/git-auto-commit-action v5@8756aa072ef5b4a080af5dc8fef36c5d586e521d
  • actions/upload-artifact v4@5d5d22a31266ced268874388b861e4b58bb5c2f3
  • actions/download-artifact v4@c850b930e6ba138125429b7e5c93fc707a7f8427
  • actions/configure-pages v4@1f0c5cde4bc74cd7e1254d0cb4de8d49e9068c7d
  • actions/upload-pages-artifact v2@a753861a5debcf57bf8b404356158c8e1e33150c
  • actions/deploy-pages v3@13b55b33dd8996121833dbc1db458c793a334630
  • geekyeggo/delete-artifact v4@65041433121f7239077fa20be14c0690f70569de
.github/workflows/issue-label-manager.yml
  • actions/checkout v4@b4ffde65f46336ab88eb53be808477a3936bae11
  • crazy-max/ghaction-github-labeler v4@f4f6b96e7e747b5416cd470f3cfecf26abaa811e
.github/workflows/label-pr-sizes.yml
  • pascalgn/size-label-action v0.5.0@37a5ad4ae20ea8032abf169d953bcd661fd82cd3
.github/workflows/release-to-galaxy.yml
  • actions/checkout v4@b4ffde65f46336ab88eb53be808477a3936bae11
  • actions/setup-python v4@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236
pip_requirements
requirements-dev.txt
  • cruft >2.11

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.