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

Not working on Ubuntu Precise #7

Closed
d-ph opened this issue Nov 17, 2013 · 3 comments
Closed

Not working on Ubuntu Precise #7

d-ph opened this issue Nov 17, 2013 · 3 comments

Comments

@d-ph
Copy link

d-ph commented Nov 17, 2013

Hey Matthias,

in short: Ubuntu (tested in Precise) uses smbd as the Samba service name. In manifests/params.pp it is set as: samba resulting in puppet not being able to restart the service (unknown service error). I've edited:

case $osfamily {
    'RedHat': { $service = [ 'smb', 'nmb' ] }
    'Debian': { $service = [ 'samba' ] }
     default: { $service = [ 'samba' ] }
  }

to:

case $osfamily {
    'RedHat': { $service = [ 'smb', 'nmb' ] }
    'Debian': { $service = [ 'smbd' ] }
     default: { $service = [ 'smbd' ] }
  }

and it worked. Note that I was too lazy to check, whether I should change only the 'Debian' or both 'Debian' and default - I just changed both. Note that on Debian the service is named: samba, so it looks like there should be another key ubuntu specifically for this issue.

Cheers,
d-ph

@thias
Copy link
Owner

thias commented Nov 18, 2013

Hmm, I'm guessing you wanted to report this against puppet-samba, right? Do let me know if I have a wrong link somewhere that led you here.

The solution should be to switch to $::operatingsystem in the case statement or (to not have to list all members of the RedHat family) to just add another case inside of the Debian section.

@thias
Copy link
Owner

thias commented Nov 18, 2013

This should be fixed in git and in the 0.1.2 release on the forge.

@thias thias closed this as completed Nov 18, 2013
@d-ph
Copy link
Author

d-ph commented Nov 18, 2013

You're right, I wanted to make an issue report to the puppet-samba module. I just had a lot of browser bookmarks opened and it ended in a wrong place.

0.1.2. works for me now. Thanks

jeffadams pushed a commit to nytm/puppet-module-vsftpd that referenced this issue Apr 2, 2018
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

No branches or pull requests

2 participants