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

Popular posts from this blog

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

c# - Specify IP End Point in FiddlerCore -

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -