Re: [Puppet Users] [Roles/Profiles] when a technology module doesn't already exist - seeking opinions

2020-06-09 Thread Ramin K
Role/Profiles not binary choice within the system, it's "does this specific module in my environment need business logic. Example from my environment. Most of the time you don't need to care about chrony. It runs, no logic required. In our case we want to sync with the ptp clock in certain cas

Re: [Puppet Users] [Roles/Profiles] when a technology module doesn't already exist - seeking opinions

2020-06-09 Thread Ramin K
Make a module. When the complexity of managing the modules resources within your environment become complex enough to warrant it, make a profile containing your business logic to wrap that module. The cons in your first example, extra work and duplication, do not exist. Profiles are entirely o

Re: [Puppet Users] legitimate puppet code?

2020-02-10 Thread Ramin K
Looks like single quoting params is causing the problem. This passes validation class { 'cis::iptables::configure': level => $level, type => $type, roles => $roles, } Ramin On 2/10/2020 12:38 PM, 'Prentice Bisbal' via Puppet Users wrote: Is this legitimate puppet code? I'm try

Re: [Puppet Users] Resource ordering not working for module classes (top-level)

2019-11-26 Thread Ramin K
You're running afoul of class containment or more precisely the lack thereof. Covered here https://puppet.com/blog/class-containment-puppet/ You can swap 'include ipvsadm::config' for 'contain ipvsadm::config' though you may need more contain statements. If they are third party modules you'd p

Re: [Puppet Users] puppet server connection limit / throttling ?

2019-10-09 Thread Ramin K
I'd look at general tuning as a first step. From puppetserver.conf 450 servers every 30 minutes is 4s. If catalog compile is taking longer than 4s a single core instance is likely falling behind. I believe Puppet recommends 4 core minimum to handle OS, JVM, garbage collection, etc. Distributin

Re: [Puppet Users] Re: How to set puppetserver to listen on two IPs?

2018-06-21 Thread Ramin K
On 6/21/18 5:53 AM, jcbollinger wrote: On Wednesday, June 20, 2018 at 7:54:20 AM UTC-5, Jakov Sosic wrote: Hi guys, [root@host ~]# cat /etc/puppetlabs/puppetserver/conf.d/webserver.conf webserver: {     access-log-config: /etc/puppetlabs/puppetserver/request-logging.xml   

Re: [Puppet Users] Style (syntax?) question

2018-06-05 Thread Ramin K
On 6/5/2018 6:01 AM, jcbollinger wrote: On Monday, June 4, 2018 at 1:06:52 PM UTC-5, Ramin K wrote: On 6/4/18 8:25 AM, Peter Berghold wrote: > I was looking at someone else's code one day last week and saw a pattern > I've not seen before. Maybe that&

Re: [Puppet Users] Style (syntax?) question

2018-06-04 Thread Ramin K
On 6/4/18 8:25 AM, Peter Berghold wrote: I was looking at someone else's code one day last week and saw a pattern I've not seen before. Maybe that's what I get for developing Puppet code in a vacuum. :-) class someclass (     $parm1 = $::someclass::params::parm1,     $parm2 = $::someclass::p

Re: [Puppet Users] General performance questions in Puppetserver 2.8

2018-02-11 Thread Ramin K
ems to have resolved all our performance problem. Now our catalog application time is about 50% faster than on our old Puppet3 infrastructures (we've also switch all our agent to Puppet4). Best regards, Le 11/02/2018 à 02:39, Ramin K a écrit : tos 6 running Puppet 3.8.x. Ruby 1.8.7 so no http

[Puppet Users] General performance questions in Puppetserver 2.8

2018-02-10 Thread Ramin K
We recently switched a large codebase with a lot of history over to Puppet 4.10. Performance of the new servers is significantly slower than the old Apache/Passenger system, roughly half. I have a list of possible causes and general cleanup to do, but was hoping the community could help me orde

Re: [Puppet Users] Is hiera broken in FOSS Puppet 3.7.2?

2017-09-26 Thread Ramin K
Puppet 4 ships as an all in one package so you can even run it on Centos5 since it's ships with it's own Ruby, etc. http://yum.puppetlabs.com/el/6/PC1/x86_64/ Ramin On 9/26/17 12:32 PM, Peter Berghold wrote: I was afraid that would be an answer I got... :-) There are plans to move to Puppet

Re: [Puppet Users] How to randomize the order of server names

2017-07-24 Thread Ramin K
Forgot to reply on list, but we solved it with fqdn_rotate() doing most of the work. $_ldap_servers = ['ldap1','ldap2','ldap3'] $ldap_uri = join(suffix(prefix(fqdn_rotate(sort($_ldap_servers))),'ldaps://'),'/'),' ') Ramin On 7/24/2017 7:24 AM, Rob Nelson wrote: I did just notice this line,

Re: [Puppet Users] Puppet Packet Rate?

