Re: [Puppet Users] How puppet install another version of the same package.

2014-03-05 Thread Flamarion Jorge
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Hi,

I have same "problem" and my workaround, until discovery solution,has
been to use a "exec" function and run yum command.

This works for me.

Flamarion Jorge

Em 05/03/14 03:42, shlo.af...@gmail.com escreveu:
> 
> 
> Hi I want to install same package with a 2 different version like:
> 
> libstdc++-4.4.7-3.el6.i686 libstdc++-4.4.7-3.el6.x86_64
> 
> 
> I put it in puppet init file and when I run puppet I get:
> 
> err: /Package[libstdc++]/ensure: change from 4.4.7-3.el6 to 
> 4.4.7-4.el6.i686 failed: Could not update: Execution of 
> '/usr/bin/yum -d 0 -e 0 -y install libstdc++-4.4.7-4.el6.i686' 
> returned 1: Error:  Multilib version problems found. This often 
> means that the root cause is something else and multilib version 
> checking is just pointing out that there is a problem.
> 
> 
> I have libstdc++-4.4.7-3.el6.x86_64 installed already. When I run
> yum from the command like it run okay and install both version. 
> What I can do to make puppet install it too.
> 
> 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 
> <mailto:puppet-users+unsubscr...@googlegroups.com>. To view this
> discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/c2318c1f-25a9-442d-867e-336ebd5aeceb%40googlegroups.com
>
> 
<https://groups.google.com/d/msgid/puppet-users/c2318c1f-25a9-442d-867e-336ebd5aeceb%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/groups/opt_out.
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.22 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTFvzXAAoJEJhPZF0zwv0zn2sP/iaoowsgzbewTQfF3Wlt0kj1
6TxXGgmGo8Gy6AaLC2pmPj484WYUEbSgJkbA3Rbj5caqdLNiJzZ2EdtF5PAWY+tt
7OGwMaANETL52mgopJ+ApEIPw2pBY04NV4yfKSwhz8aN3jG2W2AnyCYvn9D+4feT
lvDcycZQ9wW0UbRzq8UQ1nEWwwJcaDzbnBpE2C4yMRwiNr1tpjTCmP4T5M9YRY3h
ptrlCcCEWahF3RscbQqHG5M+vFS5JKZmfSiqBNNRE/s4EWKDN1i2kKCz3bLmoRt+
Dy/Sf0eD7mBeU4LqU1BDO6cvxXQJKMDHBe7RsqtNJYdV42ibzNupuA8ZB0X418PH
73aLWVzeiWJ46+utfFOSL//wntNDbCWfaH3w6sKulWoXjfHdk7hO1JLIwk84kKaU
RuWx2PAaLo1Jn9aWshfpWybgYRdFASMqWdf4/ZeG9FaBv4RuHN3P6IOJB1Bks+zf
fbHR3TnpTTjjRTWRnq04eOVkNe0EJSfYtJ2OwCGU4pWUARDi3CVKGZuPin85k/i5
7hQ5ESJMH6MERbcnHFP1T7jYgBG7d7g/sLaqLt+S5xq6YYefak6ZSa+Qt5EX81iI
1QIhNgX+FfRnLSyAJwiezGpbTDSzESNtjWvAG2vjGZNVYDiNHjs/Yj35JkhiXeKl
y8inW+s7zvhWyW0GVA6I
=OVro
-END PGP SIGNATURE-

-- 
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/5316FCD7.7080901%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Install puppetDB on already deployed environment

2014-08-18 Thread Flamarion Jorge
Did you setup route.yml ?

Flamarion Jorge
Sent from my mobile
Em 18/08/2014 02:05, "Vikas Kumar"  escreveu:

> Hello everyone,
>
> I have a puppetmaster v3.6.2-1 installed on Ubuntu 14.04 x86_64 server. I
> am using passenger (apache2) instead of Webrick.
>
> root@puppet:~# /etc/init.d/puppetmaster status
>  * master is not running
> root@puppet:~#
> root@puppet:~# /etc/init.d/apache2 status
>  * apache2 is running
> root@puppet:~#
>
>
> I am trying to install puppetdb via a module
> <https://docs.puppetlabs.com/puppetdb/2.1/install_via_module.html>, but
> after installing the module I ran 'puppet agent -t' command and encountered
> below errors.
>
> root@puppet:~# puppet agent -t
> Info: Retrieving pluginfacts
> Info: Retrieving plugin
> ...
> ...
> Info: Caching catalog for puppet.test.com
> Info: Applying configuration version '1408337383'
> Notice: Unable to connect to puppetdb server (puppet.test.com:8081):
> Connection refused - connect(2)
> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry
> Notice: Unable to connect to puppetdb server (puppet.test.com:8081):
> Connection refused - connect(2)
> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry
> Notice: Unable to connect to puppetdb server (puppet.test.com:8081):
> Connection refused - connect(2)
> Notice: Failed to connect to puppetdb; sleeping 2 seconds before retry
> ^CNotice: Caught INT; calling stop
> root@puppet:~#
>
> I checked that port 8081 is not being used by any daemon.
>
> root@puppet:~# netstat -an | grep 8081
> root@puppet:~# telnet 192.168.1.99 8081
> Trying 192.168.1.99...
> telnet: Unable to connect to remote host: Connection refused
> root@puppet:~#
>
> Please help me out to troubleshoot this.
>
> Regards,
> Vikas
>
>  --
> 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/0fb35b85-6b24-47d5-a8a3-c632c0869956%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/0fb35b85-6b24-47d5-a8a3-c632c0869956%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: [Puppet Users] How can we find out the directory presence?

