Re: [Puppet Users] Auditing users (AD+local) and groups

2014-07-24 Thread Eduardo A Muñoz
Hi, for this problem you would be better off with other tools. Nevertheless you could create a facter thar list all the users in the system and use that information in a class to check and save against a centralized db. On Jul 23, 2014 4:35 PM, "huhm4n" wrote: > I'm trying to audit local users

[Puppet Users] error when create database mysql with puppetlabs-mysql (v1.0.0)

2013-09-23 Thread Eduardo Terzella
Good evening, folks. Using the module's puppet forge to create a database I get an error below. Could you help me? *puppetlabs-mysql (v1.0.0) * *class mysql_default {* * * *mysql::db { 'mydb':* * user => 'root',* * password => '123456',* * host => 'localhost',* *

[Puppet Users] Error 400 on SERVER: Could not find class pentaho for server.test.com

2013-09-09 Thread Eduardo Terzella
Good morning , I could help to debug this problem ? "puppet agent - test" Debug: catalog supports formats: b64_zlib_yaml dot pson raw yaml; using pson Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class pentaho for s

[Puppet Users] Error on tried to used this module in development environment.

2013-09-09 Thread Eduardo Terzella
Good morning , I could audar to debug this problem ? "puppet agent - test" Debug: catalog supports formats: b64_zlib_yaml dot pson raw yaml; using pson Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class pentaho for srvdev206.cia.stefanini.com on nod

[Puppet Users] Remove msi from windows 7

2013-04-06 Thread Eduardo Terzella
Hello, Could someone help me to understand why the place absent, the package you are installing is not removed? package { 'mozilla': ensure => absent, provider => 'windows', source => 'C:\packages\mozilla-firefox.msi', } -- You received this message because you are subscribed to th

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

2013-02-25 Thread eduardo
ame}", } } } where $services is array of services from ENC. But it have been unsuccessfully. I can see notifies messages foreach element from array but status script is not executed like i expected foreach item. regards, eduardo. El sábado, 23 de febrero de 2013 12:33:51 UTC-5

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

2013-02-23 Thread eduardo
Is there simple way to do it ?. Thanks in advanced, eduardo. -- 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...@googlegro

Re: [Puppet Users] Re: [facter]Bug can't get : ipaddress_ethX

2012-11-28 Thread Eduardo A Muñoz
Haven"t read the code yet... But cmd facter xx executes the xx plugin and print the return value. the ipaddress_ethX are part of the ipaddress plugin that is the one that should be executed. Nonetheless as the ipaddress plugin register the ipaddress_ethX facters they would not show either. On Wed

Re: [Puppet Users] check if if file exists on client an master

2012-11-28 Thread Eduardo A Muñoz
I think you would want to create a fact that publish that state to the master. On Wed, Nov 28, 2012 at 3:26 PM, Romain Gales wrote: > Hi pupper community, > > I am working with puppet on Windows and have an issue. > I want to check what version of a package is installed. > My idea was to add a fi

Re: [Puppet Users] Re: delete home directory rescurively

2012-11-26 Thread Eduardo A Muñoz
group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-users/-/dDIVaCy8uOQJ. > > 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 m

Re: [Puppet Users] Unable to connect to master...

2012-11-26 Thread Eduardo A Muñoz
First.. chill pill.. Joking. Plz copy ur puppetmasterd logging. On Mon, Nov 26, 2012 at 5:41 AM, Rajeev Iyer wrote: > Hi , > > I need help here. I am running my master on RHEL 64 bit and I am trying > to connect my agent from Solaris running on Solaris 10. > I have put the entries for both m

Re: [Puppet Users] Help writing a custom fact

2012-11-26 Thread Eduardo A Muñoz
Answering the requirement you could do something like. Facter.add("websites_number") do setcode do websites = %x{/bin/ls $websitesdir}.split("\n") 0.upto(websites - 1).each do |n| Facter.add("website_#{n}") do setcode do websites[n] end end websites.

[Puppet Users] Trying to delete home directory while deleting accounts.

2012-10-05 Thread eduardo
Hi all, I wondering why having provider=useradd the parameter managehome => true don't delete home directory ? I have : user { $name: ensure => absent, managehome => true } As result, home directory was not deleted. I appreciate any advise about it. Thanks in advanced, eduardo --

[Puppet Users] Trying install module behind proxy squid. Any progress on bug reported 15453 ?.