2017-07-08 Thread Ramin K
? I want to run a simulation myself. On Saturday, July 8, 2017 at 3:44:26 AM UTC+5:30, Ramin K wrote: On 7/7/17 9:52 AM, Peter Berghold wrote: > Has anybody out there done any sort of study on what Puppet produces in > terms of I/O packet rate? I'm being asked

Re: [Puppet Users] Puppet Packet Rate?

2017-07-07 Thread Ramin K
On 7/7/17 9:52 AM, Peter Berghold wrote: Has anybody out there done any sort of study on what Puppet produces in terms of I/O packet rate? I'm being asked to fill in a spreadsheet with that information I can share some rough numbers. We do a lot of files so the numbers are weird and inef

Re: [Puppet Users] Dependency conundrum

2017-06-15 Thread Ramin K
Maybe I've missed something, but I don't see why your second example doesn't work. # Our order and notify relationships File['patcher-client.service'] ~> Exec['systemctl daemon-reload'] File['patcher-client.service'] ~> Service['patcher-client'] # Our order only relationships Exec['systemctl

Re: [Puppet Users] stop service after install

2017-05-14 Thread Ramin K
I'd guess that installing new modules are restarting the service. You probably need something with better ordering. class apache { contain ::apache::install contain ::apache::config contain ::apache::service Class['::apache::install'] -> Class['::apache::config'] ~> Class['::apache::

Re: [Puppet Users] Regex for case statements

2017-05-06 Thread Ramin K
On 5/6/2017 6:10 PM, tejat...@gmail.com wrote: Hello, I'm stuck at this point while adding a case statement regex for hostname's macthing... Here is my sample code I'm working on... class clearlogs::components::idm { case $::hostname { 'idm-wc-(\d+)p': { https://docs.puppet.com/puppet/3.

Re: [Puppet Users] Catalog compilation performance issues in Puppet 3

2017-04-20 Thread Ramin K
On 4/20/17 3:32 AM, Cesar wrote: I was wondering whether there is any way to reduce catalog compilation? Could the catalog compilation be split across different Puppet master processes or something like that? - upgrade to 3.8.x, definitely performances gains to be had. - Passenger 5/5.1 and t

Re: [Puppet Users] Puppet server is slow and needs tuning

2017-02-20 Thread Ramin K
With Puppet 3.8.7 you're hopefully running Puppet with Apache/Passenger. If not, you have a puppetmaster (puppet master?) process that is single threaded. You'll have to migrate to Passenger based setup. My guess is that that you're running the standalone process since Passenger defaults to 6 p

Re: [Puppet Users] Puppet Language Style Guide update

2017-02-14 Thread Ramin K
Also a fan of David Walhstrom's git hooks and we use them server side too. Ramin On 2/13/17 10:36 AM, Christopher Wood wrote: Same budget for tools here. I get along just fine with a combination of puppet-mode for emacs and the pre-commit hook from David Walhstrom's puppet-git-hooks project.

Re: [Puppet Users] Puppet managing thousands of resources

2017-01-11 Thread Ramin K
On 1/11/17 9:58 AM, Zachary Vida wrote: Hello, I was wonder if there are any significant impovements in later version of puppet >= 2.6 to catolog compilation and/or application runtimes. In an environment I manage we populate many local files (/etc/passwd,/etc/group,/etc/hosts) via ENC. This res

Re: [Puppet Users] Over-engineering rant

2017-01-08 Thread Ramin K
On 1/8/2017 5:54 AM, Jakov Sosic wrote: On 01/08/2017 11:04 AM, Fabrice Bacchella wrote: And that's for something that for a given environment never change, have no options. So dropping a standard file that is hand made once in a lifetime is enough for the vast majority of people. Exactly my

Re: [Puppet Users] Urgent Help Required | Puppet run is dead slow

2016-12-13 Thread Ramin K
On 12/12/2016 8:34 AM, Harish Kothuri wrote: Also, attaching the puppet agent log with --debug enabled. Kindly help. What we really need is the Puppet master log since your problems are on that end. Error 1 is Passenger complaining that there are no processed free to hand off to and you'v

Re: [Puppet Users] puppet-lint 2.0.1 is released

2016-08-18 Thread Ramin K
ased which reverted that issue. We're back to the original problem in #504 but it's not worse than it was in 2.0.0 at least. Rob Nelson rnels...@gmail.com <mailto:rnels...@gmail.com> On Thu, Aug 18, 2016 at 9:56 PM, Ramin K mailto:ramin-l...@badapple.net>> wrote: On 8

Re: [Puppet Users] puppet-lint 2.0.1 is released

2016-08-18 Thread Ramin K
On 8/18/16 9:35 AM, Rob Nelson wrote: All, I'm happy to announce that puppet-lint 2.0.1 has been released today. Please checkout the changelog below for details. Please open a ticket on the project if you discover any issues with it. This is the second release of puppet-lint this year and we ho

Re: [Puppet Users] Puppet module and Hiera variable access

