Comments (2)
This seems likely to be a bug in documentation rather than code. The README shows the following YAML snippet as an example (which matches the style of the input above):
autofs::mapfiles:
home:
path: '/etc/auto.home'
mappings:
key: '*'
options: 'rw,soft,intr'
fs: 'server.example.com:/path/to/home/shares'
Whereas, per the definition of Autofs::Mapfile (and the error message the user listed above), you probably want a snippet that looks more like the following, which ensures that the mappings
element is parsed as an Array rather than a Struct:
autofs::mapfiles:
home:
path: '/etc/auto.home'
mappings:
- key: '*'
options: 'rw,soft,intr'
fs: 'server.example.com:/path/to/home/shares'
I can certainly fork and submit a pull request, but for a minor change like this it may be faster for someone on the team to update the repo directly.
In any case, the YAML which I believe should work for @jurim76 would look like this instead:
autofs::mapfiles:
gmail:
path: '/etc/auto.master.d/auto.gmail'
mappings:
- key: 'gmail'
options: 'rw,soft,intr,tcp,nfsvers=4,noacl'
fs: 'ld-sys-smb:/srv/gmail'
from puppet-autofs.
Looks like we missed a docs update when autofs::mapfiles
was updated for the last major release. I'll take a look at this tomorrow, unless someone wants to submit a PR.
from puppet-autofs.
Related Issues (20)
- Documentation uses wrong name for autofs::map::mapfile HOT 2
- The mapfile banner should not be duplicated
- Executable maps cannot be built from multiple pieces HOT 7
- Enable auto-naming of the /etc/auto.<mount> file. HOT 4
- Catalog compilation can fail when managing the same map file via multiple autofs::map resources HOT 2
- Catalog compilation fails when mapcontents are given as a string
- Drop-in files created when $autofs::mount::use_dir is true should never be executable
- The Autofs::Mapentry data type is incomplete
- autofs::mount mapfile_manage is still useful - need to add back HOT 1
- enable support for mutli-mount entry. HOT 5
- Feature: Add support for Darwin HOT 5
- Unknown variable: 'autofs::auto_master_map' in mount.pp HOT 2
- to include NIS/LDAP map HOT 5
- Cut a new release for updated dependencies
- Examples using Heira
- Merge Unique HOT 2
- Add Support for RHEL 8 HOT 4
- Dependency chain issue with puppetlabs-concat HOT 1
- Add AIX support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-autofs.