puppet - How to order resources to be used inside create_resources? -
i have create resource like
files_list = { '/a': {ensure => 'file'}, '/a/b': {ensure => 'link', target => '/d/e', require[file['/a']]} } create_resources(file, files_list)
it gives error, dependency file['/a'] not found.
first, should require => file[/a]
, same syntax usual.
second, ensuring /a
file, not directory. means creating symlink @ /a/b
fail, since not directory.
finally, not need specify dependency @ all, since puppet handles auto-requiring parent directories. in other words, file /a/b/c
automatically require both /a
, /a/b
if declared.
Comments
Post a Comment