2016-07-18 Thread Ramin K
You can use parameters as Rob suggests or specify the lookup yourself. $new_var = hiera('icinga2_ido_password') Also the var will be $::qmonitoring::db::new_var not the key you used. I recommend matching var to lookup key to make it easier to trace through the code. $icinga2_ido_password = h

Re: [Puppet Users] Hiera Hash Merge Issues

2016-06-03 Thread Ramin K
That looks correct and you are also correct that the deep merge gem is not required for simple top level key merges. Only for sub keys. I believe the hiera_hash merge example here is still valid, https://ask.puppet.com/question/13592/when-to-use-hiera-hiera_array-and-hiera_hash/ ## rabbitmq_pro

Re: [Puppet Users] Puppet and SVN

2016-05-23 Thread Ramin K
On 5/22/16 3:41 AM, Alex Samad wrote: Hi just starting out with puppet. I found this http://projects.puppetlabs.com/projects/1/wiki/Puppet_Version_Control old page talks about checking /etc/puppet into svn. But on my centos install I have /etc/puppetlabs/puppet do I add /etc/puppetlabs or /et

Re: [Puppet Users] Upgrading Puppet from 2.7 to 4

2016-05-06 Thread Ramin K
On 5/6/16 7:22 AM, Rob Nelson wrote: I have not done this, but I suspect a stairstep upgrade of 2.7 -> 3.0 -> 3.8 w/future parser -> 4.latest would be the easiest. You *might* be able to skip to 3.8, technically, but I suspect your code would blow up in strange ways that would be less obvious tha

Re: [Puppet Users] python on puppet

2016-04-22 Thread Ramin K
On 4/22/16 11:04 AM, bapi.l...@cloudwick.com wrote: Hi all, I am trying to manage python packages from puppet.I wanted to run the following commands *without using EXEC..* * * *After installing python-setuptools i tried to install pika using pip as provider .. but it did not work.* If the pip

Re: [Puppet Users] Patterns for multi-arch libraries...

2016-04-19 Thread Ramin K
On 4/19/16 9:06 AM, J.T. Conklin wrote: Rob Nelson writes: Silly question, but what package manager doesn't let you upgrade those two packages independently but also doesn't update the dependent packages at the same time? We have this problem on CentOS machines using the yum provider. The log

Re: [Puppet Users] Strategies for "boring" packages

2016-04-19 Thread Ramin K
On 4/18/16 5:47 PM, J.T. Conklin wrote: At work, we've written about 120 modules in our puppet code repository. About two dozen are "interesting", in that they have lots of parameters and configuration that is specific to our environment. The balance are "boring", rather they are mostly boilerpl

Re: [Puppet Users] Does the puppet agent start puppetmaster?

2016-04-18 Thread Ramin K
On 4/18/16 3:05 AM, César wrote: Hi all, I have been looking for some docs to get more information on the subject, but I have not been able to find them. Apologies if this has been asked before! I'm curious about what happens when a puppet agent run is performed but there are no puppetmaster pr

Re: [Puppet Users] how to check existences of a file in a ERB template?

2016-03-29 Thread Ramin K
On 3/28/16 12:44 PM, Sans wrote: Hi there, I'm setting up a multi-tenancy WordPress environment, where multiple sites are structured as: /var/www/. Long story short: I want to put a line in the wp-config.php based on existences of a file in wp-content (under each site_location, provided by my us

Re: [Puppet Users] odd puppet-lint config problems

2016-01-20 Thread Ramin K
On 1/20/16 1:33 PM, Garrett Honeycutt wrote: Hi Ramin, It sounds like you have a repo with a bunch of modules as opposed to one repo per module. Recommend using a script that calls puppet-lint with the arguments that you would like and integrating that into a pre-commit check or a build pipeline

[Puppet Users] odd puppet-lint config problems

2016-01-20 Thread Ramin K
I'm doing some work around distributing a puppet-lint wrapper internally. Ideally I want a wrapper that reads a custom .puppet-lint.rc within the repo and the rc file is --only-checks so we can enable new checks as the codebase is ready to be stricter. The problems I'm running into are 1. .pu

Re: [Puppet Users] Could not evaluate: Could not retrieve information from environment production source(s) file

2016-01-17 Thread Ramin K
Covered in the docs, https://docs.puppetlabs.com/guides/file_serving.html remove the string "files/" from the source statement within your file resource. Ramin On 1/17/2016 5:44 AM, Juanma Lainez wrote: Hi there, I am new on puppet, got a test lab of two ubuntu 14.04 servers, same network i

Re: [Puppet Users] Rubygem not visible to puppet

2016-01-08 Thread Ramin K
On 1/8/16 3:14 AM, Fraser Goffin wrote: Puppet Version: 4.3.1 OS: Centos 7 Note: I am running MASTERLESS I used this to install a gem :- package { 'rubyzip': ensure => present, provider => 'gem', } It installed fine, in this location : /usr/local/share/gems/gems/rubyzip-1.1.7 gem

Re: [Puppet Users] POC Update for PuppetForce Apache Module

