25 May 2012 14:59
[Puppet Users] Re: Puppet not applying my config
jcbollinger <John.Bollinger <at> stJude.org>
2012-05-25 12:59:01 GMT
2012-05-25 12:59:01 GMT
On May 24, 7:42 pm, Peter Bukowinski <pmb... <at> gmail.com> wrote:
> On May 24, 2012, at 8:05 PM, macmichael01 <macmichae... <at> gmail.com> wrote:
> > Here is the configuration that I am trying to apply:
>
> > /etc/puppet/manifests/site.pp
> > node default {
> > file { "/srv/test_file.txt":
> > owner => 'root',
> > group => 'root',
> > mode => '0777',
> > }
> > }
>
> > Thanks in advance!
>
> Try adding an 'ensure => file,' attribute to the beginning of the file resource block.
Yes, do, but that's not the problem.
>I believe puppet's default behavior is to *not* create a resource unless ensure is used to specify it.
That is mistaken. Generally speaking, the default value for 'ensure'
parameters is "present" or some equivalent value. There has to be
some default value because otherwise the resource declaration is
meaningless. Puppet's default might actually be "file" for this
resource type, but it makes no actual difference in this case.
John
--
--
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 <at> googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe <at> googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
RSS Feed