2012-08-15 Thread eduardo
d server response is : X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0\r \n I found bug report at http://projects.puppetlabs.com/issues/15453. I can't do any remote operation, like search . Is there any progress about it ?. regards, eduardo -- You received this message because you are subscr

[Puppet Users] Re: How to delete users from groups ?

2012-07-23 Thread eduardo
Hi Paul, I found note in http://projects.puppetlabs.com/issues/7241. So I can do it using membership => inclusive (instead of key_membership) I appreciate your help. Regards, eduardo. On 23 jul, 02:05, Paul Tötterman wrote: > Hi eduardo, > > >   Is there another way to do

[Puppet Users] Re: How to delete users from groups ?

2012-07-23 Thread eduardo
; inclusive, groups => [$groups] } am i missing something ? I have puppet version 2.7.1. Regards, eduardo. On 23 jul, 02:05, Paul Tötterman wrote: > Hi eduardo, > > >   Is there another way to do it ?. > > user { "$username": >   ensure => pres

[Puppet Users] How to delete users from groups ?

2012-07-22 Thread eduardo
to do it ?. Thanks in advanced. eduardo. -- 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...

Re: [Puppet Users] How to get puppetmaster's base directory into a variable ?

2012-07-22 Thread eduardo
James Glenn ha escrito: > On Sat, Jul 21, 2012 at 9:36 PM, eduardo wrote: > > > Dears all, > > > > I need set variable $puppet_base_dir on my prerequisites class with > > confdir parameter value of puppetmaster. I need the variable to be > > used as base d

[Puppet Users] How to get puppetmaster's base directory into a variable ?

2012-07-21 Thread eduardo
be a dumb solution. Is there a simple way to do it ?. Thanks in advanced. eduardo. -- 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

[Puppet Users] Re: groups dependencies at user creation

2012-07-08 Thread eduardo
I can rest without any fear about not have Group -> User dependencies explicitly in it, in fact puppet is smart enough as i was suspecting . I appreciate all help, this time particularly to Stefan. Best Regards, eduardo. On 7 jul, 11:19, Stefan Schulte wrote: > On Mon, Jul 02, 2012 at

[Puppet Users] Re: groups dependencies at user creation

2012-07-08 Thread eduardo
proach can be less hurtful for puppet design and obviously for my good health. I appreciate all your help Best Regards, eduardo. PD : The following are details of this approach . - class updssh( $users ) { $all_groups = inline_template( "<% user

[Puppet Users] Re: groups dependencies at user creation

2012-07-07 Thread eduardo
Thanks you John, I'm taking notes. Best Regards, eduardo. On 5 jul, 09:48, jcbollinger wrote: > On Tuesday, July 3, 2012 4:43:24 PM UTC-5, eduardo wrote: > > > Thanks your answers. > >  I don't figure out how avoid execute because i have a massive input >

[Puppet Users] Re: How to get an input file to a facter ?

2012-07-06 Thread eduardo
Hi John, I build a custom function to filter whitelisted. I didn't realized that custom functions can call facter by lookupvar. Thanks you for your suggestions. Best Regards, eduardo. On 6 jul, 16:34, eduardo wrote: >  John I really appreciate all your effort to help me. &g

[Puppet Users] Re: How to get an input file to a facter ?

2012-07-06 Thread eduardo
access to a box then it's mine. Do not give > administrative privileges to people you do not trust. Agree too John , but i have not choice , it's an scenario created by my employers. Thanks you. I'm going to recheck filter whitelisted. Best Regards, eduardo. On 6

[Puppet Users] Re: How to get an input file to a facter ?

2012-07-06 Thread eduardo
at is done by the facter. As you can see it's non-normal scenario. Do you see any problem about solution based on run stages ?. Thanks you, eduardo. On 5 jul, 17:26, jcbollinger wrote: > On Thursday, July 5, 2012 11:33:03 AM UTC-5, eduardo wrote: > > > I need a fa

[Puppet Users] Re: How to get an input file to a facter ?

2012-07-05 Thread eduardo
;< line.chomp } locals = Array.new Etc.passwd {|u| locals << u.name unless u.dir[0,5] != "/ home" } ret = locals - whitelist ret.join(',') ---- On 5 jul, 12:16, eduardo wrote: >  John the

[Puppet Users] Re: How to get an input file to a facter ?

2012-07-05 Thread eduardo
ist to all nodes. Regards, eduardo. On 5 jul, 11:58, eduardo wrote: >  Thanks you john for your answer. I comment you something that work > well for me. > >  I think get a solution while reading puppet cookbook. It's based on > run stages. > >  I have site.pp : &

[Puppet Users] Re: How to get an input file to a facter ?

2012-07-05 Thread eduardo
to class updssh stage { "first": before => Stage["main"] } class { "sync_files": stage => "first" } That's all. Testing results are good enough. Regards, eduardo. On 5 jul, 11:43, jcbollinger wrote: > On Wednesday

[Puppet Users] Re: How to get an input file to a facter ?

2012-07-04 Thread eduardo
'etc' Facter.add("localusers") do setcode do # Whitelist users to exclude for checking valid ssh users whitelist = Array.new File.readlines("/etc/puppet/whitelist").each { |line| whitelist << line.chomp } - On 4 j

[Puppet Users] How to get an input file to a facter ?

2012-07-04 Thread eduardo
to get a file from puppetmaster to be read it by a facter ?. If it's not, I appreciate any suggestion about it. Thanks in advanced, eduardo. -- 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] Re: groups dependencies at user creation

2012-07-03 Thread eduardo
It's important to say that updssh::user_keys , updssh::check_groups and updssh::load_ssh_key are defined resource types. On 3 jul, 17:43, eduardo wrote: >  Thanks your answers. >  I don't figure out how avoid execute because i have a massive input > account by ENC json se

[Puppet Users] Re: groups dependencies at user creation

2012-07-03 Thread eduardo
at don't exist. Also i enjoy using functions like 'defined' which it's great to check current status. Regards, eduardo. On 3 jul, 13:57, Nan Liu wrote: > On Tue, Jul 3, 2012 at 10:46 AM, Tim Mooney wrote: > > In regard to: [Puppet Users] Re: groups dependencies a

[Puppet Users] Re: groups dependencies at user creation

2012-07-03 Thread eduardo
oup = $arr[1] if ! defined(Group[$group]) { group { $group: ensure => present } } } I'm pretty sure it's a first one version that it's giving to me a chance to go on. Best Regards, eduardo. On 2 jul, 17:0

[Puppet Users] Re: groups dependencies at user creation

2012-07-02 Thread eduardo
up[sudo]Group[admin]Group[deploy]' for relationship on 'User[ppuser7]' on node casa Is there any way to work around ?. Regards, eduardo. On 2 jul, 13:20, Tim Mooney wrote: > In regard to: [Puppet Users] groups dependencies at user creation, eduardo...: > > > &g

[Puppet Users] groups dependencies at user creation

2012-07-02 Thread eduardo
comment => "$email", home=> "/home/$username", shell => "/bin/bash", password => "!!", groups => $groups } -- How to ensure groups depen

