Of course this works exactly as it should. The trick appears to be to remember to point your puppet client at the correct environment.
On Thu, Apr 22, 2010 at 5:39 PM, Ben Beuchler <ins...@gmail.com> wrote: > In the class shown below, shouldn't the files always be created after > installing "apparmor-utils" and "apparmor-profiles"? In my > environment I'm frequently seeing puppet attempt to install one fo the > files before the package has been installed. This throws an error, as > the package is responsible for creating the /etc/apparmor.d directory. > > I know I could work around the problem by adding "/etc/apparmor.d" to > the list of files, but I'm confused why the class doesn't already work > as shown. > > Puppet 0.25.4 on Ubuntu 8.04. > > Any thoughts? > > The class: > > class apparmor { > package { > "apparmor": ensure => installed; > "apparmor-utils": ensure => installed; > "apparmor-profiles": ensure => installed; > } > > File { > require => [ Package["apparmor-utils"], > Package["apparmor-profiles"] > ] > } > > file { > "/etc/apparmor.d/overrides": > ensure => directory; > "/etc/apparmor.d/templates": > ensure => directory; > "/etc/apparmor.d/abstractions/nameservice": > source => "puppet:///modules/apparmor/abstractions/nameservice"; > "/etc/apparmor.d/abstractions/perl": > source => "puppet:///modules/apparmor/abstractions/perl"; > "/etc/apparmor.d/abstractions/python": > source => "puppet:///modules/apparmor/abstractions/python"; > } > > apparmor::profile { > "usr.sbin.nscd": > source => "puppet:///apparmor/usr.sbin.nscd"; > } > } > -- 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.