Morgan,

I tried using the chaining, but I still get the error on the client (and 
back on the master).  Here is what my node manifest looks like:

node 'test-rest-portal' {
  class { 'java':
    distribution => 'jre',
  }
  class{ 'augeas': }->
  class { 'tomcat': }->
  tomcat::instance { 'default':
    source_url => 
'http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.16/bin/apache-tomcat-7.0.16.tar.gz',
    catalina_base => '/usr/share/tomcat7',
  }->
  tomcat::service { 'default':
    use_init => true,
    service_name => 'tomcat7',
  }->
  tomcat::config::server::connector { 'http-80':
    port => '80',
    protocol => 'HTTP/1.1',
    additional_attributes => {
      'redirectPort' => '443',
      'executor' => 'tomcatThreadPool',
      'connectionTimeout' => '20000'
    }
  }->
  tomcat::config::server::connector { 'https-443':
    port => '443',
    protocol => 'HTTP/1.1',
    additional_attributes => {
      'SSLEnabled' => 'true',
      'scheme' => 'https',
      'secure' => 'true',
      'clientAuth' => 'false',
      'sslProtocol' => 'TLS',
      'ciphers' => 'TLS_RSA_WITH_AES_128_CBC_SHA'
    }
  }
}

It seems including the connector sub class is what causes the augeas 
exception, which happens when the catalog is compiled:

Aug 27 14:33:57 puppet puppet-master[21853]: Server configurations require 
Augeas >= 1.0.0 at 
/etc/puppet/modules/tomcat/manifests/config/server/connector.pp:28 on node 
test-rest-portal

I appreciate any help you can provide.

Thanks,
Trey

On Tuesday, August 26, 2014 1:56:15 PM UTC-4, Morgan Haskel wrote:
>
> 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] 
> <javascript:>> 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] <javascript:>.
>> 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] <javascript:>
> 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/601699d0-c022-4ca0-b426-8f718e422199%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to