[Puppet Users] Re: Trying link to home directory

2012-06-30 Thread eduardo
Hi Felix, I got the other way you suggest me and finally I have a link in my home having target /etc/puppet defined like git repository and set files permissions to allow me edit them. I appreciate your help, Best Regards, eduardo. On 29 jun, 10:16, eduardo wrote: >  Thanks you Fe

[Puppet Users] Re: Trying link to home directory

2012-06-29 Thread eduardo
Thanks you Felix for clarify me about /etc/puppet directory. I'm googling looking for git and puppet and i realize that there are another ways i can get advantage of nevertheless i'll check trick you suggest me. Regards, eduardo. On 29 jun, 09:34, Felix Frank wrote: > On

[Puppet Users] Re: Trying link to home directory

2012-06-28 Thread eduardo
ast task done (by co-workers admins) only when testing version at staging branch is good enough. This is our scenario and I pretend to use puppet development locally in my /home dir. just like i used to do. Regards, eduardo. On 28 jun, 11:24, Juan Sierra Pons wrote: > 2012/6

[Puppet Users] Re: Trying link to home directory

2012-06-28 Thread eduardo
> I think the right (my) approach is having a have a central repository > (doesn't matter if it is you home directory) and deploy to the > puppetmaster on demand using the repository tools: git push/pull, etc. Of course, we have a central repository on beanstalk. Regards, edua

[Puppet Users] Re: Trying link to home directory

2012-06-28 Thread eduardo
pretend a soft link /etc/puppet to target /home/era/ speedy_repo/puppet-eduardo/puppet/ files owned by 'era' not by 'root', so I can edit then and git operations like 'era'. On 28 jun, 09:46, Juan Sierra Pons wrote: > 2012/6/28 eduardo : > > > > >

[Puppet Users] Re: Trying link to home directory

2012-06-28 Thread eduardo
you, eduardo. On 28 jun, 08:11, Juan Sierra Pons wrote: > 2012/6/28 eduardo : > > > > > > > > > > > Dears all, > > >  I have been master and agent in the same machine, to did it I took > > fromhttp://madduck.net/blog/2010.03.11:splitting-puppe

[Puppet Users] Trying link to home directory

2012-06-28 Thread eduardo
trying something like : root@casa:/# service puppetmaster stop * Stopping puppet master[ OK ] root@casa:/# ln -s /home/era/speedy_repo/puppet-eduardo/puppet/ /etc/ puppet root@casa:/# ls -ld /etc/puppet # LOOKS GOOD . lrwxrwxrwx 1 root root 44 2012

[Puppet Users] Re: how to refresh ssh/authorized_keys file content ?

2012-06-15 Thread eduardo
Thanks you Nan, your answer is very clear about it. I'd got template way. Regards, eduardo. On 15 jun, 11:19, Nan Liu wrote: > On Fri, Jun 15, 2012 at 6:21 AM, eduardo wrote: > >  Having advised : > >  'it is highly recommended to migrate work from exec to n

[Puppet Users] Re: how to refresh ssh/authorized_keys file content ?

2012-06-15 Thread eduardo
Having advised : 'it is highly recommended to migrate work from exec to native Puppet types as quickly as possible.' Is there any chance to purge keys ? Do nothing writing resources { "ssh_authorized_key": purge => true } in my init.pp module. Regards, edua

[Puppet Users] Re: how to refresh ssh/authorized_keys file content ?

2012-06-13 Thread eduardo
Thanks you felix for answer me. I owe you another one. The bad news I tried resources { "ssh_authorized_key": purge => true } but don't result. The good one is templates are great for it. I appreciate your help, Bests regards, eduardo. On 13 jun, 03:34, Felix

[Puppet Users] how to refresh ssh/authorized_keys file content ?

2012-06-12 Thread eduardo
ot desired result. I think is possible create content file using template but before leave ssh_authorized_key resource type way I want to know any other chance. Regards, Eduardo. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group

[Puppet Users] Re: ENC Puppet DSL with inline_template

2012-06-10 Thread eduardo
ers_array: } define one_user() { $u = split($title, '[:]') ----- This way the inline_template parameter is not readable but it's the way to do it. Regards, eduardo. On 9 jun, 10:03, eduardo wrote: >  errata for 2) , It should be > > Putting function split in a hea

[Puppet Users] Re: ENC Puppet DSL with inline_template

2012-06-09 Thread eduardo
errata for 2) , It should be Putting function split in a head of class having unique sense to check for structure is tell me that parameter is an array not expected hash variable. Why ? sorry On 9 jun, 09:48, eduardo wrote: >   Dear all, > >   I'm trying to do mass update s

