[Puppet Users] Re: puppetlabs-tomcat plugin configuration question

2017-06-23 Thread judy wawira
Hello 

I seem to run in a similar issue --- with an error of 
Tomcat::Service['default' ] duplicate declaration 



On Monday, November 3, 2014 at 3:16:52 PM UTC-5, Ed Young wrote:
>
> The plugin requires the EPEL repo so I had to install that with this 
> plugin: 
> https://forge.puppetlabs.com/stahnma/epel
>
> That solved many of the issues. 
>
>
>
>
> On Sun, Nov 2, 2014 at 10:26 AM, Ed Young  > wrote:
>
>> How do I configure the tomcat plugin? 
>> Do I execute the examples code fragments? If so, how are they executed? 
>>
>>  RE: 
>> https://github.com/puppetlabs/puppetlabs-tomcat#beginning-with-tomcat
>>
>> It looks like the code fragments in the examples directory correspond to 
>> the instructions above. 
>> ../modules/tomcat/examples/default_install_from_package.pp
>>
>> I've installed the plugin, but I don't get how to configure it per the 
>> instructions and code snippets: 
>> "The simplest way to get Tomcat up and running with the tomcat module is 
>> to install the Tomcat package from EPEL,
>> class { 'tomcat':
>> install_from_source => false,
>> }
>> class { 'epel': }->
>> tomcat::instance{ 'default':
>> package_name => 'tomcat',
>> }->
>> and then start the service.
>> tomcat::service { 'default':
>> use_jsvc => false,
>> use_init => true,
>> service_name => 'tomcat',
>>
>> }
>>
>> I'm pretty experienced using puppet, and rolling my own modules, but not 
>> with using puppetlabs modules and need some pointers on this please. 
>>
>>
>>
>
>
> -- 
> - Ed
>

-- 
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/9f92769e-8dc5-4c08-a65c-29f771e973ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Service set to stopped causes error when the service doesn't exist on Windows

2017-06-23 Thread Josh Cooper
On Thu, Jun 22, 2017 at 9:03 AM, jmp242  wrote:

> I want to make sure Firefox isn't automatically updating itself on our
> Windows computers. In most instances, if I have a service set to stopped,
> not having it installed should equal the same thing. How could I express
> either is OK in Puppet?
>
>   service { 'FirefoxUpdateService':
> name   => 'mozillamaintenance',
> ensure => stopped,
>   }
>
> is throwing an error on my systems that don't seem to have that
> service What's the right solution here?
>
> Thanks,
>
> --
> 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/c6e6ac99-3918-44cb-a8a2-328239db86e8%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

Sounds like you're running into
https://tickets.puppetlabs.com/browse/PUP-6822. I recommend voting for the
ticket and adding yourself as a watcher.

Josh

-- 
Josh Cooper | Software Engineer
j...@puppet.com | @coopjn

-- 
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/CA%2Bu97un53BPFkdKw9CWRHAEv40s7zacuS7S-r87n6zdbGoCuug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] getvar and case

2017-06-23 Thread Ugo Bellavance


On Friday, June 23, 2017 at 2:01:46 AM UTC-4, R.I. Pienaar wrote:
>
> You don't mention your versions but on the last 2 years of versions - i.e. 
> 4 - do: 
>
> $facts["zend_application_name_${user_app_name}"] 
>
>
It looks like the facts are all forced downcase 
(https://tickets.puppetlabs.com/browse/FACT-777).

I changed

$directive_value_fact   = getvar("::zend_directive_fileValue_${name}")

to

$directive_value_fact   = getvar("::zend_directive_filevalue_${name}")

and it seems to be working.

I'll have to find a way to do a downcase on the variables and I think it'll 
be ok.

I'll try to think about posting my final results for the community's 
benefit.

Thanks,

-- 
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/6370ae09-4938-4b72-bdde-3cd85c1888df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] getvar and case

2017-06-23 Thread Ugo Bellavance


On Friday, June 23, 2017 at 2:01:46 AM UTC-4, R.I. Pienaar wrote:
>
> You don't mention your versions but on the last 2 years of versions - i.e. 
> 4 - do: 
>
> $facts["zend_application_name_${user_app_name}"] 
>

Unfortunately, I'm still on Puppet 3.8.  I know that Puppet 3 is EOL and 
Puppet 5 is already available (at least as beta), but I've been swamped 
with work and didn't have time to start to plan my migration yet. I have 
installed Puppet 4 on a server, but that's about how far I could go for 
now.  If I could solve this specific problem, I'll have about 98% of this 
task done so I'm just about to be able to start to work with a more recent 
version of puppet.

Thanks,
 

>
> --- 
> R.I.Pienaar 
>
> > On 23 Jun 2017, at 05:03, Ugo Bellavance > 
> wrote: 
> > 
> > zend_application_name_${user_app_name} 
>
>

-- 
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/92d689bb-7494-406f-a93b-d2ffcc64a303%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.