Comments (4)
I'll will check on Monday. I assume I's because the users home is tried to changed by the Ansible user module with a process running as the user and this fails.
It it is the case, I could add a check if the users current home will be changed and stop the promtail process before running this task. But this would add some complexity to the role only to change the users home.
from ansible-role-promtail.
@shinebayar-g
Thanks for reporting - I was not expecting that change to create issues. I've created a test case for catching regressions in the future #141
@hafu
I'd gladly appreciate if you provide a fix for the regression - thank you :-)
from ansible-role-promtail.
I could reproduce the issue. And came up with two options:
- As mentioned by @shinebayar-g #138 (comment) omitting the
home
. This would not touch the home of the user on existing installations (/
) and on new installations it would be the default/home/promtail
or/home/{{ promtail_system_user }}
. - Check for the user and if exists make sure there is no process running by stopping promtail when the home changes. I've added some additional tasks: a481b4d
What do you think?
from ansible-role-promtail.
Thanks for reaching out - personally I believe number 1) is the less intrusive one and with the less maintenance overhead in the long run.
from ansible-role-promtail.
Related Issues (20)
- Support pipeline_stages HOT 3
- run_once causes failures when not all nodes in batch get promtail
- Make LimitNOFILE in systemd service configurable HOT 5
- Unable to run the role without enabling and starting the promtail service HOT 2
- Reenable version check for default tests
- running tasks on localhost requires sudo permissions HOT 10
- Update release pipeline (before Jun 23)
- Add variable (list) for additional command line arguments/flags passed to promtail HOT 1
- promtail_config_expand_env variable is wrong by default HOT 1
- unable to parse syslog config receiver
- Automatic publishing to Ansible Galaxy is currently broken
- Support arbitrary options in the configuration file HOT 3
- [Question] Is ansible-lint being used? HOT 1
- set acl for read rights HOT 3
- Remove update_cache or make it optional HOT 3
- Cannot pull latest version HOT 3
- Ability to disable checksum check HOT 3
- latest Tag: failing at downloading SHA256SUMS HOT 3
- Dependency Dashboard
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-promtail.