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

2018-06-20 Thread Jakov Sosic
Hi guys, [root@host ~]# cat /etc/puppetlabs/puppetserver/conf.d/webserver.conf webserver: { access-log-config: /etc/puppetlabs/puppetserver/request-logging.xml client-auth: want ssl-host: 0.0.0.0 ssl-port: 8140 } I wonder if it's possible, and if yes, how, to set ssl-host to

Re: [Puppet Users] Over-engineering rant

2017-01-08 Thread Jakov Sosic
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 point... I never really

[Puppet Users] Over-engineering rant

2017-01-07 Thread Jakov Sosic
Hi guys, this is maybe a topic better suited for -dev list, but, well, here goes. I've been using puppet heavily for 3-4 years, up until version 4, now I'm mostly maintaining my own open source modules. What stumped me lately is the amount of changes that are happening. Every

Re: [Puppet Users] Metaparams break rake tests - how to avoid it ?

2016-10-26 Thread Jakov Sosic
On 10/22/2016 04:32 PM, Martin Alfke wrote: This code is fine. You just declare a stage resource type. Except for: why do you want to make use of stages? Stages have been introduced as a high level ordering concept which is no longer best practice. You should use standard ordering instead

Re: [Puppet Users] facter compatibility and nest facts info

2016-10-17 Thread Jakov Sosic
On 10/17/2016 07:52 PM, rakare2...@gmail.com wrote: Hi, Is there any issues with facter 2.4.6 + puppet 3.6.2 for writing manifest files? since facter 2.4.6 has nested facts. At present I have facter 2.1.0 + puppet 3.6.2. I am planning to upgrade facter with 2.4.6. So before that I just want to

[Puppet Users] Metaparams break rake tests - how to avoid it ?

2016-10-15 Thread Jakov Sosic
Is there a way to disable metaparam checks, so that it won't break CI for my module? I have something along these lines: my/manifests/init.pp: class my { stage {'mystage': before => Stage['main'] } } my/manifests/conf.pp: class my::conf ( $stage = 'mystage', ) { ... } So, when I run:

Re: [Puppet Users] Virtual resources ?

2016-03-31 Thread Jakov Sosic
On 03/31/2016 05:40 PM, Martin Alfke wrote: Generally it works: https://github.com/puppetlabs/puppet/blob/master/lib/puppet/parser/functions/create_resources.rb But no longer required since Puppet 4:

Re: [Puppet Users] Virtual resources ?

2016-03-31 Thread Jakov Sosic
On 03/31/2016 05:10 PM, Martin Alfke wrote: You are passing a Hash as an parameter to a define. Inside the define you expect the parameter to be of type String - according to what you do in the define. You need to take care of splitting data accordingly in your define: With Puppet 4 this is

[Puppet Users] How to get a value of fact that has dot in name?

2016-03-19 Thread Jakov Sosic
Hi guys, I have interfaces bond0.2 and bond0.3 respectively (VLAN tagged). How can I get IP address in hiera? I've tried this: myvar: "%{::networking.interfaces.bond0.2.ip}" but it produces error: SERVER: Internal Server Error: org.jruby.exceptions.RaiseException: (Exception) Hiera type

[Puppet Users] Re: How to get a value of fact that has dot in name?

2016-03-19 Thread Jakov Sosic
On 03/18/2016 12:29 AM, Jakov Sosic wrote: Hi guys, I have interfaces bond0.2 and bond0.3 respectively (VLAN tagged). How can I get IP address in hiera? I've tried this: myvar: "%{::networking.interfaces.bond0.2.ip}" but it produces error: SERVER: Internal Se

Re: [Puppet Users] Re: How to get a value of fact that has dot in name?

2016-03-18 Thread Jakov Sosic
On 03/18/2016 06:59 AM, Francois Lafont wrote: On 18/03/2016 01:44, Jakov Sosic wrote: Even this is causing problems: $ puppet apply -e 'notify { $::networking['interfaces']['bond0.2']['ip']: }' Error: Could not parse for environment production: Syntax error at '2' at line 1:42 on node xxx

Re: [Puppet Users] How to get a value of fact that has dot in name?

2016-03-18 Thread Jakov Sosic
On 03/18/2016 06:52 AM, Francois Lafont wrote: In fact, it's currently impossible in hiera: https://tickets.puppetlabs.com/browse/PUP-5990 According to the ticket, it should be solved in the next Puppet version, ie Puppet 4.4.1. Oh wow, it is addressed! Thanks! :) -- You received this

