[Puppet Users] cwd dot folders

2012-07-25 Thread Nikolaos Hatzopoulos
Hi, I am trying to exec { myexectest: path=> "/bin:/usr/bin:/usr/sbin", cwd => "/home/user/.ssh", command =>"echo test > test.txt", onlyif => "test -f test.txt" } it doesnt work any clues why? I think it cannot change directory to a DOT directory please HE

Re: [Puppet Users] cwd dot folders

2012-07-25 Thread Nikolaos Hatzopoulos
no it is working I made a mistake I kind of confused with test command for: test -e /folder/file does not work on my centos box it needs cwd to the folder --Nikos On Wednesday, July 25, 2012 9:07:49 AM UTC-7, Christopher Wood wrote: > > On Tue, Jul 24, 2012 at 05:16:01PM -0700, Ni

Re: [Puppet Users] cwd dot folders

2012-07-25 Thread Nikolaos Hatzopoulos
ust execute something I don't if there is a better way of doing that --Nikos On Wednesday, July 25, 2012 9:07:49 AM UTC-7, Christopher Wood wrote: > > On Tue, Jul 24, 2012 at 05:16:01PM -0700, Nikolaos Hatzopoulos wrote: > >Hi, > > > >I am tryi

[Puppet Users] export a file from a node to another node

2012-07-25 Thread Nikolaos Hatzopoulos
So let's say you have two nodes node1 and node2 node1 has a text file with one line saying in /etc/mynode.txt: node1 how you receive this information and pass it to node2 using puppet? --Nikos -- You received this message because you are subscribed to the Google Groups "Puppet Users" group.

Re: [Puppet Users] Re: export a file from a node to another node

2012-07-25 Thread Nikolaos Hatzopoulos
? who it works here? I am pretty new in puppet but I didn't get it from the documentation --Nikos On Wed, Jul 25, 2012 at 1:12 PM, jcbollinger wrote: > > > On Wednesday, July 25, 2012 12:05:50 PM UTC-5, Nikolaos Hatzopoulos wrote: >> >> So let's say you have two nod

Re: [Puppet Users] cwd dot folders

2012-07-25 Thread Nikolaos Hatzopoulos
lute path on creates --Nikos On Wed, Jul 25, 2012 at 1:53 PM, Denmat wrote: > Check out the "creates" meta parameter. > > http://docs.puppetlabs.com/references/latest/type.html#exec > > Den > > On 26/07/2012, at 2:58, Nikolaos Hatzopoulos wrote: > > this

Re: [Puppet Users] Re: export a file from a node to another node

2012-07-26 Thread Nikolaos Hatzopoulos
rote: > > > On Wednesday, July 25, 2012 3:39:24 PM UTC-5, Nikolaos Hatzopoulos wrote: >> >> so we define that file would be exported from node1 like: >> >> @@file { "etc/mynode.txt:": >>content => "${mycontent}" >> } >&g

Re: [Puppet Users] Re: export a file from a node to another node

2012-07-27 Thread Nikolaos Hatzopoulos
it is better to be centralize and produce the keys on the server and distribute them to the nodes. thanks for the responds, --Nikos On Thu, Jul 26, 2012 at 2:08 PM, jcbollinger wrote: > > > On Thursday, July 26, 2012 10:41:28 AM UTC-5, Nikolaos Hatzopoulos wrote: >> >> as fa

[Puppet Users] exec in master transfer files to the node

2012-07-30 Thread Nikolaos Hatzopoulos
How you exec something in the master produce a file and this files you transfer it to your node? --Nikos -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/Li

Re: [Puppet Users] exec in master transfer files to the node

2012-07-31 Thread Nikolaos Hatzopoulos
Tue, Jul 31, 2012 at 12:07 AM, David Schmitt wrote: > On 30.07.2012 19:21, Nikolaos Hatzopoulos wrote: > >> How you exec something in the master produce a file and >> this files you transfer it to your node? >> > > take a look at the template(), inline_template

Re: [Puppet Users] exec in master transfer files to the node

2012-08-07 Thread Nikolaos Hatzopoulos
> On 31.07.2012 20:09, Nikolaos Hatzopoulos wrote: > >> exec { "sshkeygen": >> path=> "/usr/bin:/usr/sbin:/bin", >> creates => [ "puppet:///myuser/files/$**username/id_rsa" >> , "p