puppet-samba
puppet-samba copied to clipboard
Looking for example Vagrant setup using the example snippet script on https://forge.puppetlabs.com/ajjahn/samba under 'Usage'
I'm using https://github.com/mikebell/drupaldev-apache as a Vagrant setup and I want to add samba functionality to the Virtual Machine that is provisioned using this Vagrant setup.
Author of drupaldev-apache Mike Bell recommended your puppet-samba repo for achieving this aim of including Samba functionality, as stated here: https://github.com/mikebell/drupaldev-apache/issues/3#issuecomment-29813000
So I'm keen to use your repo on his recommendation (his Vagrant work is really good so I take heed of his recommendations :) ).
I've looked at your documentation and tried to follow your suggestion "Tweak and add the following to your site manifest:" with the example snippet script for samba setup that you provide, at: on https://forge.puppetlabs.com/ajjahn/samba under 'Usage'
However I have been unlucky so far in getting this to work, 2 problems, 1) errors about positioning of the samba script snippetn you provide and 2) not sure what to supply to Windows in terms of login username and password when mapping the drive. I tried to add your snippet in my local copy of the drupaldev-apache setup, specifically this file: https://github.com/mikebell/drupaldev-apache/blob/master/manifests/example.pp
When I did a vagrant up command I got errors about the node definition being in the wrong place / at the wrong level related to class definitions (I'll try to give exact error messages when I next try this, but maybe what I've just said is enough to give clues as to what I'm doing wrong). I tried placing your snippet at other places in this Vagrant setup and managed to get the setup to run without these errors.
So then I tried to mount this Samba drive from the Windows host upon which my Vagrant VM guest is running. I used the 'Map Network Drive' option in Windows Explorer. I'm uncertain what to supply as user id/name and password and how this relates to the example settings in your samba script setup. I assumed that the address of the samba would either be my VMs IP address which is 33.33.33.10 as setup in that Vagrant drupaldev-apache I also tried 'logging in with different credentials' in the Windows Explorer to bypass the Windows domain that it usually auto-prepends to the username, which might be an unnecessary prefix which causes the user login to be invalid.
If you could provide an example setup, e.g. a Vagrant setup that works with your example then I could go from there and study it and get it working with Mike's drupaldev-apache Vagrant setup.