Re: [Puppet Users] What I think that is needed for a practical Puppet class

2016-02-08 Thread Jakov Sosic
On 01/01/2016 11:36 PM, Rudy Gevaert wrote: * motd updating (not important but good first exercise) * repository management * DNS configuration in resolve.conf * user management * ssh configuration * firewall rules * setting up an apache web server * setting up a MySQL server

[Puppet Users] Re: Prefetch in custom types in Puppet v4?

2016-01-18 Thread Jakov Sosic
On 01/19/2016 02:52 AM, Jakov Sosic wrote: Hi guys, I've noticed the following problem with one of my providers in v4. This is the original prefetch method I used: def self.prefetch(resources) instances.each do |prov| if resource = resources[prov[:name

[Puppet Users] Prefetch in custom types in Puppet v4?

2016-01-18 Thread Jakov Sosic
Hi guys, I've noticed the following problem with one of my providers in v4. This is the original prefetch method I used: def self.prefetch(resources) instances.each do |prov| if resource = resources[prov[:name]] resource.provider = prov +resource.provider =

[Puppet Users] create_resources not working in 4.x?

2015-11-12 Thread Jakov Sosic
Hi guys, I'm having difficulties with create_resources in latest 4.x master/agent combo... This is the example create_resources call: $logstash_configs = hiera_hash('logstash::configfiles', {}) create_resources('::logstash::configfile', $logstash_configs) This was working ok in

[Puppet Users] How to access a variable from parent define[d type]?

2015-10-29 Thread Jakov Sosic
Hi guys. I have an issue with scope changes, and I am wondering how to proceed. This is what I've got: define first ( $somevar, ) { $name_array = split($title, '/') $developer = $name_array[0] $instance = $name_array[1] ::second { "${developer}_${instance}": template =>

Re: [Puppet Users] Re: How to access a variable from parent define[d type]?

2015-10-29 Thread Jakov Sosic
On 10/29/2015 02:24 PM, jcbollinger wrote: What you describe should not have worked in Puppet 3, either. Class inheritance is the only mechanism Puppet 3 scoping rules provide for variables declared in a local scope, such as is

Re: [Puppet Users] Re: Puppet 3.8 to 4.2 migration issue...

2015-10-14 Thread Jakov Sosic
On 10/13/2015 05:07 PM, R.I.Pienaar wrote: You can test all your yamls like: for i in $(find /etc/puppetlabs/code/hieradb -name \*.yaml) do /opt/puppetlabs/puppet/bin/ruby -r yaml -e "YAML.load(File.read('$i')) && puts('$i: OK') rescue puts('$i: NOT OK')" done change

Re: [Puppet Users] Re: Puppet 3.8 to 4.2 migration issue...

2015-10-14 Thread Jakov Sosic
On 10/14/2015 02:06 PM, Jakov Sosic wrote: # load configs from hiera $logstash_configs = hiera_hash('logstash::configfiles', undef) if ($logstash_configs) { create_resources(::Logstash::Configfile, $logstash_configs) } $logstash_patterns = hiera_hash('logstash::patternfiles', undef

[Puppet Users] Puppet 3.8 to 4.2 migration issue...

2015-10-13 Thread Jakov Sosic
Hi guys, I'm having problems migrating from 3.8 to 4.2... # puppet agent -tv --tags snmp --noop Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a

[Puppet Users] Re: Puppet 3.8 to 4.2 migration issue...

2015-10-13 Thread Jakov Sosic
On 10/13/2015 04:45 PM, Jakov Sosic wrote: Hi guys, I'm having problems migrating from 3.8 to 4.2... # puppet agent -tv --tags snmp --noop Info: Retrieving pluginfacts Info: Retrieving plugin Info: Loading facts Error: Could not retrieve catalog from remote server: Error 400 on SERVER

[Puppet Users] How to use 'commands' method in ruby code outside of puppet?

2014-09-12 Thread Jakov Sosic
Hi, to allow me to easier debug my providers, I sometimes wanna use 'command' in my own ruby code. Trying to figure out how is problem. This is how I use it inside a provider: commands :wget= '/usr/bin/wget', :cp = '/bin/cp' Later, I can run the command with simple:

Re: [Puppet Users] initial_token for cassandra module

2014-05-25 Thread Jakov Sosic
On 05/25/2014 05:38 AM, Tim Dunphy wrote: Hey all, I'm trying to write a puppet module to deploy the cassandra database automatically. I'm using puppet templates to provide the IP address to the listen_address parameter of the cassandra.yaml file like so: listen_address: %= ipaddress % So far

Re: [Puppet Users] EC2 autoscaling reusing hostnames

2014-05-25 Thread Jakov Sosic
On 05/24/2014 07:54 AM, Bad Tux wrote: Am I missing a configuration option in the manual to somehow disable SSL certificate validation? Does everybody add a cron job to their puppet master to stop the puppetmaster daemon and blow away its SSL directory then restart it at exactly 12:00AM every

Re: [Puppet Users] Puppet and Dpkg Locks ...

2014-05-25 Thread Jakov Sosic
On 05/24/2014 04:01 AM, Matt Wise wrote: When you have hundreds of hosts and run Puppet every 30 mins (splayed across the hour), it seems that you end up running into various 'dpkg' locks fairly randomly and at a surprisingly high occurrence (once or twice a day at least). This happens if you do

[Puppet Users] hiera specifying content as template?

2014-05-23 Thread Jakov Sosic
I'm looking at this code: define logstash::configfile( $content = undef, $source = undef, $order = 10 ) { file_fragment { $name: tag = LS_CONFIG_${::fqdn}, content = $content, source = $source, order = $order, before = [ File_concat['ls-config'] ] } }

Re: [Puppet Users] Module for lsyncd - multiple syncs to be configured, but only one config file

2014-05-20 Thread Jakov Sosic
On 05/16/2014 12:34 PM, Ugo Bellavance wrote: Do I need the puppet concat module to do that? I am on puppet version 2.6 (using EPEL repo, upgrading to 2.7 soon. I know it is not what this group recommends, but it's the best for me right now). Yes, you do if you use the code I provided. --

Re: [Puppet Users] Module for lsyncd - multiple syncs to be configured, but only one config file

2014-05-15 Thread Jakov Sosic
On 05/15/2014 09:25 PM, Ugo Bellavance wrote: Hi, I wrote my first puppet module and it is for lsyncd. I know that there is already a module for that but I think it was written to manage lsyncd and csync2 syncs and I don't really understand everything it it so I can't really use it or learn

Re: [Puppet Users] RabbitMQ module release plan

2014-05-14 Thread Jakov Sosic
On 05/14/2014 06:01 PM, Jeremy T. Bouse wrote: What fix exactly are you speaking of? I currently have version 3.1.0 deployed from the forge and haven't ran into any major issues with its functionality. +1 -- You received this message because you are subscribed to the Google Groups Puppet

[Puppet Users] Is --noop supposed to override noop param?

2014-05-12 Thread Jakov Sosic
Hi, I had an issue with my --noop run actually overwriting files on machine it is run on. After looking into it, I found that some of my modules have 'noop' param on resources. For example: class something ( $noops = false ) { file { '/etc/something': noop = $noops, } } After

Re: [Puppet Users] Is --noop supposed to override noop param?

2014-05-12 Thread Jakov Sosic
On 05/12/2014 03:16 PM, Christopher Wood wrote: I get the same behaviour in 3.4.3, however: The noop setting allows you to globally enable or disable noop mode, but it will not override the noop metaparameter on individual resources.

Re: [Puppet Users] puppet apply --noop -e and overiding facter values for testing

2014-05-06 Thread Jakov Sosic
On 05/06/2014 12:29 AM, Brian Mathis wrote: The problem is that your variable names are being returned from the $(cat...) after bash has already evaluated the environment, so it's taking it as a literal string and trying to execute the command. To get bash to interpret it as a variable, use

Re: [Puppet Users] puppet apply --noop -e and overiding facter values for testing

2014-05-06 Thread Jakov Sosic
On 05/06/2014 02:38 PM, Brian Mathis wrote: This applies to facter version 1.7 and above. See docs: http://docs.puppetlabs.com/guides/custom_facts.html#external-facts You can create a file like this (the name does not matter): /etc/facter/facts.d/myfacts.txt: hostname=value Then

Re: [Puppet Users] Puppet and VMWare (API)

2014-04-24 Thread Jakov Sosic
On 04/24/2014 07:44 PM, Forrie wrote: I believe this question is different from others I've seen posted (correct me if I've missed something!). We are looking to automate the creation of VM images, for our growing environment (development, test and production) -- while we're still debating

Re: [Puppet Users] How to Prevent Both MySQL and Percona From Being Installed?

