[Puppet Users] directory mode

2013-01-30 Thread Kubes
Hello, I am trying to set all the directroes in the tree to 775 and files to 664 with Puppets fie resource. This woks fine with native chmod: # chmod -R a=r,ug+Xw,o+X But if I us this in puppet all is set to 775 file { "/etc/puppet": ensure => directory, recurse => true, ignore => ".git", o

[Puppet Users] How to set logging destinations via puppet.conf?

2013-02-05 Thread Kubes
All, Even though I have looked at the documentation and search this group, I can seem to find a clear answer. Can puppet logging preferences be controlled via puppet.conf? In the docs there are two variables that control this: puppetdlog

[Puppet Users] How to set logging destinations via puppet.conf?

2013-02-05 Thread Kubes
All, Even though I have looked at the documentation and search this group, I can seem to find a clear answer. Can puppet logging preferences be controlled via puppet.conf? In the docs there are two variables that control this: puppetdlog

[Puppet Users] Relize uses buy groups membership

2013-02-14 Thread Kubes
Hello, I have created my users via virtual definitions and hiera. Now I want to realize the virutal users by "groups". I have an trying the following syntax: User::Virtual <| groups == wheel |> BTW: This works fine: User::Virtual <| title == bsmith |> Is the there a comparison for "

[Puppet Users] Re: Relize uses buy groups membership

2013-02-15 Thread Kubes
Thanks. I am using 3.1 Thanks On Friday, February 15, 2013 12:12:59 AM UTC-5, Kubes wrote: > > Hello, > > I have created my users via virtual definitions and hiera. Now I want to > realize the virutal users by "groups". > > I have an trying the following syntax

[Puppet Users] User Groups (hadnling undefine groups)

2013-03-19 Thread Kubes
I am trying to handle in my user class assigning user to groups, and handling that some groups might not be defined for that node. Example here is handling a non-datase node, "juser" fails with "Error: Failed to apply catalog: Parameter groups failed on User[juser]: Group names must not be e

[Puppet Users] Correct means to tell if a class is instantiated/defined

2013-03-20 Thread Kubes
All, I am using puppet 3.1.1 and I need to know if a class has been defined. I have tried defined() and tagged(), but neither seem to work. They either return true when the class was not include for that node or false when it is included. Here is the use case: My admin users are defined (vi

Re: [Puppet Users] Correct means to tell if a class is instantiated/defined

2013-03-20 Thread Kubes
Thanks for the response. On Wednesday, March 20, 2013 8:43:00 AM UTC-4, Felix.Frank wrote: > > Hi, > > On 03/20/2013 01:37 PM, Kubes wrote: > > I am using puppet 3.1.1 and I need to know if a class has been defined. > > I have tried defined() and tagged(), but nei

[Puppet Users] puppet node [clean, find, search] questions

2013-03-29 Thread Kubes
A few questions on "puppet node". I am using 3.1.1 What is the different of find and search? I have done a puppet clean node and its seems to only partially have worked. A #find /var/lib/puppet -name '*' , does not find any files A puppet node search '*' --node_terminus yaml --clientya

[Puppet Users] ssh_authorized_key errors in RHEL6

2013-04-02 Thread Kubes
I am using puppet to manage ssh keys, it works fine all but one system, which its a true RHEL6 (vs CentOS and Amazon distos) (Puppet 3.1.1). Not sure even sure where to look to troubleshoot the issue. I have disabled selinux for testing too. Any suggestions would be greatly appreciated. Her

Re: [Puppet Users] ssh_authorized_key errors in RHEL6

2013-04-02 Thread Kubes
Thanks Josh chmoding 777 /tmp fixed the issue. mktemp worked fine as root, not as a user, until chmod. Does puppet sudo for sshkeys, etc? puppet is running as root. On Tuesday, April 2, 2013 12:06:52 PM UTC-4, Joshua Hoblitt wrote: > > Hello, > > On 04/02/2013 07:44 AM,

[Puppet Users] calling_module vs module_name ?

2013-04-02 Thread Kubes
In using Hiera, what is the difference between calling_module and module_name? Which is should be used? :hierarchy: - %{environment}/%{calling_module}/common - %{environment}/%{module_name}/common Thanks -- You received this message because you are subscribed to the Google Groups "Pupp

[Puppet Users] defining "roles" (and hiera)

2013-04-03 Thread Kubes
What is the best means to "assign" nodes to a "role" I have review http://www.craigdunn.org/2012/05/239/ also view a post recently with people posting their hirea configs and most of them used a role or server_role, etc In our environment, servers(node) are named by roles, eg: web01.prod.do

[Puppet Users] Using single hiera hash for two create_resources, and mounting filesystems

2013-04-03 Thread Kubes
I am trying to use the same hiera hash to create the mount point and mounts. (Would be nice if mount could create the mount points using 3.1.1) My plan was to define create_mount_points and use create_resources with the same hash, and just though away what I dont use maybe there is a bet

[Puppet Users] dependancies needed for tag skipped classes?

2013-04-04 Thread Kubes
All I am running puppet with tags to skip most of the manifest, and to just to install the admin users... but it seems that entire manifest puppet agent --test --tags User::Admins --debug this fails with err: /Stage[main]/Ruby::Install/Package[rubygem-colored]: Provider gem is not functi

[Puppet Users] service "delete"

2013-04-12 Thread Kubes
Does puppet have a menas to do what chkconfig --del does? -- 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 t

[Puppet Users] API to remove and clean nodes out of the master

2013-04-12 Thread Kubes
Is there an api (rest or gem) to delete a node and also remove from the dashboard? To delete the node like "node clean ", I did not see a remove node in the rest api docs, just a remove the certificate call Not sure of even a command-line to remove from the dashboard. Better even if one call?

[Puppet Users] Re: service "delete"

2013-04-15 Thread Kubes
:56:25 AM UTC-4, jcbollinger wrote: > > > > On Friday, April 12, 2013 3:57:49 PM UTC-5, Kubes wrote: >> >> Does puppet have a menas to do what chkconfig --del does? >> >> > Puppet can run "/sbin/chkconfig --del foo" for you via an Exec, but why >

[Puppet Users] Re: How to remove a node from Puppet CA, Puppet DB from a remote host

2013-04-19 Thread Kubes
To remove the certificate you can use the REST api http://docs.puppetlabs.com/guides/rest_api.html DELETE /{environment}/certificate_status/{hostname} As for removing the node, I dont have an answer, I have posted the question here prior and have yet to obtain a response. For now I an using ss

[Puppet Users] Re: Yum cannot "see" puppet-3.2.0-0.1rc1

2013-04-19 Thread Kubes
Is the "puppetlabs-devel" repo enabled? [puppetlabs-devel] ... enabled=1 On Friday, April 19, 2013 10:50:12 AM UTC-4, Ygor wrote: > > RHEL 5, x86_64 > > The rpm is there -- > https://yum.puppetlabs.com/el/5/devel/x86_64/puppet-3.2.0-0.1rc1.el5.noarch.rpm > > > But yum cannot see it to pull

[Puppet Users] using a "test" within an if in a manifest

2013-04-26 Thread Kubes
Does puppet have a similar syntax in a manifest? if [ -f /somefile ] { ... } Looking to test for -d -p -b, etc I know that exec has this feature, but am looking to conditionally mount. I have thought of other use cases too. Thanks! -- You received this message because you are subscribed t