Re: [Puppet Users] Pupper server 4 loosing hiera data

2015-05-18 Thread Roman Mueller
Hi, That is a bug I also ran into, see: https://tickets.puppetlabs.com/browse/PUP-4461 Cheers, Roman On Mon, May 18, 2015 at 6:00 PM, Louis Coilliot wrote: > Hello, > > I am subjected to a strange problem : after a few runs, the puppet master > seems to completely loose the hiera

Re: [Puppet Users] Apache still the recommended server for Puppet?

2015-05-18 Thread Roman Mueller
> Going to the install page at https://docs.puppetlabs.com/guides/install_puppet/install_el.html I no longer see that notice. Not sure if it was always there, but it's on the next page: https://docs.puppetlabs.com/guides/install_puppet/post_install.html#configure-a-production-ready-web-server --

Re: [Puppet Users] PE 3.8 install problems

2015-04-30 Thread Roman Mueller
us=143) >> >CGroup: /system.slice/pe-puppetserver.service >> > This sounds to me like puppetserver started, the first ExecStartPost command succeeded but then the systemd TimeoutStartSec value was reached. I had the same with the open source puppetserver ( https://tickets.pu

Re: [Puppet Users] What happened to the top level collection repos?

2015-04-27 Thread Roman Mueller
ues: https://tickets.puppetlabs.com/browse/CPR-183 https://tickets.puppetlabs.com/browse/CPR-184 Cheers, Roman -- 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 em

Re: [Puppet Users] puppetserver 2 ignores manifest changes

2015-04-25 Thread Roman Mueller
On Mon, Apr 20, 2015 at 1:57 PM, Roman Mueller wrote: > > > Am I doing something wrong or am I hitting a bug? > This is confirmed to be a bug related to hiera_include. See https://tickets.puppetlabs.com/browse/PUP-4461 for details if you are also running into this. Cheers, Ro

[Puppet Users] puppetserver 2 ignores manifest changes

2015-04-20 Thread Roman Mueller
ter that new changes don't get picked up anymore until I restart puppetserver. I can reproduce that behavior. For an example session see: https://gist.github.com/roman-mueller/cf776fd180a085a551c2 I'm running: CentOS 7.0.1406 (but also reproduced it on CentOS 7.1.1503) puppetserver-2.0.0-1

[Puppet Users] Comparing pathes in puppet

2014-03-21 Thread Roman Alekseev
Hello, I have two variables: $a = some_path $b = othe_path and truing to compare it if $a != $b { do something } but always these variables are not equal for puppet. In my case it can be equal, for example $a = /var/cache/nginx/proxy_temp $b = /var/cache/nginx/proxy_temp How can it be fixed?

Re: [Puppet Users] Create variable as result of command execution

2014-03-20 Thread Roman Alekseev
Thank you! This is also working: /usr/sbin/nginx -V 2>&1 | /bin/grep -oP "http-proxy-temp-path=.*?\s" | /usr/bin/awk -F\'=\' {\'print $2\'} среда, 19 марта 2014 г., 17:31:45 UTC+4 пользователь jcbollinger написал: > > > > On Wednesday, Marc

[Puppet Users] Re: Create variable as result of command execution

2014-03-19 Thread Roman Alekseev
') end end **** среда, 19 марта 2014 г., 11:27:15 UTC+4 пользователь Roman Alekseev написал: > > Hello, > > What is the best way in puppet to create a variable as result of command > below: > *$nginx_dir=`/usr/sbin/nginx -V 2> /etc/puppet/nginx.args

Re: [Puppet Users] Create variable as result of command execution

2014-03-19 Thread Roman Alekseev
proxy-temp-path=' {'print $2'} | /usr/bin/awk {'print $1'} | /bin/grep '\/'") endend* Thanks. среда, 19 марта 2014 г., 12:13:16 UTC+4 пользователь Jose Luis Ledesma написал: > > Hi, > > I think that the best way is a custom fact. > > Re

[Puppet Users] Create variable as result of command execution

2014-03-19 Thread Roman Alekseev
Hello, What is the best way in puppet to create a variable as result of command below: *$nginx_dir=`/usr/sbin/nginx -V 2> /etc/puppet/nginx.args | /bin/cat /etc/puppet/nginx.args | /usr/bin/awk -F'--http-proxy-temp-path=' {'print $2'} | /usr/bin/awk {'print $1'} | /bin/grep '\/'`* Any advices

[Puppet Users] Error: Puppet::Parser::AST::Resource failed with error Hiera::InterpolationLoop: Detected in [::environment]

2013-12-13 Thread Roman Shiryaev
Hello, just upgraded Hiera from ver. 1.2.1 to 1.3.0 and broke our puppet environment. :) It seems that there are sizeable changes related to variable interpolation Here is an error during Puppet run: Error: Puppet::Parser::AST::Resource failed with error Hiera::InterpolationLoop: Detected in

