[Puppet Users] Re: Use puppet to preconfigure gnome gvfs shares

2011-04-04 Thread spidernik84
On Apr 2, 8:58 pm, Christian Kauhaus k...@gocept.com wrote:
 Am 01.04.2011 11:11, schrieb spidernik84:
 I don't think that Puppet is designed to support this sort of interactive
 behavior. I'd rather suggest to deploy a custom shell script via Puppet that
 performs the outlined actions on a user's first login. For example, pam_exec
 is providing this functionality. Something in /etc/profile (or your login
 shell's equivalent) would also be feasible.

Thank you Christian,
this is for sure an interesting option. I'll investigate further.

Regards,
Nicola

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



Re: [Puppet Users] Re: Use puppet to preconfigure gnome gvfs shares

2011-04-02 Thread Christian Kauhaus

Am 01.04.2011 11:11, schrieb spidernik84:

1. puppet detects the logged in username and sets this as a variable
2. puppet outputs a customized .gtk-bookmarks file with the network
paths inside, in this format 
smb://domain.com;john...@url.of.the.server/home$/johndoe
Johndoe share
3. puppet saves this file as /home/johndoe/.gtk-bookmarks


I don't think that Puppet is designed to support this sort of interactive 
behavior. I'd rather suggest to deploy a custom shell script via Puppet that 
performs the outlined actions on a user's first login. For example, pam_exec 
is providing this functionality. Something in /etc/profile (or your login 
shell's equivalent) would also be feasible.


Regards

Christian

--
Dipl.-Inf. Christian Kauhaus  · k...@gocept.com · systems administration
gocept gmbh  co. kg · forsterstraße 29 · 06112 halle (saale) · germany
http://gocept.com · tel +49 345 1229889 11 · fax +49 345 1229889 1
Zope and Plone consulting and development

--
You received this message because you are subscribed to the Google Groups Puppet 
Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] Re: Use puppet to preconfigure gnome gvfs shares

2011-04-01 Thread spidernik84


On Mar 31, 9:36 pm, Christian Kauhaus k...@gocept.com wrote:
 Am 31.03.2011 15:19, schrieb spidernik84:
 Did I get the problem right? Did I miss something?

Hi Christian,
thanks for the reply.

I would like to have puppet handle the whole process automatically,
without manually specifying the user.
The steps would be roughly these:

1. puppet detects the logged in username and sets this as a variable
2. puppet outputs a customized .gtk-bookmarks file with the network
paths inside, in this format 
smb://domain.com;john...@url.of.the.server/home$/johndoe
Johndoe share
3. puppet saves this file as /home/johndoe/.gtk-bookmarks

What's the meaning of all this? We're about to deploy Ubuntu 10.04 LTS
workstations on a big corporate network, thus we would like to
automate the set-up of the Gnome desktop. We need the users to find
the shares already setup at their first login, no matter what's the
username. We used gconftool to setup systemwide settings like lock
screen after screensaver startup and so on, but shares can't be
managed by gconftool.
Using puppet to write a customized version of the .gtk-bookmarks
depending on the user seemed feasible, but I'm open to alternatives.

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.