- Mastering Puppet 5
- Ryan Russell Yates Jason Southgate
- 90字
- 2021-07-16 17:46:12
Hiding complexity with parameters, defaults, and abstraction
You can see that, in the Apache profile, we have hidden the complexity of the vhost-defined type quite considerably, so that you just need to provide the name of the vhost as a string. Additionally, you can overwrite the value of the root internet directory. I believe it's the same location on all Linux operating systems. This reduction in the size of the interface really reduces complexity, and provides a simple, neat abstraction, which is fine if you don't need multiple Apache vhosts.