-
Notifications
You must be signed in to change notification settings - Fork 580
Added replace attribute #451
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
Conversation
As I mentioned on the previous PR, this PR and the issue need some work. I'll elaborate on my concerns when I get back to a keyboard. |
In the meantime, instead of using |
@elyscape Yeah saw that, it could be a type that works. But in absence of a provider and spec testing I opted to add an attribute to |
Not all types use providers. That custom |
The result of the test was: PASS I am a beta ci bot. I am probably lying to you. |
It seems to me like the problem here is managing logadm.conf. Logadm, it seems, is one of those terrible daemons that writes back to its own config file. However, I think I have a solution. From the logadm docs:
Setting -p now and removing -P then all files will be rotated whenever logadm is invoked by cron. This means that cron can handle scheduling and puppet can manage logadm.conf idempotently. |
The result of the test was: PASS I am a beta ci bot. I am probably lying to you. |
Hi @WhatsARanjit , thank you for your patch, I think it's a worth-while addition. To be acceptable to stdlib, this needs at least a short description in the README and a unit test in Like the Cheers, D. |
The result of the test was: PASS I am a beta ci bot. I am probably lying to you. |
The result of the test was: PASS I am a beta ci bot. I am probably lying to you. |
@WhatsARanjit ping? any update on this? |
Merged in #494 |
We have a use case where a Solaris /etc/logadm.conf file has entries like:
Using the shell command to add entries by design puts a timestamp in the line. A customer would like to manage lines of this file. Using file_line and the match attribute causes the line to be continually updated with new timestamp.
The time stamp will be different for each system because it is the time the entry was added.