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

Implement free-form smb.conf options #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

erik-smit
Copy link
Contributor

No description provided.

@erik-smit
Copy link
Contributor Author

Example:
class {'samba::server':
options => {
'hosts deny' => 'ALL',
'hosts allow' => '1.2.3.4 4.3.2.1'
}
}

@ajjahn
Copy link
Owner

ajjahn commented Feb 18, 2013

This looks good; I'm not necessarily against this approach, but I'm wondering if it would be better to just implement these and other missing options outright. It would be more strict and prevent malformed configs. Can you think of a reason not to just implement the options directly?

@ajjahn ajjahn closed this Jan 10, 2014
@erik-smit
Copy link
Contributor Author

Sorry, I missed your response.

The reason I implemented this is because hardcoded parameters turn the job "Add paramater X to server Y" from a 1 minute singleline commit in my internal puppet repository into:

  • Fork third-party repo
  • Modify git submodule path
  • Modify third-party code
  • Test code
    • Create PR
    • Monitor PR
  • If PR gets picked up quickly, unfork, unmodify git submole
  • If PR doesn't get picked up quickly, maintain fork.
  • etc...

Look at things like https://github.com/example42/puppet-dnsmasq/blob/master/manifests/init.pp#L706

I see this as a lot of work with questionable benefits.

For strictness and forming, maybe augeas already does this. If not, testparm could be considered.

@ajjahn
Copy link
Owner

ajjahn commented Jan 16, 2014

Yeah, I've dealt with that before. I'll reopen and look at getting something like this implemented for special cases. I would, however, like to build in any commonly used options whenever possible.

@ajjahn ajjahn reopened this Jan 16, 2014
@erik-smit
Copy link
Contributor Author

Check out https://github.com/arioch/puppet-percona#using-percona-hashes to see a well-implemented option hash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants