When I run `puppet apply --verbose --debug httpd.pp`, the last lines
printed are:

debug: Finishing transaction -608038528
debug: Loaded state in 0.00 seconds
info: Applying configuration version '1321356508'
debug: Service[httpd](provider=redhat): Executing 'ps -ef'
debug: Service[httpd](provider=redhat): PID is 17243
debug: Puppet::Type::Service::ProviderRedhat: Executing '/sbin/chkconfig
httpd'
debug: Finishing transaction -608222128
debug: Storing state
debug: Stored state in 0.01 seconds

 When I run `puppet apply --verbose --debug start.pp`, the last lines
printed are:

debug: Finishing transaction -607971218
debug: Loaded state in 0.00 seconds
info: Applying configuration version '1321356691'
debug: Service[httpd](provider=redhat): Executing 'ps -ef'
debug: Puppet::Type::Service::ProviderRedhat: Executing '/sbin/chkconfig
httpd'
debug: Service[httpd](provider=redhat): Executing '/sbin/service httpd
start'
debug: Puppet::Type::Service::ProviderRedhat: Executing '/sbin/chkconfig
httpd'
notice: /Stage[main]//Service[httpd]/ensure: ensure changed 'stopped' to
'running'
debug: Finishing transaction -608154818
debug: Storing state
debug: Stored state in 0.01 seconds

I made sure to stop `httpd` before each run. `start.pp` and `httpd.pp` have
the same contents.

Any other thoughts?

On Wed, Nov 16, 2011 at 9:00 AM, Christopher Wood <
christopher_w...@pobox.com> wrote:

> On Tue, Nov 15, 2011 at 04:40:29PM -0800, Matthew O'Connor wrote:
> > Hi all,
> >
> > I'm working thru the tutorial (http://docs.puppetlabs.com/learning/
> > manifests.html) using the VM provided (http://www.puppetlabs.com/
> > downloads/learning/learn_puppet_centos_ovf.2011.07.15.tar.bz). When
> > asked to write a manifest that ensures httpd is running, I wrote:
> >
> >     service { 'httpd':
> >       ensure => running,
> >       enable => true,
> >     }
> >
> > I named this manifest "httpd.pp". When I ran `puppet apply httpd.pp`
> > nothing happens. If I rename this manifest to something else `puppet
> > apply` works as I would expect.
>
> puppet apply --debug --verbose httpd.pp
>
> If the service is already running and enabled then puppet won't do
> anything.
>
> > This was/is extremely confusing. I figured what better way to name the
> > manifest than to name the service it's ensuring. Is this a known
> > issue? Documentation problem? Something else?
>
> I don't know that filenames of manifests affect anything. Running with
> debug and verbose flags as above will show you more about what's going on.
>
> > Thanks for you help.
> >
> > Matthew
> >
> > --
> > 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@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.
> >
> >
>
> --
> 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@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.
>
>

-- 
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@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.

Reply via email to