Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Block 1:
- class infra::agent_dir_structure (
- $agent_dir_structure_list = $infra::params::agent_dir_structure_list,
- ) inherits infra::params {
- $agent_dir_structure_list.each |$dir| {
- file { $dir:
- ensure => directory,
- }
- }
- }
- ---------------------------------------------------------------------------
- Block 2:
- class infra::agent_dir_structure () inherits infra::params {
- $agent_dir_structure_list.each |$dir| {
- file { $dir:
- ensure => directory,
- }
- }
- }
- ---------------------------------------------------------------------------
- [tom@peserver manifests]# cat params.pp
- class infra::params (
- $agent_dir_structure_list = [
- 'c:/puppet',
- 'c:/puppet/setups',
- 'c:/puppet/builds',
- ...
- ...
- ],
- ) {}
Add Comment
Please, Sign In to add comment