Thanks for this help Ken, one more question please, suppose I want to
add the following lines in the smb.conf file already existing on the
client machine:
[USERNAME]
path = /home/USERNAME
available = yes
valid users = XYZ
read only =yes
How can I add lines to smb.conf with out overwriting the
On Jul 8, 2011, at 12:45 PM, newguy wrote:
How can I add lines to smb.conf with out overwriting the content of
the file.
I think Augeas is what you’re looking for (for this and other inevitable use
cases).
http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Augeas
--
Rob McBroom
Thanks Rob but what if I simple decide to remove the existing smb.conf
file and push the new smb.conf from the server, I know I can use the
source to tell which file to install and its location but how would I
remove the smb.conf from the client.
On Jul 8, 9:54 am, Rob McBroom
On Jul 8, 2011, at 1:52 PM, newguy wrote:
Thanks Rob but what if I simple decide to remove the existing smb.conf
file and push the new smb.conf from the server, I know I can use the
source to tell which file to install and its location but how would I
remove the smb.conf from the client.
If
Rob I am writing a module for installing Haproxy on client machine and
I want modified haproxy.cfg and modified /etc/init.d/haproxy to be
installed on the client. Here is my code but teh files are not getting
to the client machine:
class haproxy::install {
package { haproxy:
ensure
On Fri, 08 Jul 2011 11:18:57 -0700, newguy wrote:
class haproxy::init {
file { /etc/init.d/haproxy:
ensure = present,
owner = 'root',
group = 'root',
mode = 0600,
source = puppet:///modules/haproxy/haroxy,
Got a
Thanks dude, there was another typo too, fixed both and it worked,
thanks everyone.
On Jul 8, 11:22 am, Jacob Helwig ja...@puppetlabs.com wrote:
On Fri, 08 Jul 2011 11:18:57 -0700, newguy wrote:
class haproxy::init {
file { /etc/init.d/haproxy:
ensure = present,