2016-01-05 Thread Ramin K
Run as different users. Run with different modules. Even different mpms. Fairly common scenario in shared web hosting. Ramin On 1/5/16 9:26 AM, Evan Hisey wrote: AJ- Out of curiosity why would you want more than one instance of apache per host? I can't think of a situation that can't be han

Re: [Puppet Users] Re: The right way to create Hiera resources?

2015-10-14 Thread Ramin K
On 10/14/15 12:33 PM, Marc Teale wrote: So I'm asking if there's a best practices method of creating foobar instances from Hiera definitions, be it in another module that does nothing but run create_resources(foobar::instance), modifying the module and then submitting a pull request, or...? Tha

Re: [Puppet Users] automating mysql my.cnf with puppet

2015-09-15 Thread Ramin K
On 9/15/15 1:15 PM, Ramin K wrote: server_id = <% require 'ipaddr'%><%= IPAddr.new(@ipaddress).to_i %> server_id = fqdn_rand(2147483647). that last should have been <%= scope.function_fqdn_rand(2147483647) %> assuming it was also in a template. Ramin -- You r

Re: [Puppet Users] automating mysql my.cnf with puppet

2015-09-15 Thread Ramin K
On 9/15/15 12:59 PM, Tim Dunphy wrote: Hey guys, Is there any other way to automate this setting in my.cnf: server-id=1 So that if the host is db1 it'll get a value of 1, for db2 a value of 2, for db3 a value of 3 and db4 a value of 4? Don't bother. Assigning the number manually and increm

Re: [Puppet Users] (Amazon linux AMI) passenger starts but something is off?

2015-09-08 Thread Ramin K
You seem to have Ruby 2.0 and Ruby 1.8.7 in some of the logs below. I'd suspect that you've installed Passenger into one Ruby while Puppet is trying to run in the other. Ramin On 9/7/15 8:05 AM, Snd Lt wrote: I'm trying to move over to AWS. Been installing puppet open source on Amazon Linux A

Re: [Puppet Users] Memory leak in Passenger ?

2015-07-24 Thread Ramin K
On 7/24/15 12:56 AM, Michael Wörz wrote: Hello, in the past months we are observing raising memory usage on our puppet server and we have to restart it once a week when it starts swapping. Mainly there are 5 Passenger processes that are running for days and using about 15-20% of memory each. S

Re: [Puppet Users] Running the Puppet 4 master from the AIO package (especially passenger/rack)

2015-07-17 Thread Ramin K
On 7/17/15 2:25 PM, Felix Frank wrote: On 07/17/2015 10:08 PM, Felix Frank wrote: Hi list, I'm currently trying to get Puppet 4 to work with nginx/passenger. I had that working with Puppet 3.x pretty well, but the new packaging stumps me. For one, the config.ru file is no longer being packaged

Re: [Puppet Users] A case for git (SVN vs Git)

2015-06-12 Thread Ramin K
On 6/12/15 10:57 AM, Corey Osman wrote: I have been tasked with an assignment to come up with a document for non technical decision makers to “chose Git over SVN”, since non technical people view VCS is all the same. With regards to Puppet I think its a horrible idea to use SVN but how do we p

Re: [Puppet Users] How extend a module

2015-06-10 Thread Ramin K
On 6/10/15 1:03 PM, Albert Shih wrote: Hi, I would like to known if it's possible to extend a module without touching the module. I mean let's take sample : If I want use apache (from puppetlabs) but each time I create a vhost with apache::vhost { 'thing' : } i want also

Re: [Puppet Users] Puppet Dashboard on Centos 7

2015-05-13 Thread Ramin K
On 5/13/15 10:22 AM, Ramin K wrote: Centos shops 2.0 argh. Centos 7 ships 2.0 -- 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-user

Re: [Puppet Users] Puppet Dashboard on Centos 7

2015-05-13 Thread Ramin K
On 5/13/15 9:16 AM, Gabriele Angeli wrote: Hi guys, I tried to install puppet dashboard on Centos 7. I installed the right repository for Centos 7 (puppetlabs.repo) but when I launch the command "yum install puppet-dashboard" the result is the following: *No package puppet-dashboard availabl

Re: [Puppet Users] second run of puppetd creates a new SSL key

2015-05-12 Thread Ramin K
On 5/12/15 10:48 AM, Ed Deloye wrote: We recently upgraded puppet to 2.7.26 with the puppetmaster running CentOS 6.6. Building a new RHEL5 system using kickstart, after the first reboot puppetd runs and creates a new SSL key which is autosigned by the puppetmaster. At the completion of the puppe

Re: [Puppet Users] Hiera Hash Merge - Avoiding Duplicating

2015-05-01 Thread Ramin K
On 4/30/15 10:10 AM, Joseph Swick wrote: dev-db-01.mydomain.net.yaml: --- mysql::server::override_options: mysqld: server_id: 1 dev-db-02.mydomain.net.yaml: --- mysql::server::override_options: mysqld: server_id: 2 John covered the technical in detail. However I'd like to ap

