Skip to content
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

Remove seen file before update pam #4

Merged
merged 1 commit into from Aug 21, 2018
Merged

Remove seen file before update pam #4

merged 1 commit into from Aug 21, 2018

Conversation

kadogo
Copy link

@kadogo kadogo commented Aug 13, 2018

Hello,

I need to remove the "seen" files before pam-auth-update for Debian.
Without that the configuration is not refresh.

@aboe76 aboe76 requested a review from fintanmm August 13, 2018 10:26
@noelmcloughlin
Copy link
Member

@@ -2,6 +2,10 @@

{% if grains.os_family == 'Debian' %}
pam-auth-update:
module.run:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is difference or benefit of using module.run.file.remove over salt.states.file.absent. I never use module.run so just wondering?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you are correct, salt.states.file.absent is better.
When I searched how remove a file on salt I saw the module.run method so I used it.

If you feel that file.absent is better you may change it (my salt knowledge is very limited).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it works, then its fine. thanks.

Copy link
Member

@noelmcloughlin noelmcloughlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kadogo

@noelmcloughlin noelmcloughlin merged commit 1f55f38 into saltstack-formulas:master Aug 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants