Re: [Puppet Users] Puppet Open Source with own Certificates

2015-03-18 Thread hoize
Hi! After a few hours of trial and error my problem is solved. Here is the Solution: /etc/apache2/sites-enabled/02-foreman.conf: SSLEngine on SSLCertificateFile #Here you have to use SSLCertificateKeyFile #your own signed certificate + key /etc/puppet/foreman.yaml: ...

Re: [Puppet Users] how to install multiple packages from the list

2015-03-18 Thread Garrett Honeycutt
On 3/13/15 10:45 AM, Alex Miroshnik wrote: Hi Guys, I need to install multiple packages on the Ubuntu 14.0.4 using puppet. All packages are listed in the file (about 100 packages) one package name on the row. Is this possible? If it is possible, could you please give me a hint how to do

[Puppet Users] Re: hiera and variable hash array

2015-03-18 Thread Patrick Robinson
The ruby call you're looking for is each_pair used like this: % scope.lookupvar('hash').each_pair do |key,value| -% %= key % = %= value % % end -% On Sunday, March 15, 2015 at 9:16:08 PM UTC+11, Luca Gervasi wrote: Hello, i'm trying to achieve aconfiguration where i can applt a non

[Puppet Users] Re: how to install multiple packages from the list

2015-03-18 Thread Patrick Robinson
I would consider using something like hiera and loading the packages from a YAML file. It is trivial to convert your existing file to YAML. On Friday, March 13, 2015 at 10:15:07 PM UTC+11, Alex Miroshnik wrote: Hi Guys, I need to install multiple packages on the Ubuntu 14.0.4 using puppet.

[Puppet Users] Re: Facts which depend on (not-yet-installed) packages

2015-03-18 Thread jcbollinger
On Tuesday, March 17, 2015 at 10:46:05 PM UTC-5, Alex Harvey wrote: Can't you avoid this problem altogether by determining the PHP version in your custom provider code? Then you wouldn't need a custom fact at all, and in your manifest, have the custom type require the PHP package. Great

[Puppet Users] Re: Facts which depend on (not-yet-installed) packages

2015-03-18 Thread Alex Harvey
Have a look at how the build in RPM provider works, for instance: https://github.com/puppetlabs/puppet/blob/master/lib/puppet/provider/package/rpm.rb#L37 On Wednesday, March 18, 2015 at 2:46:05 PM UTC+11, Alex Harvey wrote: Can't you avoid this problem altogether by determining the PHP version

[Puppet Users] Re: Question about directory environment setting.

2015-03-18 Thread Hiu
hi Alex, thanks for getting it works. But, what is the reasons having environment.conf? Under which type of circumstance that we need this configuration file? Thanks Again! -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe

[Puppet Users] Hiera testing

2015-03-18 Thread Alfredo De Luca
Hi all. I am testing hiera in our enviroment and I wonder if I can manage everything from hiera without using the main site.pp. Do you think is the right way? or I should use site.pp as well? Here is what I am testing and so far so good. - hiera.yaml --- :backends: - yaml :hierarchy:

[Puppet Users] Getting the facter value of $mount from $partitions.

2015-03-18 Thread Hiu
hi all, I am wondering if I would like to retrieve the mount points values from the facter. From the facter -p, I can see that I do have the information. e.g. partitions = { sda1={ mount=/boot, uuid=4e5014d1-080a-4182-aa89-bc83159b85fb, filesystem=ext4, size=614400}, sda2={ mount=/,

[Puppet Users] Re: Question about directory environment setting.

2015-03-18 Thread Alex Harvey
On Thursday, March 19, 2015 at 11:50:08 AM UTC+11, Hiu wrote: hi Alex, thanks for getting it works. But, what is the reasons having environment.conf? Under which type of circumstance that we need this configuration file? Thanks Again! As you can see from the documentation, environments

Re: [Puppet Users] Questions about PE

2015-03-18 Thread Peter Berghold
Thanks for the answers. I'll be having my support team build me another VM to evaluate PE on. Wish we had gone this way six months ago. On Tue, Mar 17, 2015 at 10:00 PM Rilindo Foster rili...@gmail.com wrote: 1) Does it work with Foreman? Yes, though if you are not using Foreman for

[Puppet Users] Re: hiera - multiple backends - failure to lookup value in only one backend.

2015-03-18 Thread Brett Swift
and to add one more thing - I do see some values coming out of the second backend - out of the role level.. but not everything. I don't know how this could be getting some but not all.. Maybe I have my wires crossed on something, but I think everything is in place... On Wednesday,

[Puppet Users] testing and roles/profiles

2015-03-18 Thread Johan De Wit
Hi all, Looking for some best practice, guideline, documentation puppet testing in all its aspect, sometimes I try to figure out the following : How does one tests roles and profiles ? Do we still write rspec-puppet for profiles ? Since we are using modules that have there own unit (rspec)

[Puppet Users] hiera - multiple backends - failure to lookup value in only one backend.

2015-03-18 Thread Brett Swift
I've found the time to deliver a multiple hiera backend for our ops guys, and I'm seeing some weird behaviour. With a single backend, it works great - add host level configs in the host hierarchy, and common stuff in what we had a 'role' hierarchy. I have since split the backends, so there is