How to recursively change the owner and group on a directory with Chef?

后端 未结 5 2343
情歌与酒
情歌与酒 2021-02-18 15:45

the resource_directory has only 2 actions available: create and delete

I need to update the owner and group of a directory recursi

5条回答
  •  眼角桃花
    2021-02-18 16:22

    I would use plain resource directory with action :create. Per documentation:

    :create
    Default. Create a directory. If a directory already exists (but does not match), update that directory to match
    

    https://docs.chef.io/resource_directory.html

提交回复
热议问题