2014-04-23 Thread Jakov Sosic
On 04/23/2014 10:57 PM, Jon Forrest wrote: 3) Just presume that MySQL won't be installed in the first place. I could do this but I'd like my modules to be more accepting and not require a specially prepared system. Any suggestions? You're trying to circuvment the package management problem.

Re: [Puppet Users] Installing multiple packages (via apt) on one command line...

2014-04-22 Thread Jakov Sosic
On 04/21/2014 11:25 PM, Matt W wrote: Hey we have a problem that I think we need to solve with a custom Puppet provider, but I could use a bit of help getting started. Overall the issue of being able to install multiple packages at-once has been discussed a ton of times (issue #2128 for

Re: [Puppet Users] How to make sure a config file haven't changed in an OS upgrade?

2014-04-20 Thread Jakov Sosic
On 04/20/2014 02:38 AM, Jasmine Lognnes wrote: Dear all =) I have a CentOS5 node that I would like to upgrade to CentOS6, but how can I trust that my CentOS5 node manifest won't destroy the config files on the CentOS6 node because the config files have changed from CentOS5 to CentOS6? How do

Re: [Puppet Users] detect python|ruby|foo-package installed

2014-04-19 Thread Jakov Sosic
On 04/19/2014 04:09 AM, Alexander Gray II wrote: Is there a way in puppet to detect what version of python or ruby, or for that matter, any package which is installed? For instance: if python_version x: do something else do something else It looks liek versioncmp is what I want, but

Re: [Puppet Users] Same methods in two providers - how to optimize it?

2014-04-17 Thread Jakov Sosic
On 04/17/2014 10:45 PM, Felix Frank wrote: Hi, you received an answer from Nan on the dev list, and that was pretty much spot on I think (yay Nan:) I would only add that for the types, you may want to take a look at how the ensure property and the ensurable method are implemented. If it's

[Puppet Users] Same methods in two providers - how to optimize it?

2014-04-16 Thread Jakov Sosic
Hi, I'm developing some of my custom types, and some of them share same params, with exactly the same methods... For example, I have these params in three of my types and they are same: lib/puppet/type/mytype1.rb lib/puppet/type/mytype2.rb lib/puppet/type/mytype3.rb newproperty(:comment) do

Re: [Puppet Users] Best practices for infrastructure

2013-08-25 Thread Jakov Sosic
On 08/25/2013 02:17 PM, Martin Langhoff wrote: On Sat, Aug 24, 2013 at 5:18 PM, Jakov Sosic jso...@srce.hr wrote: Only if you use autosign option. After the certificate is signed, agents report certname and not hostname. Well-behaved clients report certname. A malicious client could use one

Re: [Puppet Users] Best practices for infrastructure

2013-08-24 Thread Jakov Sosic
On 08/24/2013 04:13 PM, Martin Langhoff wrote: On Sat, Aug 24, 2013 at 6:33 AM, Félix Barbeira fbarbe...@gmail.com mailto:fbarbe...@gmail.com wrote: Speaking in security terms, could be masterless puppet configuration less secure? I mean, the puppet code is in *all* the clients. On

Re: [Puppet Users] The handy Grail of Modules Standards

2013-08-07 Thread Jakov Sosic
the backup_status and archive_status arguments follow an approach that ... erm.. was revisited in the current version of the ongoing standard. Can you point me to the revisited approach? I really like the current one :D -- Jakov Sosic www.srce.unizg.hr -- You received this message because you

Re: [Puppet Users] The handy Grail of Modules Standards

2013-08-05 Thread Jakov Sosic
critique ;) -- Jakov Sosic www.srce.unizg.hr -- 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 post to this group, send

[Puppet Users] Puppet loading class that is not included?

2013-07-24 Thread Jakov Sosic
in specifying top scope in numeros occasions when including or requiring classes, but this time I thing that 'inherits' bit me... Has anyone had similar problems? Should I change my classes code in some way to avoid this kind of issues in the future? -- Jakov Sosic www.srce.unizg.hr -- You

Re: [Puppet Users] Puppet loading class that is not included?

2013-07-24 Thread Jakov Sosic
On 07/25/2013 02:13 AM, Jakov Sosic wrote: I was pretty cautious in specifying top scope in numeros occasions when including or requiring classes, but this time I thing that 'inherits' bit me... Nah, I've found it... It seems that I missed one require in another class, system::foobar, which

Re: [Puppet Users] Puppet loading class that is not included?