[Puppet Users] ENC Puppet DSL with inline_template

2012-06-09 Thread eduardo
users: - ppuser7: type: ssh-rsa user_auth: JOJOXX user_ssh: ppuser7 key: XXLLAVEXX_DE_PRUEBA_UPD_SSH_PARA_PPUSER7 email: ppus...@speedy.com - ppuser8: type: ssh-rsa user_ssh: ppuser8 key: LLAVEXX_DE_PRUEBA_UPD_SSH_PARA_PPUSER8 email:

[Puppet Users] Re: how to avoid ssh_authorized_key duplicates ?

2012-06-08 Thread eduardo
Hi Felix, yes, I'm trying to reading authorized key files to check new line. thanks for explain me it's a wrong way. Finally, i realize about key name content (comment) is essencial and tests are good. I appreciate your help, regards, eduardo. On 8 jun, 03:55, Felix Frank w

[Puppet Users] Re: how to avoid ssh_authorized_key duplicates ?

2012-06-07 Thread eduardo
Thanks you Jo for your help, issue solved. there is not duplicate lines keeping same value on comment field. Regards, Eduardo. On 7 jun, 21:13, Jo Rhett wrote: > On Jun 7, 2012, at 5:26 PM, eduardo wrote: > > > To be more clear, I'm trying to allow the same key for difere

[Puppet Users] Re: how to avoid ssh_authorized_key duplicates ?