Re: [Puppet Users] Puppet / Ruby Regex match

2015-04-22 Thread Ramin K
On 4/22/15 4:36 PM, TheNerd wrote: Hi, So I have have the following ruby script for puppet, located in /etc/puppetlabs/puppet/environments/production/modules/base/lib/facter Facter.add(:appname) do setcode do Facter.value(:hostname)[5..-1][/(.*?)(\-|\z)/,1] end end The goal is to

Re: [Puppet Users] hiera - multiple yaml backends

2015-02-09 Thread Ramin K
gah, link is https://www.youtube.com/watch?v=7NBJAC10ato On 2/9/15 12:37 PM, Ramin K wrote: In the past I've used yaml for Ops and json for Dev. That worked well and it was mostly automated scripts that we dropping files into a different path. While it's much more work

Re: [Puppet Users] hiera - multiple yaml backends

2015-02-09 Thread Ramin K
In the past I've used yaml for Ops and json for Dev. That worked well and it was mostly automated scripts that we dropping files into a different path. While it's much more work you might consider Redis as a Hiera backend coupled with an http user interface and api. I did some work around a

Re: [Puppet Users] Re: puppet-dashboard 2.0.0 (open source) and postgresq 8.4l tuning

2014-12-19 Thread Ramin K
I would trim down the number of dashboard processes you need to a max of 2-4, a min of 1, and recycle every 10k requests. You can set all of that in the vhost IIRC. The Passenger docs are pretty good in the that regard. Ramin On 12/19/2014 12:48 PM, Gav wrote: Pete, what version of Passenge

Re: [Puppet Users] variable server in puppet.conf does not work

2014-12-12 Thread Ramin K
On 12/12/14 9:18 AM, Josse B wrote: Hello guys, I'm installing puppet for the first time and i'm already struggleling to follow the proper first steps. On my agent node if i launch it with the command below everything goes well : ec2-user@ip-172-31-39-127:/etc/puppet> puppet agent --test --ser

Re: [Puppet Users] puppet, hiera, and overrides

2014-12-08 Thread Ramin K
np. There is any interesting discussion on what to change in the future here. https://tickets.puppetlabs.com/browse/HI-118 Ramin On 12/8/14 1:37 PM, Nathan Earixson wrote: Thank you. I get it now. -n On Monday, December 8, 2014 3:13:26 PM UTC-6, Ramin K wrote: On 12/8/14 12:56 PM

Re: [Puppet Users] puppet, hiera, and overrides

2014-12-08 Thread Ramin K
On 12/8/14 12:56 PM, Nathan Earixson wrote: sudo -u puppet hiera --hash ssh::server_options environment=test ::kernel=Linux {"PermitRootLogin"=>"no", "ClientAliveInterval"=>540, "TCPKeepAlive"=>"yes"} | I have tried this with AND without :merge_behavior: deeper set in the hiera.yaml file. Any

Re: [Puppet Users] compare two variables via regex

2014-12-05 Thread Ramin K
On 12/5/14 3:16 PM, Lori Cho wrote: I have two variables and I want to compare them to each other. However, the regex doesn't return true, because it seems to treat the variable in the // as a literal. Something like this: $variable1 = 'foo' $variable2 = 'foobar' if($variable2 =~ /$variable1/

Re: [Puppet Users] Re: Determining which master an agent is connected to

2014-12-03 Thread Ramin K
On Wednesday, December 3, 2014 2:40:14 PM UTC-5, Ramin K wrote: There is already a set of server facts available during a Puppet run. https://docs.puppetlabs.com/puppet/latest/reference/lang_facts_and_builtin_vars.html#puppet-master-variables <https://docs.puppetlabs

Re: [Puppet Users] Re: Determining which master an agent is connected to

2014-12-03 Thread Ramin K
There is already a set of server facts available during a Puppet run. https://docs.puppetlabs.com/puppet/latest/reference/lang_facts_and_builtin_vars.html#puppet-master-variables Because you're running PE you should be able to query which servers are using which server through mcollective. Ra

Re: [Puppet Users] Need advice about upgrade puppetmaster from ruby 1.8.7 to ruby 1.9.3

2014-12-02 Thread Ramin K
On 12/2/14 11:04 AM, Riley Shott wrote: The puppet_stack module will bring up a Puppet Master (additionally the Foreman, and/or smart-proxy) using RVM, & Gems (Puppet, Facter, Hiera, Passenger). We're using it for our production infrastructure, and everything is a lot more performant with Ruby 2.

Re: [Puppet Users] Need advice about upgrade puppetmaster from ruby 1.8.7 to ruby 1.9.3

2014-12-02 Thread Ramin K
On 12/2/14 10:34 AM, Ramin K wrote: 3. gem install puppet, hiera, and any other gems you currently use. 3. gem install puppet, hiera, and any other gems you currently use into the Ruby you want to use for your Puppet master. I knew I'd miss something. Ramin -- You received this me