2013-07-24 Thread Jakov Sosic
On 07/25/2013 02:13 AM, Jakov Sosic wrote: Hi, Also, just in case some else stumbles upon something like this... generating grahps, and opening .dot file in text editor and searching for incriminating classes and it's relationships really solved it for me. So that's my advice to future

Re: [Puppet Users] How to check service status to write monit snippet.

2013-07-22 Thread Jakov Sosic
On 02/23/2013 06:33 PM, eduardo wrote: Hi all. I'm working on monit module. I have an array of services to configure monit via ENC. I need a consistent module logic so services arriving as input parameter must running on node agent. I'm trying to find out if there is services running

Re: [Puppet Users] Puppet resources and Nagios Contacts\Contactgroups

2013-07-22 Thread Jakov Sosic
On 02/11/2013 02:23 PM, JamieC wrote: And generating them with; Nagios_contactgroup || Nagios_contact || Is there a way to create a list such as ; name1:username1:emailaddress1 name2:username2:emailaddress2 And loop the creation? Puppet doesn't support loops in it's

[Puppet Users] Stage is a metaparam warning

2013-07-22 Thread Jakov Sosic
# puppet master --compile web01.example.com /dev/null Warning: stage is a metaparam; this value will inherit to all contained resources in the yum::repo::base definition Warning: stage is a metaparam; this value will inherit to all contained resources in the yum::repo::epel definition Warning:

Re: [Puppet Users] PuppetMaster LB on top of OCFS2

2013-07-20 Thread Jakov Sosic
that), and that's why I don't just jump in the fire and worry later... It seems to me that I'd be setting up simple ha-service (failover/failback) and forget about LB for a time being :) -- Jakov Sosic www.srce.unizg.hr -- You received this message because you are subscribed to the Google Groups

Re: [Puppet Users] PuppetMaster LB on top of OCFS2

2013-07-19 Thread Jakov Sosic
/failback in case of the primary node failure. -- Jakov Sosic www.srce.unizg.hr -- 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

Re: [Puppet Users] Re: Choosing provider by properties?

2013-07-18 Thread Jakov Sosic
On 07/18/2013 03:07 PM, jcbollinger wrote: Not to my knowledge, no. This is not the correct provider paradigm. The provider for a given resource type used on a given node, if not specified explicitly, is supposed to be chosen based on the characteristics of the node, not of the resource.

[Puppet Users] PuppetMaster LB on top of OCFS2

2013-07-18 Thread Jakov Sosic
Hi, I'm trying to design a solution that will encompass load balancing puppet master. I have two nodes, and idea is to connect them with DRBD, put some cluster aware filesystem (OCFS2 or GFS2), and just link /etc/puppet and /var/lib/puppet on both nodes to cluster FS. Accessing to the masters

Re: [Puppet Users] Re: PuppetMaster LB on top of OCFS2

2013-07-18 Thread Jakov Sosic
On 07/18/2013 08:29 PM, GregC wrote: Load balancing will work without issue, there is a good suggestion on using round robin DNS in Chapter 4 of Pro Puppet page 116. Yeah but I am little suspicious about two masters sharing /var/lib/puppet ... could that cause troubles? -- Jakov Sosic

[Puppet Users] Choosing provider by properties?

2013-07-17 Thread Jakov Sosic
Hi, is it possible to choose the provider based on property? For example, I'm trying to develop two different providers for same type of resource. If i use path location on the local filesystem I want provider local to be chosen, and if I use link property, then I want provider remote to be

Re: [Puppet Users] username/password combo for custom provider (couchbase)

2013-07-16 Thread Jakov Sosic
On 07/16/2013 02:56 AM, Nan Liu wrote: If that's not the issue, then I'm not sure. I'll try to put together the transport module when I get some spare time. Reference is not a problem, but fetching parameters from that resource is... As I can see in vmware modules, there is a

Re: [Puppet Users] username/password combo for custom provider (couchbase)

2013-07-16 Thread Jakov Sosic
On 07/16/2013 02:56 AM, Nan Liu wrote: Disclaimer, I don't work at Puppet Labs anymore, and this will be a personal project as time permits. Also, best of luck in the future! And thank you for your contribution so far. You've been really helpful (at least to me) in the process of learning

Re: [Puppet Users] username/password combo for custom provider (couchbase)

2013-07-15 Thread Jakov Sosic
On 07/13/2013 06:43 PM, Nan Liu wrote: Puppet::Type.newtype(:couchbucket) do ... newparam(:transport) do defaultto 'couch' end end This should allow a one time specification of username password for all resources: transport { 'couch' username = ... password = ..., }

