Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to specifiy manage_symlink_source for the underlying file resource #266

Open
GianniBYoung opened this issue Apr 10, 2024 · 0 comments
Labels
Feature Request Enhancement to existing functionality or new functionality

Comments

@GianniBYoung
Copy link

When using the line cookbook version 4.5.17 on a red hat 9 system running chef-client version 18.4.2 I see the following warning repeatedly when calling the replace_or_add resource:

replace_or_add[configure ciphers for RHEL9 sshd server] action edit
    * file[/etc/crypto-policies/back-ends/opensshserver.config] action create[2024-04-10T09:47:52-05:00] WARN: File /etc/crypto-policies/back-ends/opensshserver.config managed by file[/etc/crypto-policies/back-ends/opensshserver.config] is really a symlink (to /usr/share/crypto-policies/FIPS/opensshserver.txt). Managing the source file instead.
[2024-04-10T09:47:52-05:00] WARN: Disable this warning by setting `manage_symlink_source true` on the resource
[2024-04-10T09:47:52-05:00] WARN: In a future release, 'manage_symlink_source' will not be enabled by default

Block that produces the above:

  replace_or_add 'configure ciphers for RHEL9 sshd server' do
    path '/etc/crypto-policies/back-ends/opensshserver.config'
    pattern '^Ciphers\s+'
    line "Ciphers #{node['base']['fips']['sshd_server_ciphers']}"
  end

I would like the option to be able to explicitly set the value of manage_symlink_source in the underlying file resource in order to reduce noise and clear this warning.

@GianniBYoung GianniBYoung added the Feature Request Enhancement to existing functionality or new functionality label Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Enhancement to existing functionality or new functionality
Projects
None yet
Development

No branches or pull requests

1 participant