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

Creating multiple entry in auto.master file for single automaster_entry '/-' #40

Open
manish-nuance opened this issue Feb 9, 2021 · 5 comments
Labels
Waiting on Contributor Awaiting on the person who raised this to update

Comments

@manish-nuance
Copy link

manish-nuance commented Feb 9, 2021

🗣️ Foreword

Multiple entry created in auto.master file for single automaster_entry resource.
Thank for taking the time to fill this bug report fully. Without it we may not be able to fix the bug, and the issue may be closed without resolution.

👻 Brief Description

A clear and concise description of what the bug is.

My recipe configurations:

automaster_entry '/-' do
  map '/etc/auto.top'
  options '--timeout 120'
end

It does create two entry in auto.master file -- observed bugs

/- /etc/auto.top --timeout 120
/top /etc/auto.top

It should be single line entry on auto.master file

/- /etc/auto.top --timeout 120

🥞 Cookbook version

Version of the cookbook where you are encountering the issue.

👩‍🍳 Chef-Infra Version

tag versio 2.9.1
Version of chef-client in your environment.
chef 15.9.17

🎩 Platform details

Operating system distribution and release version. Cloud provider if running in the cloud.
CentOS-7.7

Steps To Reproduce

Steps to reproduce the behavior:
Configure chef recipe with following..
My recipe configurations:

automaster_entry '/-' do
  map '/etc/auto.top'
  options '--timeout 120'
end

🚓 Expected behavior

A clear and concise description of what you expected to happen.

should come-up with single entry in auto.master

/- /etc/auto.top --timeout 120 

➕ Additional context

Add any other context about the problem here. e.g. related issues or existing pull requests.

@manish-nuance manish-nuance changed the title Creating multiple in auto.master file with single automaster_entry '/-' Creating multiple in auto.master file for single automaster_entry '/-' Feb 9, 2021
@manish-nuance manish-nuance changed the title Creating multiple in auto.master file for single automaster_entry '/-' Creating multiple entry in auto.master file for single automaster_entry '/-' Feb 9, 2021
@ramereth
Copy link
Contributor

@manish-nuance I'm not able to reproduce this issue. Can you please let me know what version of the line cookbook you're using?

@ramereth ramereth added the Waiting on Contributor Awaiting on the person who raised this to update label Feb 10, 2021
@manish-nuance
Copy link
Author

@ramereth , thanks for taking this issue forward..
I'm using following tag version of autofs and line
autofs-2.3.0
line-2.9.1

thanks..

@ramereth
Copy link
Contributor

Unfortunately I'm still not able to replicate this issue. Are you able to replicate this with kitchen on your end? I'm wondering if the issue is cased by a specific line in your /etc/auto.master that isn't in the default config. Would it be possible to provide your file before running this resource so I can verify?

@manish-nuance
Copy link
Author

facing multiple entry issue with direct maps like "/-".. I'm using custom chef recipe to apply following.
did your try with followings.. ?

automaster_entry '/-' do
map '/etc/auto.top'
options '--timeout 120'
end

this automaster_entry "/-" gives multiple entry in auto.master
/- /etc/auto.top --timeout 120 ;; this line of entry is good
/top /etc/auto.top ;; this line of entry is created with map files extension.

Otherwise, look all good with indirect maps like "/xyz"

@ramereth
Copy link
Contributor

Yes I tried that and couldn't produce this creating a duplicate entry. That's why I'm wondering if there is something else in the file that the regex is having an issue with that I need on my end so I can replicate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting on Contributor Awaiting on the person who raised this to update
Projects
None yet
Development

No branches or pull requests

2 participants