Re: [Puppet Users] username/password combo for custom provider (couchbase)

2013-07-15 Thread Jakov Sosic
On 07/15/2013 01:54 PM, Jakov Sosic wrote: OK, I will basically do something like this, but I will implement my own transport-alike resource until you guys standardize this :) OK, I'm having a big problem ... How can I get the values from the other resource? For example: couchconnection

Re: [Puppet Users] username/password combo for custom provider (couchbase)

2013-07-15 Thread Jakov Sosic
On 07/15/2013 07:55 PM, Jakov Sosic wrote: For example: couchconnection { 'default': username = 'admin', password = 'admin', } couchbucket { 'test': ramsize= '64', connection = Couchconnection['default'], } Damn, even my autorequire isn't working properly... couchbucket

Re: [Puppet Users] username/password combo for custom provider (couchbase)

2013-07-15 Thread Jakov Sosic
On 07/15/2013 08:37 PM, Jakov Sosic wrote: And this is part of couchbucket type: newproperty(:connection) do desc 'Connection parameters for administrating Couchbase.' defaultto 'couch' end autorequire(:couchconnection) do self[:connection] end Hmm, autorequire

[Puppet Users] username/password combo for custom provider (couchbase)

2013-07-13 Thread Jakov Sosic
not a viable option, because he will have to address the username/password in every couchbucket resource definition. So, what I am interested in is your opinion about how to proceed with this one. -- Jakov Sosic www.srce.unizg.hr -- You received this message because you are subscribed

Re: [Puppet Users] username/password combo for custom provider (couchbase)

2013-07-13 Thread Jakov Sosic
On 07/13/2013 06:43 PM, Nan Liu wrote: There's two options, one to store the username/password on server like mysql resource (~/my.cnf), or in catalog. I had discussions where some users prefer the former, but I'm in the later camp. First approach is OK, if the client program supports dot-conf

Re: [Puppet Users] Apache module

2013-07-07 Thread Jakov Sosic
On 01/29/2013 07:05 AM, Alex Harvey wrote: This leads me to suspect that most sites must be using Apache modules that were entirely developed in house? Or have most sites just decided that most of Apache's options shouldn't ever be changed from these default settings? Or is there a better

Re: [Puppet Users] What do YOU do to catch undefined variables

2013-07-07 Thread Jakov Sosic
On 05/10/2013 10:43 PM, David Schmitt wrote: On 10.05.2013 17:08, Nikola Petrov wrote: +1 The vim plugin is the best you can find if you are already proficient in vim somewhat. I use it in conjuction with https://github.com/SirVer/ultisnips and it can't be better. I found the eclipse too

Re: [Puppet Users] Dealing with slow resources

2013-07-06 Thread Jakov Sosic
at least 1 API or cli call. After that I changed the provider to use prefetching. That means 1 API call to get all the systems with all the parameters at once... Thing got ~9 times faster. I suggest you to rewrite your provider also... -- Jakov Sosic www.srce.unizg.hr -- You received

Re: [Puppet Users] Re: Security considerations for basing decisions on facts

2013-07-06 Thread Jakov Sosic
, as follows: [private] path /etc/puppet/private/%H allow * Does this mean that if compromised client fakes hostname fact (because I presume that %H means hostname), it can get all the files from private section? Can I maybe use certname in private section? -- Jakov Sosic www.srce.unizg.hr

[Puppet Users] Deploying system configurations with another tool?