2012-06-07 Thread eduardo
File.open( ... ) : err: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::Compiler failed with error Errno::EACCES: Permission denied - /home/ppuser6/.ssh/authorized_keys on node casa I fixed /etc/puppet/fileserver.conf and permission files but I don't get it

[Puppet Users] Re: how to avoid ssh_authorized_key duplicates ?

2012-06-07 Thread eduardo
re puppet solution. Meanwhile, I'm learning at the same enjoy puppet package. I appreciate your help eduardo. On 7 jun, 03:49, Felix Frank wrote: > Hi, > > On 06/05/2012 05:17 PM, eduardo wrote: > > > > > > > > > > >  First one is about how to

[Puppet Users] how to avoid ssh_authorized_key duplicates ?

2012-06-05 Thread eduardo
king for solution I found a reference to file_line customs facts into https://github.com/puppetlabs/puppetlabs-stdlib, it's amazing functionality for run on agents, so my second question is about documentacion for customs facts, where can i find it ? Thanks in advanced, eduardo.

[Puppet Users] Re: error trying ENC.

2012-06-04 Thread eduardo
Thank you very much, I had read it many , many , many times, but I don't realize about that HEADLINE. I appreciate your help and I'm going to upgrade. Regards, eduardo. On 4 jun, 15:39, Rémi wrote: > Hi, > > You need Puppet 2.6.5 to use ENC and parametized class. &g

Re: [Puppet Users] Foreman 0.2 Release Candidate

2011-03-22 Thread Eduardo S. Scarpellini
RPM checks the linked libraries (ldd) and some shbangs (#!) in buildtime (rpmbuild). These deps could came from these ruby-ee shbang paths. On Mar 22, 2011 5:14 PM, "Mohamed Lrhazi" wrote: > am trying to rebuild the source rpm to remove deps on ruby, as i use > entreprise-ruby... > the resulting r

Re: [Puppet Users] Foreman 0.2 Release Candidate

2011-03-22 Thread Eduardo S. Scarpellini
Super cool, Ohad. Is there a RPM for this RC? On Mar 22, 2011 4:52 PM, "Martin Willemsma" wrote: > Thanks guys. Really cool new features to try out tomorrow! > > I would love to see the unattended installation part replace our deployer > solution which is currently installing hosts 1 by 1. > > --

Re: [Puppet Users] Re: Considerations for puppet/cluster to manage 6000 hosts.

2011-01-17 Thread Eduardo S. Scarpellini
t; 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 mo

Re: [Puppet Users] Considerations for puppet/cluster to manage 6000 hosts.

2011-01-08 Thread Eduardo S. Scarpellini
e Groups > "Puppet Users" group. > To post to this group, send email to puppet-us...@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/pup

Re: [Puppet Users] Reading Puppet reports with Python

2010-10-04 Thread Eduardo S. Scarpellini
u want :) 2010/9/28 Douglas Garstang > > On Tue, Sep 28, 2010 at 9:50 AM, Eduardo S. Scarpellini < > scarpell...@gmail.com> wrote: > >> Douglas, >> I've started my tests with Python + Puppet Yaml yesterday, based on >> http://www.mailinglistarchive.com/html/pu

Re: [Puppet Users] Using Puppet to Configure Other Services on the PuppetMaster Server

2010-10-04 Thread Eduardo S. Scarpellini
r more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > -- Eduardo S. Scarpellini -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googl

Re: [Puppet Users] "Good" usage of --parseonly

2010-10-04 Thread Eduardo S. Scarpellini
ibed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-us...@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://group

Re: [Puppet Users] Reading Puppet reports with Python

2010-09-28 Thread Eduardo S. Scarpellini
> -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-us...@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com > .

[Puppet Users] Re: Puppet 0.25: FIlebucket (doesn't work)

2010-09-10 Thread Eduardo S. Scarpellini
Replying myself: There is a bug on 0.25.x :( http://groups.google.com/group/puppet-users/browse_thread/thread/df15442ae64ae7c2 http://projects.puppetlabs.com/issues/3807 []s 2010/9/8 Eduardo S. Scarpellini > Hackers, > I work on one of the biggest ISP's in Brazil where we'v

[Puppet Users] Puppet 0.25: FIlebucket (doesn't work)

2010-09-08 Thread Eduardo S. Scarpellini
er filebucket { main: server => "puppet.tld", } # Set global defaults - including backing up all files to the main filebucket and adds a global path File { backup => main, } Exec { path => "/usr/bin:/usr/sbin/:/bin:/sbin", } import "modules