[Puppet Users] Re: real path on fs to the environment in function

2015-12-01 Thread Vasil Mikhalenya
t::FileSystem.directory?(d) }.shift // this code looks like a hack On Tue, Dec 1, 2015 at 8:07 PM, Vasil Mikhalenya wrote: > Hi all, > > Could you suggest the right way to determine the path to the current > environment in puppet function? I want to store some data outside the > modules

[Puppet Users] real path on fs to the environment in function

2015-12-01 Thread Vasil Mikhalenya
s". files_dir = lookupvar("ssh_key_groups::path_to_keys") files_dir = "files" files_path = env.modulepath.map{|d| d.sub("modules", "")+files_dir }.select { |d| Puppet::FileSystem.directory?(d) }.shift -- Best regards, Vasil Mikhalenya -- You received

[Puppet Users] get current puppet env path

2015-03-10 Thread Vasil Mikhalenya
t;) which is creepy a bit and does not work in Vagrant because of modules-\d Thank you. -- Best regards, Vasil Mikhalenya -- 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,

Re: [Puppet Users] Re: notify on agent from puppet function

2014-02-25 Thread Vasil Mikhalenya
receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/5a518de3-e563-4e2c-867f-80c859b8767e%40googlegroups.com > . > For more options, visit https://groups.google.

[Puppet Users] notify on agent from puppet function

2014-02-24 Thread Vasil Mikhalenya
Hi all, could you advice any way to put a message in puppet agent output from puppet function on master. -- Best regards, Vasil Mikhalenya -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop

[Puppet Users] custom type skip array element on munge

2013-11-01 Thread Vasil Mikhalenya
ewproperty(:groups, :array_matching => :all) do munge do |group| if does_not_exists(group) nil else group end end iterates on all array items and returns array with nil items. Is there way to remove items from array in munge. Thanks. -- Best regards, Vasil Mikhalenya

[Puppet Users] nodes regex

2013-06-21 Thread Vasil Mikhalenya
post bug? -- Best regards, Vasil Mikhalenya -- 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 gro

Re: [Puppet Users] ssh::auth and other ways of managing ssh keys

2013-01-29 Thread Vasil Mikhalenya
To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > -- Best regards, Vasil Mi

[Puppet Users] Re: manage ssh keys sets

2012-12-02 Thread Vasil Mikhalenya
Hi all, simple custom function solved my problem with granting access. I shared code at http://forge.puppetlabs.com/bazilek/ssh_key_groups On Wed, Oct 24, 2012 at 7:01 PM, Vasil Mikhalenya wrote: > Hi all, > > please, advice me best solution to manage ssh keys in my situation: >

[Puppet Users] puppet agent cache files used in exec?

2012-11-28 Thread Vasil Mikhalenya
Exec was run sucessfully my.cnf was changed a long time ago ($outfile was removed in that time also). I suppose Exec started to fail after changing mysql password. Could puppet cache /root/.my.cnf and reread it only after reboot. I see no other explanation. Is it bug? thanks in advance -- Best r

[Puppet Users] manage ssh keys sets

2012-10-24 Thread Vasil Mikhalenya
way to maintain groups ( sets ) easily? I use user creation wrapper and I want to specify key_set => set1 in wrapper parametres in manifest. -- Best regards, Vasil Mikhalenya -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post

Re: [Puppet Users] Re: Upgrade 2.7.9 to 2.7.10; puppet client hangs

2012-02-03 Thread Vasil Mikhalenya
to >> puppet-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/puppet-users?hl=en. > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" grou

[Puppet Users] Group membership dublicated resources

2011-11-17 Thread Vasil Mikhalenya
=> "db1" } wg::web::vhost { "bar": vhost => "vhost1", db => "db2" } } In case of 2 vhosts per node user apache in define is duplicated. How can I get apache to become a member of all users groups ( name passed via $title ) Thank you -