Skip to content

Commit

Permalink
Install promtail with apk
Browse files Browse the repository at this point in the history
  • Loading branch information
dergeberl committed Jul 24, 2024
1 parent 988555d commit dd0f15d
Showing 1 changed file with 31 additions and 28 deletions.
59 changes: 31 additions & 28 deletions image/install-alpine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,34 +201,37 @@
mode: 0755

# promtail
- name: upload promtail
copy:
src: ../out/promtail
dest: /usr/local/bin/promtail
owner: root
group: root
mode: 0755

- name: Creating promtail user
user:
name: "promtail"
shell: /bin/ash
groups: wheel
append: true

- name: Create a directory for promtail
file:
path: /etc/promtail
state: directory
mode: '0755'

- name: add openrc promtail
copy:
src: ./promtail.sh
dest: /etc/init.d/promtail
owner: root
group: root
mode: 0755
- name: install promtail
command: "apk add loki-promtail"

#- name: upload promtail
# copy:
# src: ../out/promtail
# dest: /usr/local/bin/promtail
# owner: root
# group: root
# mode: 0755

#- name: Creating promtail user
# user:
# name: "promtail"
# shell: /bin/ash
# groups: wheel
# append: true

#- name: Create a directory for promtail
# file:
# path: /etc/promtail
# state: directory
# mode: '0755'

#- name: add openrc promtail
# copy:
# src: ./promtail.sh
# dest: /etc/init.d/promtail
# owner: root
# group: root
# mode: 0755

# reload openrc
- name: Reload openrc
Expand Down

0 comments on commit dd0f15d

Please sign in to comment.