Re: [Puppet Users] Need advice about upgrade puppetmaster from ruby 1.8.7 to ruby 1.9.3

2014-12-02 Thread Ramin K
On 12/1/14 4:56 PM, josie.worker...@gmail.com wrote: HI there, I'm looking for any tips/pointers on how to upgrade an existing puppetmaster installation (v3.2.3, using system ruby 1.8.7 on Centos 6u3). We don't have RVM installed on the puppetmaster itself, as it's been around since 2.x days an

Re: [Puppet Users] basic hiera question

2014-11-19 Thread Ramin K
On 11/19/14 10:42 AM, Craig White wrote: getting very frustrated and have covered the 7 or so pages on puppet's documentation on hiera several times. # cat hiera.yaml --- :backends: - yaml :hierarchy: - defaults - "%{clientcert}" - "%{environment}" - global - common - ldap :

Re: [Puppet Users] Puppetmaster can't keep up with our 1400 nodes.

2014-10-30 Thread Ramin K
On 10/30/14 7:45 AM, Georgi Todorov wrote: Hi group, We have a VM with 24 E7-8857 v2 @ 3.00GHz cores and 32G of ram (on big ESX hosts and fast backend) that is our foreman/puppetmaster with the following tuning params: Passanger: PassengerMaxRequests 1 PassengerStatThrottleRate 180

Re: [Puppet Users] Upgrading ruby to 2.1.x - paranoid question

2014-10-30 Thread Ramin K
On 10/30/14 4:43 AM, JonY wrote: Would like to upgrade Ruby to the latest. To make everything on my puppet server happy I need to remove the Ruby 1.8.7 that YUM installed. When I run 'yum erase ruby' it looks like it will also remove puppet, puppetdb, and so on. If I follow through with this: -

Re: [Puppet Users] Re: schedule metaparameter

2014-10-27 Thread Ramin K
On 10/27/14 7:43 AM, jcbollinger wrote: On Friday, October 24, 2014 12:51:27 PM UTC-5, Mark Rosedale wrote: Hello, I'm looking to start to implement scheduling for certain resources within puppet. My one question is this. If I have a schedule set on resource 'foo' does that pr

Re: [Puppet Users] hiera-eyaml - performance implications?

2014-10-24 Thread Ramin K
On 10/24/14 12:01 PM, Tim Skirvin wrote: I've started investigating hiera-eyaml as a tool for managing secrets within our puppet repository. It looks pretty promising, especially in connection with 'show_diff => false'. For those that haven't seen it: http://puppetlabs.com/blog/e

Re: [Puppet Users] Puppet Master Disk usage management

2014-10-18 Thread Ramin K
On 10/16/2014 6:51 AM, Mark Rosedale wrote: I went through your ask post. This was extremely helpful information. However, I wanted to add some updated information about reclaiming your space the hard way. According to the mysql documentation

Re: [Puppet Users] Puppet Master Disk usage management

