Re: [Puppet Users] dynamic data in hiera
i have the same problem with cpu... You are using stororeconfigs? Douglas Brancaglion 2012/10/17 pdcleyn peter.decl...@gmail.com thx! that works! However, in testing just now I bumped against something strange. When I add %{$nodeID} (which I should not), the CPU usage of the puppet master shoots to 100% and stays there. The client will eventually time out (execution expired) and the puppet master keeps burning CPU cycles. This is a test setup up, so no other nodes are connected but one and it is quite reproducable on this setup. Is this a known issue? Peter Op woensdag 17 oktober 2012 16:30:03 UTC+2 schreef R.I. Pienaar het volgende: - Original Message - From: Peter De Cleyn pe...@decleyn.net To: puppet...@googlegroups.com Sent: Wednesday, October 17, 2012 3:24:30 PM Subject: [Puppet Users] dynamic data in hiera Hi list, I wondered if I could include 'dynamic' data inside a hiera yaml file. I would like to be able to add variables in scope of the resource which performs a hiera call. So e.g. in hiera yaml: address: 192.168.1.#{nodeID} try %{nodeID} -- You received this message because you are subscribed to the Google Groups Puppet Users group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/uoayA6QJge8J. 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. -- Douglas Brancaglion Security Analist -- 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 email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Puppetd
Hi guys, I updated my 3.0.1 to 2.7.19 puppet, puppet command but disappeared. How do I sync manually? example pupped-vt hugs, -- Douglas Brancaglion Security Analist -- 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 email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Using Virtual Resource in custom resource type
Hi! I am facing difficulties in using the virtual resource types in resorce custom, I have a definition of user creation as shown below: define add_user ( $email, $uid, $key, $groups ) { $username = $title user { $username: comment= $email, groups = $groups, managehome = true, home = /home/$username, shell = /bin/bash, uid= $uid } file { /home/$username/: ensure = directory, owner = $username, group = $username, mode= 700, require = [ user[$username] ] } file { /home/$username/.ssh: ensure = directory, owner = $username, group = $username, mode= 700, require = file[/home/$username/] } # now make sure that the ssh key authorized files is around file { /home/$username/.ssh/authorized_keys: ensure = present, owner = $username, group = $username, mode= 600, require = file[/home/$username/] } ssh_authorized_key{ ${username}: ensure = present, type= ssh-rsa, user= $username, key = $key, } } And in my users manifests I declare this way: @add_user { test: email = user test, uid = 1040, groups = apache, key = B3NzaC1yc2EDAQfTRr6mUam1rIiwWhseaRP9M83L2NXFBMix4d7q1xkO/bMqCvvRPjzVzQNGhEJFn8Pjz2pr+QcK2c2yqceSTpbVoxM8Gg5/dXwKv+ct4qKjLVtSty8s/VW8g+kI3N5R9Xv1SG7exJdutKfEnoCGY4lXjrU11fvCZq5Zrc5, } and in my node i declare this way: import custom_resource import users_manifests node server01.domain { -- Douglas Brancaglion Security Analist -- 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 email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Virtual Resources with variables
Hi! I am facing difficulties in using the virtual resource types in resorce custom, I have a definition of user creation as shown below: define add_user ( $email, $uid, $key, $groups ) { $username = $title user { $username: comment= $email, groups = $groups, managehome = true, home = /home/$username, shell = /bin/bash, uid= $uid } file { /home/$username/: ensure = directory, owner = $username, group = $username, mode= 700, require = [ user[$username] ] } file { /home/$username/.ssh: ensure = directory, owner = $username, group = $username, mode= 700, require = file[/home/$username/] } # now make sure that the ssh key authorized files is around file { /home/$username/.ssh/authorized_keys: ensure = present, owner = $username, group = $username, mode= 600, require = file[/home/$username/] } ssh_authorized_key{ ${username}: ensure = present, type= ssh-rsa, user= $username, key = $key, } } And in my users manifests I declare this way: @add_user { test: email = user test, uid = 1040, groups = apache, key = B3NzaC1yc2EDAQfTRr6mUam1rIiwWhseaRP9M83L2NXFBMix4d7q1xkO/bMqCvvRPjzVzQNGhEJFn8Pjz2pr+QcK2c2yqceSTpbVoxM8Gg5/dXwKv+ct4qKjLVtSty8s/VW8g+kI3N5R9Xv1SG7exJdutKfEnoCGY4lXjrU11fvCZq5Zrc5, } and in my node i declare this way: import custom_resource import users_manifests node server01.domain { realize User[test] } but i receive that error message: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to realize virtual resources User[dbrancaglion] Sorry duplicate message, my browser crashed!! Can help me? Tks! -- Douglas Brancaglion Security Analist -- 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 email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Virtual Resources with variables
Tks! Work fine now. Hugs, 2012/8/21 Walter Heck walterh...@gmail.com Realize add_user instead of user.. Sent from my galaxy tab On Aug 22, 2012 3:01 AM, Douglas Brancaglion douglas.rea...@gmail.com wrote: realize } On Aug 22, 2012 3:01 AM, Douglas Brancaglion douglas.rea...@gmail.com wrote: Hi! I am facing difficulties in using the virtual resource types in resorce custom, I have a definition of user creation as shown below: define add_user ( $email, $uid, $key, $groups ) { $username = $title user { $username: comment= $email, groups = $groups, managehome = true, home = /home/$username, shell = /bin/bash, uid= $uid } file { /home/$username/: ensure = directory, owner = $username, group = $username, mode= 700, require = [ user[$username] ] } file { /home/$username/.ssh: ensure = directory, owner = $username, group = $username, mode= 700, require = file[/home/$username/] } # now make sure that the ssh key authorized files is around file { /home/$username/.ssh/authorized_keys: ensure = present, owner = $username, group = $username, mode= 600, require = file[/home/$username/] } ssh_authorized_key{ ${username}: ensure = present, type= ssh-rsa, user= $username, key = $key, } } And in my users manifests I declare this way: @add_user { test: email = user test, uid = 1040, groups = apache, key = B3NzaC1yc2EDAQfTRr6mUam1rIiwWhseaRP9M83L2NXFBMix4d7q1xkO/bMqCvvRPjzVzQNGhEJFn8Pjz2pr+QcK2c2yqceSTpbVoxM8Gg5/dXwKv+ct4qKjLVtSty8s/VW8g+kI3N5R9Xv1SG7exJdutKfEnoCGY4lXjrU11fvCZq5Zrc5, } and in my node i declare this way: import custom_resource import users_manifests node server01.domain { realize User[test] } but i receive that error message: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to realize virtual resources User[dbrancaglion] Sorry duplicate message, my browser crashed!! Can help me? Tks! -- Douglas Brancaglion Security Analist -- 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 email 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 group. 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. -- Douglas Brancaglion Security Analist -- 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 email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Puppet commands require root access
use sudo command in exec, no problem, but you need to configure sudoers file. 2012/6/25 Worker Bee beeworke...@gmail.com Hi Everyone; Why does running puppet resource require root/sudo access? Is it supposed to be this way or do I have a permissions issue? I installed using the gzip files... Thanks! -- 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 email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- Douglas Brancaglion Security Analist -- 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 email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Use onlyif in EXEC
Hi guys! I need configure one command exec with onlyif parameter. I want test file size exist or no. Ho i do this? Tks in advanced. Douglas -- 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 email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Set hourly of execution with service puppet
Hi guys! I'm from Brazil, and i'm learning puppet. I need set interval in puppet client for sync with puppetmaster... How i do it? Sorry my english Douglas -- 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 email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.