Hi all, I have a problem when adding content to a file. I know this sound basic, but I don't know what I'm doing wrong...
my server runs puppet-server-2.6.3-0.4.el5 and client puppet-2.6.1-0.6.el5. I firs defined a file like: file { 'default_dns': name => '/etc/resolv.conf', content => "search mydomain.com \nnameserver 192.168.1.1 \nnameserver 192.168.1.2"; } It returns the error: You cannot specify more than one of content, source, target at ... SO I tried the example from http://docs.puppetlabs.com/references/stable/type.html#file like $srt="search mydomain.com \nnameserver 192.168.1.1 \ \nnameserver192.168.1.2" file { 'default_ntp': name => '/etc/ntp.conf', content => $srt# } } *notice double "{" at the end, as the exmaple shows, alo tried with simple "}" with "," and ";" after $srt All my combinations produce and error. Double } syntax one (is doc wrong?) and others same as above... So, how may I specify file content? TIA, Arnau -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.