2014-08-18 Thread Flamarion Jorge
File { " /etc/puppet/test":
ensure => "directory",
unless => 'test -d /etc/puppet/test'
}

Flamarion Jorge
Sent from my mobile
Em 18/08/2014 09:05, "Satish Katuru"  escreveu:

Hi ,

I wanted to find out whether the directory exists or not in the machine.How
can I do it?

if I do it as below it will create a directory:

File { " /etc/puppet/test":
ensure => "directory",

}



 --
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/6f8d03fb-8d97-4832-a3b7-70868132c451%40googlegroups.com
<https://groups.google.com/d/msgid/puppet-users/6f8d03fb-8d97-4832-a3b7-70868132c451%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.

-- 
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%2Bx2bU37jc8pkVaZTF%2BLux38%2BKB%3DeJ%2BV93XR5%3DV55w%2B2TNASxg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] How can we find out the directory presence?

2014-08-19 Thread Flamarion Jorge
Ok. I'm sorry.  Here other way.

exec { "create dir":

command => 'mkdir -p /etc/puppet/test'
unless => 'test -d /etc/puppet/test'
..
}

Now your directory will be created if it doesn't exist.

Flamarion Jorge
Sent from my mobile
Em 19/08/2014 15:02, "Yanis Guenane"  escreveu:

> Jorge,
>
> This is wrong. unless is not a parameter of the file resource
>
> https://docs.puppetlabs.com/references/latest/type.html#file
>
> unless applies only to the exec resource.
>
> --
> Yanis Guenane
>
> On 08/18/2014 05:21 PM, Flamarion Jorge wrote:
> > File { " /etc/puppet/test":
> > ensure => "directory",
> > unless => 'test -d /etc/puppet/test'
> > }
> >
> > Flamarion Jorge
> > Sent from my mobile
> > Em 18/08/2014 09:05, "Satish Katuru"  escreveu:
> >
> > Hi ,
> >
> > I wanted to find out whether the directory exists or not in the
> machine.How
> > can I do it?
> >
> > if I do it as below it will create a directory:
> >
> > File { " /etc/puppet/test":
> > ensure => "directory",
> >
> > }
> >
> >
> >
> >  --
> > 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/6f8d03fb-8d97-4832-a3b7-70868132c451%40googlegroups.com
> > <
> https://groups.google.com/d/msgid/puppet-users/6f8d03fb-8d97-4832-a3b7-70868132c451%40googlegroups.com?utm_medium=email&utm_source=footer
> >
> > .
> > For more options, visit https://groups.google.com/d/optout.
> >
>
> --
> 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/53F3912C.50504%40gmail.com.
> For more options, visit https://groups.google.com/d/optout.
>

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


Re: [Puppet Users] puppet resource ordering/execution kungfu

2014-08-20 Thread Flamarion Jorge
Inside of your lib/facter directory you could write a facter for check if
package is already installed and use a top scope variable provide by facter
to do an if in your class for test it.

If the package is installed (true) don't do anything else if (false)
install it else {}.

Sorry for my bad English written from my mobile.

Flamarion Jorge
Sent from my mobile
Em 20/08/2014 09:04, "Stefan Wiederoder" 
escreveu:

> Hello puppet users,
>
> I´m struggling with puppets resource odering 
>
> my task is to install the QConvergeConsoleCLI rpm, which needs /tmp as
> executable - which is per default noexec on our boxes.
>
> but adding a require to the package instruction will always mount /tmp as
> executable even if the package is already installed?
> package { [ "QConvergeConsoleCLI" ]: ensure => installed, require =>
> Exec['execmount']; }
>
> is there any chance to trigger the require ONLY if the package is NOT
> installed?
>
>
> bye
> ,
> Stefan
>
> --
> 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/48d0074b-9494-4a12-a3cb-87a83d97314d%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/48d0074b-9494-4a12-a3cb-87a83d97314d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

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