I download a cookbook from https://supermarket.chef.io/cookbooks/lineinfile, But I found that this cookbook did not achieve the effect of up to date when chef-client was running. What method can be achieved when the two amendment is able to up to date?

  • 1
    Show your code, please. – StephenKing Apr 21 '17 at 8:59

Without knowing the specifics, the line cookbook is probably the closest, but we generally recommend avoiding this style as it leads to very brittle code.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.