Trey,

Augeas is an optional dependency for puppet, but is a requirement for the
puppetlabs-tomcat module.

You could also use chaining arrows[1] to specify the dependency, something
like:

class { 'augeas': } -> class { 'tomcat': }

---
1:
https://docs.puppetlabs.com/puppet/latest/reference/lang_relationships.html#chaining-arrows

On Tue, Aug 26, 2014 at 12:30 PM, Trey Duskin <[email protected]> wrote:

> Morgan,
>
> Thanks for the reply.  So, is augeas a prerequisite for Puppet?  If so,
> why isn't it installed as a dependency?
>
> I have tried using the camptocamp/puppet-augeas module to install augeas
> for me, but it seems that I would have to comment out the tomcat stuff in
> my node definition and put just 'include augeas', do a puppet run, and then
> uncomment the tomcat stuff and do another run.  Is there a better way of
> doing this?
>
> Trey
>
> On Monday, August 25, 2014 3:01:00 PM UTC-4, Morgan Haskel wrote:
>
>> Trey,
>>
>> The '>= 1.0.0' is referring to the libaugeas version, and it's based on
>> the `augeasversion` fact.  You'll need to have augeas installed on the node
>> you're trying to include tomcat on.
>>
>> Morgan
>>
>>
>> On Sun, Aug 24, 2014 at 12:38 PM, Trey Duskin <[email protected]> wrote:
>>
>>> Hi all,
>>>
>>> I'm trying to get a module to work (puppetlabs-tomcat) which uses Augeas
>>> to manage a config file.  However, whenever I try to compile the manifest
>>> which includes this module, I get an error on the puppet master:
>>>
>>> Server configurations require Augeas >= 1.0.0 at
>>> /etc/puppet/modules/tomcat/manifests/config/server/connector.pp:28
>>>
>>> I have installed augeas on the puppet master machine using the
>>> camptocamp-augeas module as follows in my site.pp:
>>>
>>> node 'puppet' {
>>>   include augeas
>>> }
>>>
>>> From the documentation, I think this is all I need to do to get Augeas
>>> installed on the puppet master so it can use the augeas support.  dpkg -l
>>> seems to confirm this:
>>>
>>> ubuntu@puppet:~$ dpkg -l | grep augeas
>>> ii  augeas-lenses                    1.2.0-0ubuntu1                all
>>>        Set of lenses needed by libaugeas0 to parse config files
>>> ii  augeas-tools                     1.2.0-0ubuntu1.1              amd64
>>>        Augeas command line tools
>>> ii  libaugeas-ruby1.9.1              0.5.0-2                       all
>>>        Transitional package for ruby-augeas
>>> ii  libaugeas0                       1.2.0-0ubuntu1                amd64
>>>        Augeas configuration editing library and API
>>> ii  ruby-augeas                      0.5.0-2                       amd64
>>>        Augeas bindings for the Ruby language
>>>
>>> However, I keep getting this error.  Is the ">= 1.0.0" message referring
>>> to the version of the ruby bindings?  Or am I missing something else
>>> entirely?
>>>
>>> I am using puppetmaster and puppet agent directly from the Puppet Labs
>>> APT repo, which gave me 3.6.2
>>>
>>> Thanks in advance,
>>> Trey
>>>
>>> --
>>> 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 [email protected].
>>>
>>> To view this discussion on the web visit https://groups.google.com/d/
>>> msgid/puppet-users/7b385fdc-8660-4765-89ae-dd7fdca2f4d1%
>>> 40googlegroups.com
>>> <https://groups.google.com/d/msgid/puppet-users/7b385fdc-8660-4765-89ae-dd7fdca2f4d1%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Morgan Haskel
>> [email protected]
>> Module Engineer
>>
>> *Join us at PuppetConf 2014 <http://www.puppetconf.com/>, September
>> 20-24 in San Francisco*
>> *Register by September 8th to take advantage of the Final Countdown
>> <https://www.eventbrite.com/e/puppetconf-2014-tickets-7666774529?discount=FinalCountdown>
>>  *
>> *—**save $149!*
>>
>  --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/0c095c81-fb2d-40f4-8039-e97b5bf83c14%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/0c095c81-fb2d-40f4-8039-e97b5bf83c14%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Morgan Haskel
[email protected]
Module Engineer

*Join us at PuppetConf 2014 <http://www.puppetconf.com/>, September
20-24 in San Francisco*
*Register by September 8th to take advantage of the Final Countdown
<https://www.eventbrite.com/e/puppetconf-2014-tickets-7666774529?discount=FinalCountdown>
*
*—**save $149!*

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CA%2BFnDv0Un-RArZYUJOj%3DZ5LbB9v5q8JKXCSabZY_anWtKaMiqg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to