Skip to content

resource always changed #16

@kontrafiktion

Description

@kontrafiktion

if I use

replace_line "#{pg_etc}/postgresql.conf" do
  replace /^[#]*listen_addresses.*/
  with    "listen_addresses = '*'"
end

chef always tells me that something has changed:

image

Would it be possible to mark the file as unchanged when no change has happened because the "with" is already there or would I have to use a more complicated "replace" regexp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions