On Wed, Aug 13, 2014 at 8:22 AM, randal cobb <rco...@gmail.com> wrote:
> from this manifest entry: > augeas { 'apache2': > context => "/files/etc/sysconfig/apache2", > lens => "sysconfig.lns", > incl => '/usr/share/augeas/lenses/dist/', > changes => > 'set APACHE_MODULES \'"actions alias auth_basic > authn_file authz_host authz_groupfile authz_user autoindex cgi dir env > expires include log_config mime negotiation setenvif ssl userdir reqtimeout > authn_core authz_core status asis auth_digest headers proxy proxy_http > rewrite vhost_alias authz_default proxy_balancer"\'', > } > Try instead: augeas { 'apache2': incl => '/etc/sysconfig/apache2', lens => 'Sysconfig.lns', changes => ... } You probably don't *need* either the "incl" or "lens" parameters but my experience is that agent performance is absymal without them; otherwise Augeas will scan and load all of the files it knows about when it starts up, which is slow -- and coupled with the fact the Puppet provider creates a new Augeas instance for every resource (unless this bug has been fixed), it's really slow. You might find more help with the Augeas guide: https://docs.puppetlabs.com/guides/augeas.html As others have said, Augeas can be tough to get your head around, in part because there are at least 4 or 5 different "languages" involved, some of which are confusingly similar or bleed into each other: - Lens schema language - Path expressions (and the link to the path expression doc is buried in the "Tree" page and 404 anyway; should be https://github.com/hercules-team/augeas/wiki/Path-expressions) - Tree structure & magic control files under "/augeas" - Tree manipulation and query commands which are similar but not wholly isomorphic: - "augtool" commands - Puppet parameters for Augeas type - Language bindings aka "public API": C, Ruby To effectively test and develop Puppet resources, you need everything EXCEPT the lens schema language. Unfortunately, if you click the "Documentation" link on augeas.net, only the first sub-items are NOT related to lens schema development. And docs extracted under "Stock Lenses" is a muddle of both. Wil -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAMmm3r5511CS4cadWxMZ-A6wcxd6x5HZZLaMm3K6AJaOeFD9Pg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.