Ghislain ADNET
2006-Aug-19 17:01 UTC
[Puppet-users] file type when you create directory inside throw
Hello, I have a strange problem this nigth that i cannot solve, perhaps you can help me understand what is wrong. I have a file type that upload a directory into my servers. Inside this uploaded directory i create subdirectory and files on my own (directly on the target host). The problem is that when puppet comes back to the directory it spills out this error: err: //core1.adn-services.com/baseaqueos/file=/home/aqadmin/puppet/run/ensure: change from directory to file failed: Could not set file on ensure: Is a directory - /home/aqadmin/puppet/run for all the directory i created in it that are not on the puppet fileserver. After this, all file or operation that i want to use in this directory structure fails because of: notice: //core1.adn-services.com/proftpd/file=/home/aqadmin/etc/proftpd.aqueos.conf: Dependency file[/home/aqadmin] has 12 failures warning: //core1.adn-services.com/proftpd/file=/home/aqadmin/etc/proftpd.aqueos.conf: Skipping because of failed dependencies my .pp file is: file { "/home/aqadmin": ensure => present, group => aqusers, owner => aqadmin, source => "puppet://$puppetserver/aqadmin", links => ignore, recurse => true } then: file { "/home/aqadmin/etc/proftpd.aqueos.conf": content => template(''/var/puppet/templates/proftpd.aqueos.conf''), mode => 0640, ensure => present } the first throw error because i created directory in /home/aqadmin , i really do not see what is the problem with that for puppet, any idea ? Is it only because this is 2AM and i am missing something ? I am fighting one without understanding what causes the trouble. please capitain , you are our last hoooope (glaxy quest tone) -- Cordialement, Ghislain ADNET. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.madstop.com/pipermail/puppet-users/attachments/20060820/eed394a5/attachment.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3123 bytes Desc: S/MIME Cryptographic Signature Url : http://mail.madstop.com/pipermail/puppet-users/attachments/20060820/eed394a5/attachment.bin
Luke Kanies
2006-Aug-19 17:07 UTC
[Puppet-users] file type when you create directory inside throw
On Aug 19, 2006, at 7:01 PM, Ghislain ADNET wrote:> > > > my .pp file is: > > file { "/home/aqadmin": > ensure => present, > group => aqusers, > owner => aqadmin, > source => "puppet://$puppetserver/aqadmin", > links => ignore, > recurse => true > }Can you try getting rid of the ''ensure'' line? That''s set for you when you use ''source'', and setting it manually will attempt to override what is determined via ''source''. This is probably a bug with ''ensure'', but it''s the behaviour you want with other parameters. For instance, if you specify a uid during a file operation, you want it to override the uid of the source files; you probably don''t want ''ensure'' to get overridden though. Please file this as a bug, but get rid of the ''ensure'' line in the mean time. -- Luke Kanies http://madstop.com | http://reductivelabs.com | 615-594-8199
Ghislain ADNET
2006-Aug-20 17:57 UTC
[Puppet-users] file type when you create directory inside throw
ok, i get rid of the ensure line and this worked quite well thanks Luke !! as it is 2 am again, i will do the bug fill tomorow so a human can understand what i write (yes at 2am you sometime just speak klingon from time to time :) ) Thanks for the hint, i will start to be in the shape where i will shortly deploy puppet and run it on my freebsd server in production. I just have to work on some sudo magic and cron magic to make it work like i want (no user crontab, MAILTO set in crontabs and some sudo to wrap this all thing :)). I will keep you posted about the findings and if everything works well ! Cordialement, Ghislain ADNET.>-------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3123 bytes Desc: S/MIME Cryptographic Signature Url : http://mail.madstop.com/pipermail/puppet-users/attachments/20060821/6981ea96/attachment.bin