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

Let autofs::mount mount option default to title. #66

Merged
merged 1 commit into from
Jun 20, 2017

Conversation

traylenator
Copy link
Contributor

autofs::mount{'data':
  mount   => '/data',
  mapfile => '/etc/auto.data',
  ...
}

can now be specified as

autofs::mount{'/data':
  mapfile => '/etc/auto.data',
  ...
}

Given the mount point has to be a unique key in the /etc/auto.master
anyway this makes sense.

Backwards compatible anyway of course.

@traylenator traylenator added the enhancement New feature or request label Jun 15, 2017
@@ -20,7 +20,7 @@
# order => 01
# }
#
# @param mount Location where you will mount the remote NFS Share.
# @param mount Location where you will mount the remote NFS Share. Defaults to the title.
Copy link
Member

Choose a reason for hiding this comment

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

A default doesn't need to specified in a Puppet Strings @param tag as string is able to look up the defaults on its own

A little nitpicky, but it's nice to keep things consistent across module docs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Corrected, I should actually read the puppet-doc docs one day.

@dhollinger
Copy link
Member

@traylenator can you rebase this?

@traylenator
Copy link
Contributor Author

I'll rebase after #65 if that's okay as it will need redoing again then.

@traylenator
Copy link
Contributor Author

rebased

```puppet
autofs::mount{'data':
  mount   => '/data',
  mapfile => '/etc/auto.data',
  ...
}
```

can now be specified as

```puppet
autofs::mount{'/data':
  mapfile => '/etc/auto.data',
  ...
}
```

Given the mount point has to be a unique key in the `/etc/auto.master`
anyway this makes sense.

Backwards compatible anyway of course.
@dhollinger dhollinger merged commit 2753f82 into voxpupuli:master Jun 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants