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

Add support for builtin -hosts and -null maps #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

exptom
Copy link

@exptom exptom commented Dec 31, 2023

I thought I would have a go at adding the feature that I needed. (see #12 )

This allows you to utilise the builtin maps (-hosts and -null) provided by autofs. e.g.:

autofs_maps:
  - name: home-nfs
    mountpoint: /nfs
    options:
      - "-hosts"
      - browse
      - "--timeout=300"
      - "--negative-timeout=30"

The role now checks if -hosts or -null is included in the options array. If it is then it does not create the map file and you do not need to define directories.

I'm unfamiliar with molecule and encountered some errors getting it running - I'd appreciate pointers for adding suitable tests to this PR.

Thanks!

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.

1 participant