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

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

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

python - How to remove the Xframe Options header in django? -