2014-10-15 Thread Ramin K
On 10/15/14 9:11 AM, Mark Rosedale wrote: Hello, I'm running puppet with puppetdb and puppet-dashboard all on my master. I want to make sure that I don't get overrun with disk usage by either the master (storing reports) or the dbs for puppetdb (I'm running postgres) or puppet-dashboard (mysql

Re: [Puppet Users] fstab dilemma - pounding on file_line and augeas

2014-10-13 Thread Ramin K
On 10/8/14 1:34 AM, Felix Frank wrote: On 10/07/2014 10:21 PM, Ramin K wrote: If you're taking feature requests while, it would be awesome if the mount resource would allow you to mount without adding a line to fstab at all. Have you tried "ensure => ghost"? This is off

Re: [Puppet Users] fstab dilemma - pounding on file_line and augeas

2014-10-07 Thread Ramin K
On 10/7/14 1:17 PM, Felix Frank wrote: On 10/07/2014 09:55 PM, Dan White wrote: |Local hardening guidelines say that /usr/local and /var/log/audit have to be separate partitions. OK, so I make "mount" resources. Now the problem: The order of the mount points in /etc/fstab makes a difference. I

Re: [Puppet Users] Announce: Puppet Server 0.2.0

2014-09-29 Thread Ramin K
On 9/29/14 2:09 AM, Ken Barber wrote: The information around tuning Passenger/Puppet explicitly provided by Puppet Labs was mostly crap. Indeed, it was a bit of a black art because of this. It wasn't until later that Passenger even added the ability to reasonably introspect what was

Re: [Puppet Users] Announce: Puppet Server 0.2.0

2014-09-27 Thread Ramin K
More information along these lines, highlighting ease of use and tools for users to see their catalogs, will go along way towards soothing us touchy sysadmins. The performance gains while nice don't have the appeal of better troubleshooting. I'm happy to learn yet another stack, but I'd like t

Re: [Puppet Users] puppet + passenger issue

2014-09-15 Thread Ramin K
On 9/15/14 7:28 AM, Ryan Anderson wrote: My 3.4.3 puppet master on RHEL6.5 is using apache+passenger (4.0.39). As I've added more agents, I've increasingly hit situations where I get numerous errors from the web server. The problem shows up as errors on file resources from agents such as this: E

Re: [Puppet Users] Re: Announce: Facter 2.2.0

2014-08-28 Thread Ramin K
On 8/28/14 8:13 AM, Matt Wise wrote: I'll start out by saying that we've worked around the problem ... but, when you're operating in cloud and constantly booting new machines, dependencies like Facter are rarely explicitly versioned. That is to say, often you will see someone pin the version of P

Re: [Puppet Users] Good PupptMaster/Passenger Guide w OSX 10 .9

2014-08-26 Thread Ramin K
On 8/26/2014 4:23 PM, keith.sta...@gmail.com wrote: HI guys; after speaking with puppet labs and gettting the pricing for my site, I thought it maybe cheaper to go open source. so I am asking for a good guide you guys have used the following: http://nullr0ute.com/2014/01/puppetmaster-on-apach

Re: [Puppet Users] Trying to install the Dashboard on Ubuntu 14

2014-08-26 Thread Ramin K
On 8/26/2014 5:41 PM, Jason Oakley wrote: Do I have to install the Dashboard from tarball now? Which version? Puppet Dashboard will only work with Ruby 1.8.7 and 14.03 ships with 1.9.3. Puppetlabs EOL'ed the Dashboard over near two years ago. https://groups.google.com/forum/#!topic/puppet-an

Re: [Puppet Users] Challenge: who am i and what do i do

2014-08-26 Thread Ramin K
On 8/26/2014 12:41 PM, Alex Demitri wrote: Hi guys - i am fairly new to puppet and i am trying to figure out ways to implement it in my organization to make good use of it. One thing we thought would be useful to better our deployment process, is to add a mechanism that would have a vanilla serve

Re: [Puppet Users] Puppet logging agent/master

2014-08-26 Thread Ramin K
On 8/26/14 10:34 AM, Mike Reed wrote: Hello all, I've recently been looking into various methods for configuring meaningful logging from my puppet 3.6 master/agent nodes. I've typically gone the route of grep'ing through syslog on both master/agents and I'd like something a little more robust a

Re: [Puppet Users] Re: "require" broken with create_resources() ?

2014-08-21 Thread Ramin K
On 8/21/14 6:00 AM, jcbollinger wrote: On Wednesday, August 20, 2014 8:11:13 AM UTC-5, R.I. Pienaar wrote: It also works if you quote the 'Class[myclass]' so it should work if it comes from JSON or whatever Really? That's news to me. I wonder when that was added. John I'm curious

Re: [Puppet Users] Very large resource_statuses. reports:prune:orphaned fails with Mysql error

2014-08-12 Thread Ramin K
On 8/12/2014 8:54 AM, Ramin K wrote: On 8/12/2014 1:34 AM, Erling Ringen Elvsrud wrote: Hi! I use Puppet enterprise 2.7.2. In the database for Puppet Dashboard the resource_statuses table has grown rapidly the past month (when I was on vacation). I have experienced this earlier also and have

Re: [Puppet Users] Very large resource_statuses. reports:prune:orphaned fails with Mysql error

2014-08-12 Thread Ramin K
On 8/12/2014 1:34 AM, Erling Ringen Elvsrud wrote: Hi! I use Puppet enterprise 2.7.2. In the database for Puppet Dashboard the resource_statuses table has grown rapidly the past month (when I was on vacation). I have experienced this earlier also and have implemented the suggested solution here:

Re: [Puppet Users] Puppet agent memory usage on the master

2014-08-09 Thread Ramin K
On 8/7/14 5:41 AM, Chris Ritson wrote: I've been trying for a while to work out why my puppet agent run on the puppet master was consuming so much time and memory. With a single webrick master running puppet puppet-3.6.2-1.el6 and serving about 100 clients, I was seeing agent runs on the master

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

2014-07-09 Thread Ramin K
It looks like you did this command 'alter table report_logs column message mediumtext;' rather than varchar(65536). mediumtext is what it should be changed to. Both BLOB and TEXT are 64kb while MEDIUMTEXT is 16MB. Ramin On 7/9/2014 4:48 AM, Ximena Cardinali wrote: Hello, I had to apply also

Re: [Puppet Users] Puppet newbie, Apache vHosts, and trying to do it the right way

2014-06-23 Thread Ramin K
On 6/23/2014 4:05 AM, Ben Ruset wrote: Ah, okay this makes more sense for me. So I know that I can stick this in the same file with the node definitions, but there's got to be a better place for it to go. Where would the "proper" place be for it to go? Many thanks for your responses. They've bee

Re: [Puppet Users] Puppet new deployment questions - deployment patterns, sensitivity to network errors, and certificate headaches.

2014-06-17 Thread Ramin K
google-groups appeared to have eaten the first version from yesterday. Pardons if this is sent twice. 1. I don't think about it as manifests increasing in size, but whether I can completely recreate a server at anytime accurately. Or more importantly can I provision 12 more of any server asap.

Re: [Puppet Users] Puppet new deployment questions - deployment patterns, sensitivity to network errors, and certificate headaches.

2014-06-17 Thread Ramin K
On 6/16/2014 12:33 PM, Stephen Morton wrote: I've got some newbie puppet questions. My team has a tremendous amount of linux/computer knowledge, but we're new to Puppet. We recently started using puppet to manage some 100 servers. Their configs are all pretty similar with some small changes. ---

Re: [Puppet Users] params.pp/inheritance/defaults/hiera/hiera functions?

2014-05-30 Thread Ramin K
On 5/29/2014 10:58 AM, Christopher Wood wrote: (I'm not sure how to phrase my question precisely, so this may not all be totally clear.) Has anybody else successfully moved away from using params.pp and default values, and if so, what did you do and how did it go? If not, what made you go back?

Re: [Puppet Users] Craig Dunn's Roles/Profiles/Components & Conflicts

2014-05-16 Thread Ramin K
On 5/15/2014 12:14 PM, Christopher Wood wrote: (inline) On Thu, May 15, 2014 at 11:45:21AM -0700, Ramin K wrote: I'd also like to disagree slightly with Christopher who also posted in this thread. Your profile:: classes are the perfect place for all sorts of site specific nonsense incl

Re: [Puppet Users] Craig Dunn's Roles/Profiles/Components & Conflicts

2014-05-15 Thread Ramin K
On 5/14/2014 10:22 PM, mjuszc...@gmail.com wrote: Hi all, We use the roles/profiles/components model originally suggested by Craig Dunn fairly heavily. In our case: * The role is a business name, like "Application X App Server" * The profile is the technical name, like "Base Components" or

Re: [Puppet Users] Re: Looking for a better way to use hiera hashes than create_resources

2014-05-06 Thread Ramin K
On 5/5/2014 7:32 AM, Alex Scoble wrote: If you are trying to follow Puppet Labs recommended best practices, it's definitely a moving target. I find it best not to change my workflow or methodology until it makes sense on my system regardless of what the community or even Puppet Labs has said

Re: [Puppet Users] emulate "puppet cert clean" via API...

2014-04-25 Thread Ramin K
I did it by giving the application that revokes and deletes it's own cert to use and authorized it. I suspect delete might not be allowed by default. I wrote our method up here, https://ask.puppetlabs.com/question/3347/revoke-and-delete-cert-via-the-rest-api/ Ramin On 4/25/2014 2:09 PM, Mat

Re: [Puppet Users] Memory sizing (or leak) in master. [Tkt: 115440]

2014-04-16 Thread Ramin K
On 3/14/2014 6:18 AM, Chris Ritson wrote: Am I being too optimistic? Running a centos 6.5 virtual machine as puppet master, on version 3.4.3, I am frequently running out of memory. The virtual machine only has 0.75Gig of allocated memory. It holds 225 certificates, but only about 130 of these

Re: [Puppet Users] Re: Roles/profiles and hiera

2014-03-27 Thread Ramin K
Thanks and I'm glad it helped point you in the right direction. Here are two more (from me at least) to add to your collection on role/profile and Hiera. And yes I feel your oversimplified example pain. It's very unhelpful though Puppet is better than most projects. https://ask.puppetlabs.com

Re: [Puppet Users] Hit and miss application of puppet modules

2014-02-24 Thread Ramin K
On 2/24/2014 4:47 PM, Christopher Opena wrote: class profile::puppet_master { notify {"Applying profile::puppet_master":} include puppet_master } Because you're within class profile::puppet_master Puppet assume you mean the local puppet_master class instead of the top scope puppet_master. In

Re: [Puppet Users] How to group systems using Puppet and hiera?

2014-02-17 Thread Ramin K
On 2/17/2014 1:05 PM, Alex Scoble wrote: Hi All, We are currently transitioning from using the Puppet Enterprise (PE) ENC to using hiera. Howevver, one piece of functionality that we lack with hiera is the ability to group systems together based on function. We can only currently group the syste

Re: [Puppet Users] Roles / profile pattern , inquire on how you handle some specific situations

2014-02-10 Thread Ramin K
cause it does so little you can include it anywhere and add the additional site specific config on top. Because it does so little you can share it without someone needing to immediately rip your system's idiosyncrasies out of it. Ramin On Monday, February 10, 2014 6:48:55 AM UTC, Ramin K wr

Re: [Puppet Users] Roles / profile pattern , inquire on how you handle some specific situations

2014-02-09 Thread Ramin K
On 2/9/2014 4:47 AM, JuanBrein wrote: I've been using puppet on different companies and implementing the roles / profile pattern on some of them. In theory the patter works very well but in practice I usually face challenges that I sort out implementing my own designs / solutions. I would like

  1   2   3   >