[Puppet Users] Puppet + uwsgi-plugin-rack-ruby anyone?

2013-09-25 Thread Roman
Hi, is anyone using the combination of uwsgi-plugin-rack-ruby with nginx and puppet? I had Nginx+Passenger running fine before, but now there seems to be a permissions-problem: Nginx is relaying everything to the uwsgi-process: /etc/nginx/sites-enabled/puppet: server { <---snip---> root

[Puppet Users] Using a varaible from another virtual resource?

2013-09-18 Thread Roman
e, replace => false, mode => 600, content => template('hgssh3/authorized_keys.erb'); ... } I was thinking i could somehow use the key-variable from the first class in a the template of hgssh3 and just specify the user who should get access? Is this

[Puppet Users] Re: Puppet, uWSGI and nginx

2013-07-09 Thread Roman
Hi, Am Mittwoch, 3. Oktober 2012 19:00:15 UTC+2 schrieb Juan José Presa Rodal: > Ok, I was missing the following line in the nginx location statement: > > uwsgi_modifier1 7; > > > Now seems that works correctly (and very fast). When thoroughly adjusted I > will publish the complete configuration

[Puppet Users] Re: File directive

2013-06-20 Thread Roman Alekseev
Is the module below correct? class nginx { if defined(Package['nginx']) { file { "/tmp/puppet-nginx.sh": ensure => "present", owner => "root", group => "root", mode

Re: [Puppet Users] File directive

2013-06-20 Thread Roman Alekseev
On 20.06.2013 17:46, Martin Alfke wrote: this case the file resource will only be managed if the package resource has been defined. This does not mean, that the package has been installed successfully! For this option you have to add require => Package['nginx'], to your file resource. Thank

[Puppet Users] File directive

2013-06-20 Thread Roman Alekseev
Hi Everyone, Is it possible to use File directive only if some software is installed, otherwise do nothing? For example: file { "/tmp/puppet-nginx-init.sh": ensure => "present", owner => "root", group

Re: [Puppet Users] Auto remove certificate from puppet master host

2013-03-05 Thread Roman Alekseev
and invokes puppet ca accordingly (to get rid of stale certificates). > > HTH, > Felix > > On 03/04/2013 11:04 AM, Roman Alekseev wrote: > > Hi, > > > > Does anybody know how to perform auto removing certificate of host which > > is unreachable some period?

[Puppet Users] Auto remove certificate from puppet master host

2013-03-04 Thread Roman Alekseev
Hi, Does anybody know how to perform auto removing certificate of host which is unreachable some period? 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

Re: [Puppet Users] Directory Layout Recommendations for Puppetmaster?

2013-02-27 Thread Roman Mäder
re elaborate setup would certainly make sense. thanks, Roman -- 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.

[Puppet Users] Directory Layout Recommendations for Puppetmaster?

2013-02-27 Thread Roman Mäder
uot;/some/fs/puppet/modules:$confdir/modules:/usr/share/puppet/modules" so everything puppet-internal is still in /etc/puppet, and I can hack away (under CVS control) at the files under /some/fs/puppet. Does this make sense? Thanks for your consideration, Roman -- You received this message

Re: [Puppet Users] Alternatives to a dynamic scope lookup

2013-02-24 Thread Roman Shaposhnik
isplay/BIGTOP/Next+generation+Puppet+code+for+Bigtop+deployment Hopefully the outcome of this exercise will be useful not only to the Apache Bigtop, but to the bigger pupper user community as well. Thanks, Roman. -- You received this message because you are subscribed to the Google Groups "

[Puppet Users] Request for an architectural advice for Hadoop ecosystem deployment

2013-02-18 Thread Roman Shaposhnik
riables that depend on toplogy, 4)  variables that are set based on external context but can be categorized in a node by node basis, such as ntp server address based on location of data center, or which users should have logon access to which machines Thanks, Roman. -- You

Re: [Puppet Users] Alternatives to a dynamic scope lookup

2013-02-12 Thread Roman Shaposhnik
chitecting the class hierarchy, but I need a bit more practical advice. Thanks, Roman. -- 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+uns

Re: [Puppet Users] Alternatives to a dynamic scope lookup

2013-02-11 Thread Roman Shaposhnik
is literally a #define as it is known in C. There's a bunch of code that I need to be 'pasted' in a couple of different places and I'm wondering whether there's a language construct that could help me. And when I say 'pasted' -- I do mean it. 'Pasted' as in

[Puppet Users] Alternatives to a dynamic scope lookup

2013-02-11 Thread Roman Shaposhnik
ses class foo { $var1 = ... this_is_really_a_macro { "macro 1": } } Then, because of the dynamic scope lookup everything would work just fine. Question: what's the recommended way of migrating to Puppet 3.X+ world here? Thanks, Roman. -- You received this message because you are s

Re: [Puppet Users] how to implement cascading defaults based on puppet classes

2013-02-11 Thread Roman Shaposhnik
cascade changes with every single deployment # such knowledge originates with an ENC having Hiera in the mix would mean yet another subsytem which state I'd have to keep consistent with the state of my ENC. > That sounds like a workable solution, but whether it makes sense depends

Re: [Puppet Users] how to implement cascading defaults based on puppet classes

2013-02-10 Thread Roman Shaposhnik
r looking up those very same values. Then my params class could be made rewritten as: class cluster::hdfs::params { auth = hlookup('auth', $::cascading_defaults, ['cluster', 'hdfs'], 'simple')       } Does it make sense? Thanks, Roman.

[Puppet Users] how to implement cascading defaults based on puppet classes

2013-02-09 Thread Roman Shaposhnik
hdfs::params {...} .. class cluster::hdfs::params { if defined(Class['cluster::hdfs']) { $auth = $cluster::hdfs::auth } elsif defined(Class['cluster']) { $auth = $cluster::auth } else {

Re: [Puppet Users] Thoughts on roles/profiles class paradigm

2013-01-09 Thread Roman Shaposhnik
#x27;roles' and 'profiles', And as I mentioned I find profiles to be quite useful. Its the role concept that I'm not necessarily > * A role contains business logic Could you give an example here? What else are roles, but a flat collection of profiles? Thanks, Roman

Re: [Puppet Users] Thoughts on roles/profiles class paradigm

2013-01-09 Thread Roman Shaposhnik
ues do you think it will help you solve. Now, having 'profiles' as the place to handle inter-module dependencies seems like a pretty good idea. Thanks, Roman. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this gro

Re: [Puppet Users] How manage xml elements as resources?

2013-01-07 Thread Roman Shaposhnik
l du jour for that would be augeas. That said, if the config file actually happens to be under your manifest control fully (even though different resources are depositing bits and pieces of configuration info into it) you could go with virtual resource template and sed. Thanks, Roman. -- You rece

Re: [Puppet Users] How to manage one line in a file by puppet

2013-01-04 Thread Roman Shaposhnik
ve the rest of > the file untouched. > > Which would be the best way to do this? > > I see two options: There's an extra option involving augeas that may work for you: http://projects.puppetlabs.com/projects/1/wiki/puppet_augeas Thanks, Roman. -- You received this mes

Re: [Puppet Users] Hostname wildcards in module

2012-12-27 Thread Roman Shaposhnik
s system::files { > case $hostname { Off the top of my head you may want to try $::fqdn instead. Thanks, Roman. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To u

Re: [Puppet Users] How to specify dependency

2012-12-26 Thread Roman Shaposhnik
Unless I've misunderstood your question, wouldn't a simple dependency of the following kind work? require => Apt::Ppa[ "ppa:nginx/stable" ] Thanks, Roman. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post

Re: [Puppet Users] how to add a user to puppet

2012-12-21 Thread Roman Shaposhnik
Hi! It really isn't quite clear what the context here is. Could you tell us a bit more about your setup? Thanks, Roman. On Fri, Dec 21, 2012 at 12:22 PM, Murali Babu wrote: > Hi, > > some one please help me with following, > > > how to add a user to puppet > how to

Re: [Puppet Users] Whats the best approach to create a repo of the installers to be used for installing and upgrading in the puppet managed nodes

2012-12-21 Thread Roman Shaposhnik
se tarballs: https://github.com/jordansissel/fpm Thanks, Roman. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send

Re: [Puppet Users] How to only apply my manifests to certain classes?

2012-12-20 Thread Roman Shaposhnik
l * good ol' case statements in your site.pp case $::fqdn { } * manual execution of puppet apply with that single class given to it echo 'your_class' | puppet apply Please let us know a bit more about your setup. Thanks, Roman. -- You received this

Re: [Puppet Users] Question on modeling multiple services sharing configuration

2012-12-17 Thread Roman Shaposhnik
rse ;-)). > * use the standard template function with multiple arguments; look at > http://docs.puppetlabs.com/guides/templating.html and scroll down to > "Combining templates" You lost me there -- would you mind elaborating how these type of 'Combining templates' could

Re: [Puppet Users] Question on modeling multiple services sharing configuration

2012-12-16 Thread Roman Shaposhnik
> Make the common configuration file virtual. Give it a default "dummy" > configuration file with replace = false (I do this because creating a file > with augeas seems a bit shaky to me) replace = false ? Could you elaborate, please? Thanks, Roman. -- You received thi

Re: [Puppet Users] Question on modeling multiple services sharing configuration

2012-12-16 Thread Roman Shaposhnik
he names themselves are descriptive (and they are NOT order sensitive). The only problem with them is that you can't tell by just looking at a name where the property should go. Thanks, Roman. -- You received this message because you are subscribed to the Google Groups "Puppet Users" gro

[Puppet Users] Question on modeling multiple services sharing configuration

2012-12-15 Thread Roman Shaposhnik
but it seems I can't pass any values into it. I suppose I can still do that and create a skeleton of the common config in that singleton class that would later be manipulated either by augeas or concat patterns, but this seems to be pretty heavyweight. What would you, guys, recommend? Tha

Re: [Puppet Users] exec GIT Variable PS1

2012-12-11 Thread Roman Shaposhnik
git_ps1 " \"" (%s)"\"")]\$ ' The single quote following PS1= closes the string and the next character puppet parser sees is [ -- that's what it seems to complain about. Thanks, Roman. -- You received this message because you are subscribed to the Google

[Puppet Users] Any advice on how to debug Could not evaluate: Puppet::Util::Log requires a message

2012-12-05 Thread Roman Shaposhnik
of what it could be? Or at least how can I go about debugging what's wrong? I'm running puppet 2.6.17 (from epel) on CentOS 6.3 Thanks, Roman. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send e

[Puppet Users] Re: client won't use remote file bucket

2010-11-08 Thread Roman
Hi James. Could you tell if you found a resolution to this problem? I seem to experience it as well. Thanks in advance, Regards, Roman On Oct 20, 2:31 am, "luke.bigum" wrote: > Hi all, > > I'm having a stupid moment getting a remote file bucket working. My > clien