2013-07-05 Thread Jakov Sosic
Hi, Let's imagine there is a daemon named foobard, which has it's configuration snippets in /etc/foobar.d/*.conf Applications are deployed via some tool other than puppet, for example Jenkins or Capistrano, and developers want to be able to also push system configs for specific deamon(s) via

Re: [Puppet Users] Deploying system configurations with another tool?

2013-07-05 Thread Jakov Sosic
On 07/05/2013 02:46 PM, David Schmitt wrote: One of the big arguments for puppet is the unifying aspect of devs and ops to use the same tool/language/process, which improves cooperation, agility and quality of the work. This indicates that your application deployment should be integrated into

Re: [Puppet Users] Deploying system configurations with another tool?

2013-07-05 Thread Jakov Sosic
On 07/05/2013 06:19 PM, David Schmitt wrote: In the environments I support everything is deployed through puppet. This leads to a big unification in dev/test environments. Through vagrant the complete stack can be tested locally before pushing to code review. From there the code travels

Re: [Puppet Users] How to restart Apache server instances (running on nodes) with Puppet MCollective ?

2013-07-03 Thread Jakov Sosic
On 05/12/2013 09:50 PM, Shreejit Nair wrote: 1) How can I make puppet mcollective work together to call a puppet script placed on server to execute commands on other Nodes (In which puppet agent is installed) ? If you want to see what nodes respond to mcollective: # mco ping To see what

Re: [Puppet Users] Re: Practices: what _not_ to manage with Puppet?

2013-07-02 Thread Jakov Sosic
+ servers per month, so, it just ain't worth it IMHO. -- Jakov Sosic www.srce.unizg.hr -- 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

Re: [Puppet Users] Re: Practices: what _not_ to manage with Puppet?

2013-07-02 Thread Jakov Sosic
in hiera and manage it via custom types :D So Puppet manages Cobbler which generates kickstart, which runs puppet :D -- Jakov Sosic www.srce.unizg.hr -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop

Re: [Puppet Users] Running multile MySQL Instances on the same server

2013-07-02 Thread Jakov Sosic
a corner case usage scenario... -- Jakov Sosic www.srce.unizg.hr -- 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 post

Re: [Puppet Users] Purge puppet's reports

2013-07-02 Thread Jakov Sosic
that, with 1 day retention and puppet runs on master every 30 min. So basically in worst case scenario we have 24h29min of reports. -- Jakov Sosic www.srce.unizg.hr -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop

Re: [Puppet Users] Copy script from source - run it - delete it again

2013-07-02 Thread Jakov Sosic
need is a bridge :D -- Jakov Sosic www.srce.unizg.hr -- 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 post

Re: [Puppet Users] Re: Are multiple environments broken in puppet?

2013-07-02 Thread Jakov Sosic
manifest? If I change provider in prod, and client machine is in environment=dev, it should have the provider from dev I presume? Or not? -- Jakov Sosic www.srce.unizg.hr -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group

Re: [Puppet Users] How to setup /etc/resolv.conf dependent on network

2013-07-01 Thread Jakov Sosic
On 04/12/2013 10:44 AM, ForumUser wrote: Hello, I am a beginner in puppet so please excuse my lack of knowledge. (I use puppet 3.1). We have nodes in different networks - they use different DNS servers. I'd like to set up its /etc/resolv.conf dependent on network they are in. What

Re: [Puppet Users] puppet-lint -- learning stuff about style but also generating questions

2013-07-01 Thread Jakov Sosic
On 04/11/2013 05:22 PM, Dan White wrote: puppet-lint does not like template files at all. I keep getting this: ERROR: Syntax error (try running `puppet parser validate file`) puppet-lint checks adherence to codestyle. For erb's you can check syntax with something like this: $ erb -x -T -

Re: [Puppet Users] puppetlabs-products yum checksum failing

2013-07-01 Thread Jakov Sosic
On 01/24/2013 01:54 PM, Kristopher Spring wrote: Alrighty, I didn't change a thing on my end but the problems seems to have magically resolved itself this morning. Probably some http cache in front of your server... -- You received this message because you are subscribed to the Google Groups

Re: [Puppet Users] Puppet error while serving /etc/sudoers file using puppet

2013-07-01 Thread Jakov Sosic
On 01/23/2013 01:34 PM, Pradeep Chhetri wrote: err: /Stage[main]//Node[tcp-handler-base]/Users::Sudoers[sudoers-file]/File[/etc/sudoers]/content: change from {md5}0897462d4d48fb9dedaafbaf91a9ceae to {md5}3298e302080d0e63a5697dd39556ca66 failed: Could not rename temporary file

Re: [Puppet Users] package installation failure

2013-07-01 Thread Jakov Sosic
On 01/29/2013 09:24 AM, GRANIER Bernard (MORPHO) wrote: change from absent to present failed: Execution of '/usr/bin/yum -d 0 -e 0 -y install java-1.6.0-openjdk' returned 1: Error: Nothing to do Is there a way to have the full yum output : “Loaded plugins: fastestmirror Loading

Re: [Puppet Users] Regex matching in fileserver config

2013-06-29 Thread Jakov Sosic
in this one too! I find my self copying over same files in private for multiple hosts, so some kind of higher level of 'private' would be nice. -- Jakov Sosic www.srce.unizg.hr -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from

Re: [Puppet Users] Extrange Hiera error

2013-06-29 Thread Jakov Sosic
. This works for me: ossec/%{hostname} -- Jakov Sosic www.srce.unizg.hr -- 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

Re: [Puppet Users] Recommendations for devlopment of a new provider

2013-06-29 Thread Jakov Sosic
it? Is there a better way? Why would you manage link property as a new resource? Why not manage it simply as property of a resource 'link'? -- Jakov Sosic www.srce.unizg.hr -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group

Re: [Puppet Users] Seriously, am I the only one having trouble with the RHEL puppetlabs repos?

2013-06-29 Thread Jakov Sosic
for over a year. Then simply sync puppet repos to Cobbler via mirrorsync. -- Jakov Sosic www.srce.unizg.hr -- 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

Re: [Puppet Users] Nagios Puppet

2013-06-28 Thread Jakov Sosic
with multiple exported nagios_service resources for every single host, that will eventually need to get cleaned out of PuppetDB when the host is no longer in service. Yeah, that approach seems better performance-wise. Tank you for sharing :) -- Jakov Sosic www.srce.unizg.hr -- You received

Re: [Puppet Users] Variable parsing and resolving order...

2013-06-28 Thread Jakov Sosic
pinpoint solution for you. -- Jakov Sosic www.srce.unizg.hr -- 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 post

Re: [Puppet Users] Conditional statement =,, etc.

2013-06-27 Thread Jakov Sosic
like this: case $::operatingsystemrelease { default: {} /^6.*/: { file { 'bla': source = 'bla6', } } /^7.*/: { file { 'bla': source = 'bla7', } } } -- Jakov Sosic www.srce.unizg.hr -- You received this message because you

