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

How does one set alternative entry back to 'auto' mode? #32

Closed
felipe1982 opened this issue Mar 22, 2016 · 2 comments
Closed

How does one set alternative entry back to 'auto' mode? #32

felipe1982 opened this issue Mar 22, 2016 · 2 comments

Comments

@felipe1982
Copy link

felipe1982 commented Mar 22, 2016

When I first set up the alternative_entry, mode is set to 'auto' by default. Any subsequent change of the path forced mode to be manual. only deleting and recreating the entry (absent && present) makes it auto again.

Is there a better way?

@igalic
Copy link
Contributor

igalic commented Mar 25, 2016

imo, there should be an ensure => auto

@jyaworski
Copy link
Member

Looking in the file type, it appears as if we can handle alternative 'ensure' values in the type itself.

https://github.com/puppetlabs/puppet/blob/master/lib/puppet/type/file.rb

Overriding 'present' to be some sane default may be useful as well. The type module inspects $name to see if it's a file or a directory.

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

No branches or pull requests

3 participants