Code Monkey home page Code Monkey logo

ansible-raspberry-promtail-docker's Introduction

Test

Ansible Role: Raspberry - Promtail (Docker)

An Ansible role that manages Promtail Docker container with systemd on Raspberry Pi OS (Debian Bookworm).

Role Variables

Please see defaults/main.yml for a complete list of variables that can be overridden.

Dependencies

This role relies on the following dependencies:

Installation

$ ansible-galaxy role install escalate.promtail

Example Playbook

- hosts: all
  roles:
    - role: escalate.promtail
      tags: promtail

License

MIT

ansible-raspberry-promtail-docker's People

Contributors

dependabot[bot] avatar escalate avatar

Watchers

 avatar  avatar  avatar

ansible-raspberry-promtail-docker's Issues

Invalid argument in generated promtail.service

Generated promtail.service returns the error:
docker: network-scoped aliases are only supported for user-defined networks
and a warning:
WARNING: Your kernel does not support memory limit capabilities or the cgroup is not mounted. Limitation discarded.

Workaround is removing the --network-alias=promtail \ line from service file.

System:
Raspbian GNU/Linux 11 (bullseye)
Linux raspberrypi 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux
Docker version 20.10.16, build aa7e414

Playbook used:

- hosts:
  - raspberrypi
  become: true

  pre_tasks:
    - name: Install python3-docker
      apt:
        name: python3-docker
        state: present

  roles:
    - role: escalate.promtail
      tags: promtail
      vars:
        promtail_config:
          clients:
            - url: https://mylokiserver/loki/api/v1/push

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.