Re: [Puppet Users] Re: Segmentation fault in methodhelper.rb

2013-06-27 Thread Jakov Sosic
might provide a clue about what's happening. And it's probably something user-specific because bunch of us are running the same setup (RHEL/CentOS ruby + PuppetLabs puppet rpms) and have no issues at all... -- Jakov Sosic www.srce.unizg.hr -- You received this message because you are subscribed

[Puppet Users] Deprecation notice on custom type?

2013-06-24 Thread Jakov Sosic
: Could not parse for environment production: Syntax error at '::useraccount'; expected ')' So, what should I do to eliminate deprecation notices? :D -- Jakov Sosic www.srce.unizg.hr -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe

Re: [Puppet Users] Calling a custom class module via a manifest - puppet 0.24.8

2013-06-24 Thread Jakov Sosic
, mailto = supportadmin@localdomain, enable = false, } Your class is not parametrized, yet you call it with parameters? I think that should not be possible... -- Jakov Sosic www.srce.unizg.hr -- You received this message because you are subscribed to the Google Groups Puppet Users group

Re: [Puppet Users] Database* resources

2013-06-24 Thread Jakov Sosic
accepted upstream. +1 -- Jakov Sosic www.srce.unizg.hr -- 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 post

Re: [Puppet Users] Apply a specific manifest on agent

2013-06-23 Thread Jakov Sosic
better to use hammer. Try some kind of remote execution tool, like PuppetLabs acquired mcollective, c3-powertools or anything on that line. -- Jakov Sosic www.srce.unizg.hr -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from

Re: [Puppet Users] Managing (and pinning) package versions with puppet

2013-06-16 Thread Jakov Sosic
On 06/15/2013 12:06 AM, Andres Olarte wrote: I have an installation that I'm trying to manage with puppet. For some of the packages we want to have very tight control over the versions. Since they are critical to our application, we only upgrade them after testing in our test environment, and

Re: [Puppet Users] puppet: 3.1.1 - 3.2.1 load increase

2013-06-14 Thread Jakov Sosic
cores): * 3.1.1: around 4 * 3.2.1: around 9-10 Any idea why there's more load on the machine with 3.2.1? You have to be a little bit more specific. Is load only CPU related, or I/O? Also, what do the log say? 3.2 pushes lots of notices about syntax obsolescence in the logs... -- Jakov

Re: [Puppet Users] Multiple Requires not allowed, not sure what this is for...

2013-06-08 Thread Jakov Sosic
it in class puppet::master, which inherits puppet. So, my master(s) use different template, and still configure the config file for agents on the master machines, too. -- Jakov Sosic www.srce.unizg.hr -- You received this message because you are subscribed to the Google Groups Puppet Users

Re: [Puppet Users] Custom function and SERVER: wrong argument type Class (expected Module)

2013-06-08 Thread Jakov Sosic
? And did you run your agent with --pluginsync option? -- Jakov Sosic www.srce.unizg.hr -- 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

  1   2   3   4   >