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

Specify default for order parameter on auto::mount #65

Merged
merged 1 commit into from
Jun 20, 2017

Conversation

traylenator
Copy link
Contributor

The order parameter to auto::mount

auto::mount{'home':
  mount   => '/home',
  mapfile => '/etc/auto.home',
  order   => 3,
  ...
}

currently must be specified.

Especially since in the vast majority of cases the order of the lines
in /etc/auto.master is irrelevent a default this value can be specified.

Motification, less mandatory options always good.

@traylenator traylenator added the enhancement New feature or request label Jun 15, 2017
@traylenator traylenator requested a review from dhollinger June 15, 2017 12:00
@@ -31,6 +31,7 @@
# path using filenames ending in the ".autofs" extension.
# @param options Options for the autofs mount point within in the auto.master.
# @param order Order in which entries will appear in the autofs master file.
# Defaults to 1.
Copy link
Member

Choose a reason for hiding this comment

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

Default doesn't need to be specified in puppet strings @param tags.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Learnt - thanks.

@dhollinger
Copy link
Member

@traylenator can you rebase?

The `order` parameter to `auto::mount`

```puppet
auto::mount{'home':
  mount   => '/home',
  mapfile => '/etc/auto.home',
  order   => 3,
  ...
}
```
currently must be specified.

Especially since in the vast majority of cases the order of the lines
in `/etc/auto.master` is irrelevent a default this value can be specified.

Motification, less mandatory options always good.
@dhollinger dhollinger merged commit 1ca57a5 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.

2 participants