[Puppet Users] Puppet copy not working

2014-07-11 Thread Nishantu Kumar
Hello All, I have successfully configured puppet master and agent on two machines and i have created a file in manifest directory to copy a file from master server to agent machine but its not copying and throwing some error, can anyone tell me and share with me the procedure to copy file from

[Puppet Users] Error to install java7

2014-07-11 Thread Joni Silaban
Hello guys,, please help me to solve this error. What should I do? I have set the file mode is 777 [just for test] but the error was same. Thank you... -- You received this message becau

[Puppet Users] Error_Install_Java7

2014-07-11 Thread Joni Silaban
Guys, Please help me to solve the error like picture Thank you -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this

[Puppet Users] Re: Duplicate declaration with nested create_resources

2014-07-11 Thread jcbollinger
On Thursday, July 10, 2014 9:03:14 AM UTC-5, Joao Morais wrote: > > > Hello list, I have some services that may be duplicated in some machines. > They are much like an Apache vhost. In order to remove details from my > manifests, I moved the service names to ENC because they are > machine-depe

[Puppet Users] Checking a variable is not 'undef'

2014-07-11 Thread Chris Cowley
OK, so what it the recommended way to do this? Somehow it is not something I have come up against before, I have the impression that it is a lot harder than simply: if $variable { do stuff } I've had a look through stdlib and it does not seem to have anything that helps here (if that is the

Re: [Puppet Users] Re: Puppet-Dashboard All Nodes "Unresponsive", Background Tasks

2014-07-11 Thread Ximena Cardinali
Hello Ramin, thanks for your answer. I just wanted to say that varchar(65536) is mediumtext. As you can see in the table descriptions: mysql> describe report_logs; +---+--+--+-+-++ | Field | Type | Null | Key | Default | Extra

[Puppet Users] Re: Checking a variable is not 'undef'

2014-07-11 Thread Matthew Haughton
As noted at http://docs.puppetlabs.com/puppet/latest/reference/lang_datatypes.html#undef, "When used as a boolean, undef is false." So you can definitely use an if statement that way. On Friday, 11 July 2014 10:38:41 UTC-4, Chris Cowley wrote: > > OK, so what it the recommended way to do this?

[Puppet Users] Re: Puppet uses catalog of node B for node A

2014-07-11 Thread Helmut Rickel
Hello John, I saw that a class was installed on node A that only node B was supposed to use. My holidays started right today so I will check this in detail right afterwards and give you a reply. Thanks for your help! Helmut Am Mittwoch, 9. Juli 2014 10:08:58 UTC+2 schrieb Helmut Rickel: > > H

Re: [Puppet Users] Custom Types and Providers

2014-07-11 Thread Rob Reynolds
On Thu, Jul 10, 2014 at 7:43 PM, Michael Legleux wrote: > Using puppet 3.62 > > Trying to follow along with the book > At one point (beginning of ch. 3), it says using irb: > > >> require 'puppet' > >> Puppet::Type.type(:package) > => Puppet::Type::Package > My output is identical > However the n

Re: [Puppet Users] Re: Checking a variable is not 'undef'

2014-07-11 Thread José Luis Ledesma
But also and empty variable is false. When I just one to check undef I do if $var!=undef { Do stuff } El 11/07/2014 18:16, "Matthew Haughton" escribió: > As noted at > http://docs.puppetlabs.com/puppet/latest/reference/lang_datatypes.html#undef, > "When used as a boolean, undef is false." > >

Re: [Puppet Users] Puppet copy not working

2014-07-11 Thread Rich Burroughs
http://docs.puppetlabs.com/guides/file_serving.html Rich On Friday, July 11, 2014, Nishantu Kumar wrote: > Hello All, > > I have successfully configured puppet master and agent on two machines and > i have created a file in manifest directory to copy a file from master > server to agent machin

Re: [Puppet Users] Unit testing reference modules and best practices

2014-07-11 Thread Hunter Haugen
We try hard to use rspec-puppet in effective ways, but you may still see some over-testing in the supported modules nonetheless :). We use rspec-puppet to test that: 1. Manifests compile and templates parse (catches a lot of problems) 2. Conditional logic in manifests follows the expected paths f

Re: [Puppet Users] Custom Types and Providers

2014-07-11 Thread Michael Legleux
I tried starting irb from various places along that tree and as my user and root. The /etc/puppet/modules/example/lib/puppet/provider/custom_package/apt.rb file contains: Puppet::Type.type(:custom_package).provide(:apt) do def exists? end def create end def destroy end end end On

Re: [Puppet Users] Dealing with Packages on Windows that contain special characters

2014-07-11 Thread Ken Sykora
Sorry for the late reply, Rob. Putting the endash as a unicode character in my manifest causes it to miss the package being already installed. file { "${tempDirectory}WindowsAzureLibsForNet-x64.msi": ensure => present, source => 'puppet:///modules/packages/WindowsAzureLibsForNet-x64.ms

Re: [Puppet Users] Dealing with Packages on Windows that contain special characters

2014-07-11 Thread Ken Sykora
Also I'm noticing that on successful runs with the UTF-8 character I get this error: Error: Failed to apply catalog: incompatible character encodings: UTF-8 and IBM437 On Friday, July 11, 2014 2:57:13 PM UTC-5, Ken Sykora wrote: > > Sorry for the late reply, Rob. > > Putting the endash as a uni

Re: [Puppet Users] Puppet copy not working

2014-07-11 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/11/2014 08:09 PM, Rich Burroughs wrote: > http://docs.puppetlabs.com/guides/file_serving.html If you intend to get more help than this, it might be worth thinking about what others could get from your statement "it throws some error". Btw: It w

Re: [Puppet Users] Error to install java7

2014-07-11 Thread Hunter Haugen
The path it is trying to download is /java7/files/jdk-7us-linux-i586.tar.gz . Is this where the file is located? Are all parent directories executable (and perhaps readable) by the user which your puppet master runs as? (Usually that user is 'puppet' or 'pe-puppet'.) -Hunter On Fri, Jul 11, 20