[Puppet Users] Re: Generate Puppet manifiest from server
Anyone knows if there is any possibility to generate a puppet manifiest from a server to use it as a template to other servers?. Take a look at BluePrint http://devstructure.com/blueprint/ Cheers, Paul -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/75324e1c-9688-40c8-81ce-087531d9928d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Re: How to get agents ip address in master manifest file
I have a requirement to get the value of the ip address which send the request for the catalog for the master in one of my manifest file. How can i retrieve it inside master manifest file ? Read about facts: https://docs.puppetlabs.com/learning/variables.html Cheers, Paul -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/a9afb4a9-88a8-4fa8-88b8-cf832b5b4098%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Re: Puppet module for Windows 2012 SNMP Service
Does anyone have a module or example puppet code for turning on SNMP server and setting the community on a Windows 2012 server? I think SNMP on Windows 2012 is deprecated: http://technet.microsoft.com/en-us/library/hh831568 Cheers, Paul -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/8d7617fa-d7f9-4943-ad61-84e63b652242%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] A file managed by puppet that is left alone if customized
For files in user's home directories I would manage the skeleton files using puppet and then when the user account is created they'll be copied into their home directory. That obviously only works for new users though. It won't account for existing users or for updating the file if it hasn't been touched by the user yet. $dir is in home just to make this easily testable using puppet apply. The files I'm planning to manage are in /etc and users have sudo rights. /etc/skel is clearly the right way to handle initial home directory files. Cheers, Paul -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/208cbf21-c3e8-45fe-99ee-5b4ab7e598fe%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Re: A file managed by puppet that is left alone if customized
I actually just had a revelation and thought of a better way: $dir = inline_template('%=ENV[HOME]%') # again, just to make testing using puppet apply easier file { $dir/foo: source = [file://$dir/foo.local, 'file:///etc/motd'] # the latter would typically be a puppet:/// URL } In case the user wishes to make local modifications that are kept, he needs to `ln foo foo.local` and puppet won't copy from the canonical source. Cheers, Paul -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/0346f8d1-a2f0-401d-9847-05f425d656fc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] A file managed by puppet that is left alone if customized
Hi, I'm managing workstations using puppet, and I was wondering if there's a better way to do this: $dir = inline_template('%=ENV[HOME]%') define customizable_file($source=undef,$template=undef,$replacemd5='') { $tmplname = $template ? { undef = $name.common, default = $template, } file { $tmplname: source = $source, } exec { cp $tmplname $name: onlyif = test ! -e $name -o \$(md5sum $name|cut -d' ' -f1)\ = \$replacemd5\, path= ['/bin', '/usr/bin'], require = File[$tmplname], } } customizable_file { $dir/foo-$::hostname: source = 'file:///etc/motd', template = $dir/foo-common, replacemd5 = 'e43e23c6d9a376bedd1ae405be4fdf97', } What I want to achieve is a file that is managed by puppet, but if the user touches it, puppet stops touching the file. Normal file resource with replace doesn't cut it in this case. replacemd5 should be set to the md5 sum of the previous version of the file. I'd really like to see a custom type for this, that would handle templating some nice way, or at least allow one to specify more that one md5sum of previous versions. Obviously this doesn't work well for files that change often. So, is there a better way? Cheers, Paul PS. $dir is set to home so that you can dump the contents to a file and puppet apply it to test. -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/a5a6e496-5853-4a47-a7fb-14ab5f6c1f4e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Re: file_line manifest
Hi, Can you have an idea? Your regular expression doesn't match the existing setting. Since you are dealing with an ini-file, try using puppetlabs-inifile https://forge.puppetlabs.com/puppetlabs/inifile instead of file_line. Cheers, Paul -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/66943f2e-a45e-4a48-b039-5f2f3b1e2f7e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] Re: Windows msi needed to udpate dns server list
Does anyone have a suggestion of how to do this using and msi? I plan to use the puppet agent to run the msi to make the updates, but if someone has a different suggestion on puppet to mange that list of IP addresses on windows, we are open to suggestions !! Modify the settings in registry? https://forge.puppetlabs.com/puppetlabs/registry https://serverfault.com/questions/67637/find-xp-client-dns-settings-in-the-registry Cheers, Paul -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/2288c7de-3b0a-48b0-88f2-fda693ef3bde%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] when a puppet exec resource contains several single commands, puppet exec only fails if the last exec command fails
in bash, for example, if you type set -e first, bash will stop and fail as soon as a concatenated command fails. (i agree that this behaviour is unfortunatelly not enabled by default in bash scripts) exec {'test': command = /bin/ls /doesnotexit; /bin/echo hello, } Use: exec { 'test': command = '/bin/ls /doesnotexist /bin/echo hello', } Cheers, Paul -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/4ec37575-1b26-4cdc-897e-9ada89aba757%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] Re: facter-1.7.3 and puppet-3.3.1 on OS X Mavericks 10.9
facter-1.7.4-rc1 is available and it looks like it works! Actually, it wasn't until 1.7.5 that the packages available from downloads.puppetlabs.com were fixed, but it really seems to work now. However, I have a problem with puppet on OS X 10.9. I'm using the latest packaged version 3.4.2. It may be a problem with the ruby and openssl configuration shipped with OS X 10.9, but I'm getting: Info: Creating a new SSL key for $fqdn Error: Could not request certificate: SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: (null) /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:918:in `connect' when running `puppet agent --test --verbose --debug --evaltrace --trace`. There are some results on the web about ruby failing because of a missing CA cert bundle, but the puppet master generated CA cert wouldn't be included anyway, so that isn't a solution in this case. Anyone have any other ideas? Cheers, Paul -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CANPS_M5vfAkAuTiytEG_GkB3XckAzk-kGXGXKPzix7CHAQ9uoA%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Re: facter-1.7.3 and puppet-3.3.1 on OS X Mavericks 10.9
Paul, that ssl error looks like the following post on puppet-users: https://groups.google.com/forum/#!topic/puppet-users/4-6EimF_-NY/discussion, which relates to SNI. Thank you for pointing me in the right direction. Adding a server alias to your puppetmaster vhost may resolve your problem. This is a change in ruby after 1.9.0, so it wouldn't have been in system ruby on OSX before mavericks. I can run the agent with --server puppet.$domain or by setting the server in the config file. But I had no success in adding aliases to my puppet/passenger/apache config. After trying to add the required apache directives (NameVirtualHost, ServerName and ServerAlias) and restarting apache, no puppet agents would communicate properly with the master. So I guess I'm going to go with server in puppet.conf for now. Thanks, Paul -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/05a3bc7f-eb38-4078-b681-4ea8b9863ba5%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: puppet nagios module integration
Hi, I'll try to answer, since I'm using the nagios_* -types in puppet. 1) Do we need to install nagios separately. Just using the nagios_* -types will not install nagios for you. But it is entirely possible to install nagios using puppet. There might even be such a module available, but I wrote my own, which is specific to our environment. 2) Can we manage nagios through puppet UI. No GUI-iterop as far as I know. Cheers, Paul -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/fe0ed70f-aa7c-4c6c-9f79-18523ebd175d%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] How to store bash command: output in a variable as array
Btw: the difference between exec and generate is that generate is executed right on the beginning of Puppet run No. The difference is that generate() is run on the master and exec on the agent: http://docs.puppetlabs.com/references/latest/function.html#generate Cheers, Paul -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/3d8c7c6c-fbef-45c3-a30b-594ab5b73be1%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Zone-file out of LDAP
Hi Steven, I want to put all the data, which is needed for my zone-files into OpenLDAP. Next I need a tool, which creates zone-files out of the information which is stored in OpenLDAP. Have you any idea how to do that? http://www.venaas.no/dns/ldap2zone/ or https://github.com/ptman/ldap-tools (although this version is buggy and I haven't gotten around to updating it). Cheers, Paul -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/5474aefe-f399-47ad-96f6-ee965cfdf3e3%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] facter-1.7.3 and puppet-3.3.1 on OS X Mavericks 10.9
It's the same issue as this: https://projects.puppetlabs.com/issues/18205 Thank you for digging it up for me. Somehow google just failed me. It seems to be fixed already but not included in the current release version. Building Puppet and Facter from source resolves this issue so I'd expect it to be fixed in near future. Are you saying that no official released packages from PuppetLabs work on OS X 10.9? And the fix is to be released on Puppet 3.4.0? For which no release date is set and there seems to be at least 3.3.2 before 3.4.0 will come out. Cheers, Paul -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/e86bff0a-72e1-4dc8-a1a2-6878f27b4dc3%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] facter-1.7.3 and puppet-3.3.1 on OS X Mavericks 10.9
Hi, Is anyone else getting this: $ facter /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- facter/application (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require' from /usr/bin/facter:72:in `main' $ puppet /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- puppet/util/command_line (LoadError) from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require' from /usr/bin/puppet:3:in `main' Both installed from packages which were downloaded from http://downloads.puppetlabs.com/mac/ Cheers, Paul -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/0f6bf066-6afd-4db5-8ab1-c6db16afc457%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: FW: parameters to a defined type from the puppet console
I can't use the same class with different parameters for the same node Classes can only be declared once per node. If you want multiple somethings per node, you need defined types. Would something like this work? define foo($param) { notice { $param: } } node example { foo { 'test1': } foo { 'test2': } } Cheers, Paul -- 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 group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: puppet-chocolatey error
I think puppet does not provide the support for chocolatey. Not out-of-the-box, but https://github.com/chocolatey/puppet-chocolatey adds that support. Cheers, Paul -- 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 group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Resolving duplicated resources
Hi, It seems there are a few ways to remedy this, such as defining a new class for the mod_ssl packagehttps://groups.google.com/d/msg/puppet-users/julAujaVsVk/EQAk3HrpwAIJand including that class in both modules. However, I'd like to figure out if it's possible to rectify this situation without modifying either module. I've tried in vain to use many different permutations of require and - for resource ordering to ensure that the puppetlabs-apache module gets loaded first, but I just can't manage to get it to work. it seems no matter what I do, the rvm module is loaded first, which causes the puppetlabs-apache module to fail. So can anyone tell me how I can get around this problem? I'd very much like to modify the puppetlabs-apache module, but since they use an array to define the required mod packages, it makes it a little tricky to check if each one is defined before using it, since as far as I know it's not very straight forward to iterate over an array in the puppet DSL. Thanks for any suggestions! https://forge.puppetlabs.com/puppetlabs/stdlib -- check out ensure_packages(). Cheers, Paul -- 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 group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Same package name for gem and deb
I understand that from the Puppet point of view both are package resources with the same name. But from the human(my) side this doesn't make much sense. May I suggest a couple of workarounds? - Use fpm to convert the gem to a deb. - Use fpm to create a deb package called zookeeper-deb that only depends on the deb package zookeeper but doesn't contain any files. Cheers, Paul -- 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 group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Looping around a custom fact list
What I want Puppet to do is to loop through this list of potential kernels and install a specific driver package for all possibilities. Is this even possible without a custom provider ? I doubt it, unless you also export a installed_kernel_count = 3 fact. Cheers, Paul -- 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 group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Recommended method of running puppet periodically on mac os x
I just responded to you ask.puppetlabs.com post, but I'll duplicate the reply here. Thank you Peter, much appreciated. You wouldn't happen to know of a resource that collects puppet osx wisdom? Cheers, Paul -- 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 group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Recommended method of running puppet periodically on mac os x
Hi, I tried asking this question on ask.puppetlabs.com, but haven't got any responses yet: https://ask.puppetlabs.com/question/1975/recommended-method-of-running-puppet-periodically-on-mac-os-x/ Is there some source of puppet mac os x knowledge that I'm unaware of? I was kind of hoping that the 'osx' tag on ask.puppetlabs.com would become that. Cheers, Paul -- 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 group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Problems with the connection. Please help me!
$ puppet agent --server ipofthemaster --waitforcert 60 --test You must have hostnames for puppet. The SSL certificates are valid for some certain cn, which corresponds to hostname. The ip address doesn't match hostname, so SSL refuses the connection. Set up DNS or hosts files. Cheers, Paul -- 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 group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Puppet Management with Dual Boot Workstation
Hi, I'm trying to figure out what is the best way to handle a single system that dual boots with a puppet client running in each. In this case we are talking about Ubuntu 12.04 and Windows 8. Should I just copy the certificate from one OS to the other? Should I have a different certificate for each OS? In this case can they have the same hostname, as it is the same IP address for both OSes? Can I somehow use a different hostname for each that doesn't match DNS? I understand from a client point of view it probably doesn't matter a whole lot, but I am also using Foreman (and I imagine Puppet Dashboard would have a similar issue) and I'd like to be able to check on the facts and status of both Ubuntu and Windows at any given time, not just the OS that happens to be running at the moment. Puppet nodes are usually not identified based on hostname, but rather based on certificate name (which is usually the same as hostname). You most likely do not want to just copy the certificate over. I just run the initial puppet runs with --certname $hostname-$os.$domain to have separate certificates for each installation. Also my puppet.conf template has certname = %= @clientcert % , so that whatever is specified on the command line on the first run sticks. Cheers, Paul -- 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 group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Manage users with Winbind (Samba) installed
Hi, How can I fix it? I need to tell Puppet to remove only users with ID from 1000 to 299 (because from 300 starts winbind mapping) and not to try to remove winbind users Have you considered writing a suitable user provider? Cheers, Paul -- 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 group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Recommend a good tutorial on using Hiera as an ENC?
Hi, Can anyone recommend a good tutorial on using Hiera as an ENC? There's not that much to it. Maybe have a look at: http://blog.yo61.com/assigning-resources-to-nodes-with-hiera-in-puppet.html Cheers, Paul -- 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 group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Problems installing git for windows using Puppet
This might not be related to Puppet but it seems that the installation process hangs. I have tried this configuration on an empty w2008r2 VM. Any particular reason you're using a file and a exec resource? I have a samba share and the following: package { 'VLC media player 2.0.5': source = ${software::swpath}\\vlc\\vlc-2.0.5.exe, install_options = ['/L=1033', '/S'], } It's not git, but you might want to try it. Cheers, Paul -- 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 group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Announce: Puppet 3.2.1 Available
Did something change in the way Puppet outputs messages? Until this morning we used the following to run Puppet from Cron on all our nodes: But as of 3.2.1 this produces output on every Puppet agent run and that output is mailed out, resulting in hundreds of messages which contain nothing of importance (see below). This had worked fine for almost two years now, with output only generated on errors and problems (such as DNS not available). I'm having the same issue. I couldn't find a bug report about this. There is --verbose and --debug, but not --silent or --quiet. Should we maybe use --logdest? Anyway the behaviour has changed from 3.1.1 Cheers, Paul -- 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 group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Delete directory contents if this is older then ..
Hi, Is there any other puppet recommended way of doing that ? http://docs.puppetlabs.com/references/latest/type.html#tidy Cheers, Paul -- 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 group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Can anyone recommend a module with a resource managing a block of lines in a file?
Hi, On Sunday, May 5, 2013 2:25:02 AM UTC+3, Schofield wrote: I'm hoping a commonly used module that provides a resource for managing multiple contiguous lines in a file already exists and someone can point me to it. I want something like the file_line type in the puppet labs stdlib module but have it check multiple lines instead of just one. Have you looked at using templates? If not, then do that first. In case templates don't work out, maybe the concat module does: https://github.com/ripienaar/puppet-concat Cheers, Paul -- 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 group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Windows Puppet waits for CR, then warns Facter::Util::Resolution.exec with a shell built-in is deprecated
Found it: The two occurrences of %SystemRoot% should really be %SYSTEMROOT%. Fixed it, works now. Shouldn't environment variables be case-insensitive? What code is responsible for expanding those environment variables? Cheers, Paul -- 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 group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Windows Puppet waits for CR, then warns Facter::Util::Resolution.exec with a shell built-in is deprecated
Hi, How do I fix/disable this warning? It seems like you've added some extra facter facts? They seem to be implemented incorrectly. Remove the problematic one. Cheers, Paul -- 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 group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Remove msi from windows 7
Could someone help me to understand why the place absent, the package you are installing is not removed? package { 'mozilla': This is a wild guess, but the package title (name, whatever it's called) should match the item in the Programs and Features Control Panel. Try fixing that and see if the problem persists. Cheers, Paul -- 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 group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [Puppet Users] Re: Windows Firewall Question
Does anyone know of this provider? If not I can start to make one with netsh but it will probably take me a while I really suggest you do it via the proper firewall COM API, e.g. with powershell: http://stackoverflow.com/questions/11956291/how-can-i-add-a-widows-firewall-rule-with-a-custom-group-name . netsh doesn't expose the whole firewall API. Cheers, Paul -- 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 group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Windows Firewall Question
As someone who generally hates using execs unless I absolutely have to, I would recommend using the Puppet Labs registry module. I can dig out some examples tomorrow if you like. I'm a bit wary about prodding in the registry behind the back of windows firewall, but please tell me if it works. I wrote some idempotent powershell to control the firewall rules in windows. Cheers, Paul -- 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 group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Mounting windows fileshare
Hi! I am looking for a way of mounting a windows fileshare without using 'exec net use ...' and haven't found a type that supplies this functionality. https://gist.github.com/ptman/3968655 -- not pretty, but worked for me The windows documentation mentions that to use UNC paths you have to mount the drive first, but makes no mention of how to do this. Depends what you want to use them for. UNC paths actually work as the source parameter for the package type without mounting. At least with puppet 3.x, which I'm using. Cheers, Paul -- 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 group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: migrating from cfengine to puppet, node wrangling question
Hi Michael This works, but I'm not sure it's the best way about going about it. I'm trying to define host groups in my site.pp file in such a way that when puppet runs on my nodes, they know their functional role and are configured accordingly. May I suggest that you look into using a node classifier (ENC) or at least hiera to separate data from code? I have a module called 'role' with classes like 'workstation' and 'compute' which include other classes. Then I can just assign the class role::workstation or role::compute to a node. Cheers, Paul -- 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 group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: how to check whether a linux process is running?
Hi Oliver, if process A is running, do nothing. else mount share and install package A This doesn't really sit well with the declarative nature of Puppet. It would be better if your package pre-installation scripts were to cleanly implement this imperative procedure. Something like shut down service, mount, install, start service back up. If you really want to try doing this with puppet, look at exec and onlyif/unless ( unless = 'pgrep process' ) and dependencies. Cheers, Paul -- 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 group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: semi-standalone puppet mode
Hi Ivan, Had somebody invented something like that and how? Doesn't puppet do that right now? If it's unable to fetch a new catalog from master it uses the cached catalog that it has received previously. Cheers, Paul -- 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 group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[Puppet Users] Re: Puppetlabs nginx module
Isn't this pretty bad because other module that may include stdlib would cause an error? Have you considered adding an issue at github? Cheers, Paul -- 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/-/dDMN0PwDpd0J. 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] Re: Fileserver in standalone mode.
My workaround for now is to simply move the files to a module named files and reference them as puppet:///modules/files/path/to/file, but it seems like there might be a better solution. I don't know about better, but you can also use file:///... URIs in the source parameter. Cheers, Paul -- 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/-/C1qDjVbxRiwJ. 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] Re: Really long puppet runs...
I've got a 3.0.0 node on Ubuntu 12.04 talking to a 2.7.19 master on Ubuntu 10.04. Stop. That is not supported. Master must be newer or equal to client. -- 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/-/sBKj-WfdTwIJ. 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] Re: Setting up Java on Windows
Hi, Still struggling to set the Global PATH variable in a nice way. I set the path using PowerShell (a script which is deployed and executed by puppet), but I imagine you could do something similar with ruby and the win32 api: Function Set-Path { Param([Parameter(Mandatory=$true)][string]$component, [Parameter(Mandatory=$false)][string]$variable='path', [Parameter(Mandatory=$false)][string]$target='Machine') $path = [Environment]::GetEnvironmentVariable($variable, $target).split(';') if ($path -notcontains $component) { $path += $component [Environment]::SetEnvironmentVariable($variable, [string]::join(';', $path), $target) } } Cheers, Paul -- 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/-/8eWtz9QMboIJ. 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] Re: base64 within module
Hi Luca, I have to convert a string in base64 before placing it inside a template with puppet. Is there a function available and how? Puppet templates are embedded ruby, and you can do almost anything you can with regular ruby. So you the Base64 module from ruby: % require 'base64' % %= Base64.encode64('foobar') % Cheers, Paul -- 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/-/VGxscxdr3bgJ. 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] Creation of modifiable files via puppet
Is it possible then I should be running an exec to copy the file from the server and use the unless (file exists already)? exec { 'foobar': command = '/usr/bin/wget https://... -O /file/location', creates = '/file/location', } Cheers, Paul -- 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/-/8eoG3rgnbIcJ. 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 3.0.0 and Augeas on Ubuntu Lucid 10.04
Hi Eric, Thank you. I filled in some more detail, and started following the bug. Let's continue there. Cheers, Paul On Thursday, October 4, 2012 4:01:28 AM UTC+3, Eric Sorenson wrote: Hi Paul, I created a ticket to track this issue, thanks for posting the trace output and manifest. http://projects.puppetlabs.com/issues/16772 -- 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/-/3uiffjeeBA4J. 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 3.0.0 and Augeas on Ubuntu Lucid 10.04
Ubuntu released a backport of 0.3.0 into lucid-backports which will resolve the issue for you here: http://packages.ubuntu.com/lucid-backports/libaugeas-ruby Unfortunately upgrading the package did not solve the problem. Also the error message doesn't match the bug report. --trace gives: Error: /Stage[main]/Grub::Server/Augeas[grub-serial]: Could not evaluate: uninitialized constant Augeas::NO_LOAD /usr/lib/ruby/vendor_ruby/puppet/provider/augeas/augeas.rb:152:in `open_augeas' /usr/lib/ruby/vendor_ruby/puppet/provider/augeas/augeas.rb:342:in `need_to_run?' /usr/lib/ruby/vendor_ruby/puppet/type/augeas.rb:205:in `retrieve' /usr/lib/ruby/vendor_ruby/puppet/type.rb:685:in `retrieve' /usr/lib/ruby/vendor_ruby/puppet/type.rb:680:in `each' /usr/lib/ruby/vendor_ruby/puppet/type.rb:680:in `retrieve' /usr/lib/ruby/vendor_ruby/puppet/type.rb:693:in `retrieve_resource' /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:32:in `perform_changes' /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:133:in `evaluate' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:49:in `apply' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:84:in `eval_resource' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:104:in `evaluate' /usr/lib/ruby/vendor_ruby/puppet/util.rb:348:in `thinmark' /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime' /usr/lib/ruby/vendor_ruby/puppet/util.rb:347:in `thinmark' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:104:in `evaluate' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:383:in `traverse' /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:99:in `evaluate' /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:144:in `apply' /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:122:in `apply_catalog' /usr/lib/ruby/vendor_ruby/puppet/util.rb:179:in `benchmark' /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime' /usr/lib/ruby/vendor_ruby/puppet/util.rb:178:in `benchmark' /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:121:in `apply_catalog' /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:179:in `run' /usr/lib/ruby/vendor_ruby/puppet/agent.rb:45 /usr/lib/ruby/vendor_ruby/puppet/agent/locker.rb:20:in `lock' /usr/lib/ruby/vendor_ruby/puppet/agent.rb:45 /usr/lib/ruby/1.8/sync.rb:230:in `synchronize' /usr/lib/ruby/vendor_ruby/puppet/agent.rb:45 /usr/lib/ruby/vendor_ruby/puppet/agent.rb:119:in `with_client' /usr/lib/ruby/vendor_ruby/puppet/agent.rb:42 /usr/lib/ruby/vendor_ruby/puppet/agent.rb:84:in `run_in_fork' /usr/lib/ruby/vendor_ruby/puppet/agent.rb:41 /usr/lib/ruby/vendor_ruby/puppet/application.rb:175:in `call' /usr/lib/ruby/vendor_ruby/puppet/application.rb:175:in `controlled_run' /usr/lib/ruby/vendor_ruby/puppet/agent.rb:39:in `run' /usr/lib/ruby/vendor_ruby/puppet/application/agent.rb:338:in `onetime' /usr/lib/ruby/vendor_ruby/puppet/application/agent.rb:311:in `run_command' /usr/lib/ruby/vendor_ruby/puppet/application.rb:346:in `run' /usr/lib/ruby/vendor_ruby/puppet/application.rb:438:in `plugin_hook' /usr/lib/ruby/vendor_ruby/puppet/application.rb:346:in `run' /usr/lib/ruby/vendor_ruby/puppet/util.rb:500:in `exit_on_fail' /usr/lib/ruby/vendor_ruby/puppet/application.rb:346:in `run' /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:76:in `execute' /usr/bin/puppet:10 And the augeas definition from the manifest is: $grub_console = 'console serial' augeas { 'grub-serial': context = '/files/etc/default/grub', changes = [set GRUB_TERMINAL \'$grub_console'\, 'set GRUB_SERIAL_COMMAND \'serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1\'', 'set GRUB_CMDLINE_LINUX_DEFAULT ', 'set GRUB_CMDLINE_LINUX \'console=tty1 console=ttyS0,115200n8\''], } Cheers, Paul -- 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/-/yCsb2Vj6z-oJ. 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] Puppet 3.0.0 and Augeas on Ubuntu Lucid 10.04
Hi, My manifests used to work with 2.7.19 but after upgrading to 3.0.0 I keep getting: Error: /Stage[main]/.../Augeas[...]: Could not evaluate: uninitialized constant Augeas::NO_LOAD Anyone else had and solved this problem? On precise I just get: Warning: Augeas[...](provider=augeas): Loading failed for one or more files, see debug for /augeas//error output Cheers, Paul -- 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] Re: ssh keys - registering multiple keys onto a same remote account
Hi Hiu, key1=[ '', 'Y', 'ZZZ'] ... key = $key1, http://docs.puppetlabs.com/references/latest/type.html#sshauthorizedkey does not suggest that the provider would support an array for key. I suggest doing something like: $user = 'user' ssh_authorized_key { ${user}-key1: type = 'ssh-rsa', user = $user, key = $key1; ${user}-key2: type = 'ssh-rsa', user = $user, key = $key2; ... } or even a define: $user = 'user' $keys = [$key1, $key2, ...] define user_key() { ssh_authorized_key { $user-$name': type = 'ssh-rsa', user = $user, key = $name, } } user_key { $keys: } (My puppet code may well contain errors, but should give you the idea) Cheers, Paul -- 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/-/fbmfqVIH4FYJ. 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] Right approach to Windows installers
UNC paths is on the roadmap http://projects.puppetlabs.com/issues/8657 I'm using UNC paths with 2.7.19. Works fine. https://github.com/puppetlabs/puppet-docs/pull/100 Cheers, Paul -- 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/-/fYKs1KhYBE8J. 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] Re: Difference between puppet agent and puppetd
Hi Axel, `puppetd` is the old ( 2.6.0?) way to call the agent, and `puppet agent` is the new way. The old way is still supported, but support will probably be removed at some point. Cheers, Paul -- 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/-/01TD81g2gIAJ. 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] cwd dot folders
exec { myexectest: path= /bin:/usr/bin:/usr/sbin, cwd = /home/user/.ssh, creates= /home/user/.ssh/test.txt command =echo test test.txt, } http://docs.puppetlabs.com/references/latest/type.html#exec http://docs.puppetlabs.com/references/latest/type.html#exec Do you have provider set in some default Exec -block? If not, then the default is posix, not shell, which probably doesn't handle stream redirection. Cheers, Paul -- 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/-/r3iLc56hE58J. 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] Re: How to delete users from groups ?
So I can do it using membership = inclusive (instead of key_membership) You're right, I took a too quick look at http://docs.puppetlabs.com/references/latest/type.html Cheers, Paul -- 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/-/_IDdwPBLqGoJ. 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] Re: How to delete users from groups ?
Hi eduardo, Is there another way to do it ?. user { $username: ensure = present, key_membership = inclusive, groups = ['all', 'groups', 'except', '$group'], # full listing of all groups $username belongs to } or group { $group, ensure = present, attribute_membership = inclusive, members = ['all', 'members', 'except', '$username'], # full listing of all members of $group } Cheers, Paul -- 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/-/vByKYwcuRhoJ. 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] file_line type issue, possible bug
Depending on your sudo version you could also put snippets in /etc/sudoers.d. This has the advantage of allowing each class to manage its own sudoers file without any Puppet conflicts. Make sure to implement some kind of ordering for the snippets. From the man-page: Where there are multiple matches, the last match is used (which is not necessarily the most specific match). This has bitten me more than once. Cheers, Paul -- 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/-/48_3FfNYscMJ. 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] Re: Duplicate package resource solutions?
Hi Ryan, I searched through the forum and found a few related threads but no clear puppet sanctioned solution. We have several modules that require the same package, for example rsync or gcc. We usually solve these conflicts by making that package a standalone module. We don't want to have modules exist for the sole purpose of installing gcc. Initially we had a development-tools module that installed the RH equivalent of the Development Tools yum group. In some cases only a third of the packages were truly required, so this solution seems suboptimal. Have you taken a look at https://github.com/pdxcat/puppet-module-singleton ? Cheers, Paul -- 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/-/7uDzpucBFLUJ. 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] Re: Update .k5login with Puppet
Hi Dhaval, can you anyone suggest me how can i update .k5login to append new entry or remove existing line Can you use the file_line type in puppet stdlib? https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/lib/puppet/type/file_line.rb Cheers, Paul -- 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/-/-Vww20UWnY0J. 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] Re: Augeas Arrays
augeas{$port: There's a difference between $var and $var. With quotes the array is forced to a string. Cheers, Paul -- 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/-/ajim27vmNLUJ. 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] Re: Puppet master errors with stored configurations : sqlite3 instead of mysql
I'm using Passenger, so there is no need to restart puppet master (according to http://projects.puppetlabs.com/projects/1/wiki/Using_Passenger) Did you restart your webserver then? Or redeploy the passenger app http://modrails.com/documentation/Users%20guide%20Nginx.html#_redeploying_restarting_the_ruby_on_rails_application ? Cheers, Paul -- 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/-/iZnhsUZrP1YJ. 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] Re: 2 storedconfig questions, both Sshkey related...
I'm also having problems with exporting and collecting ssh keys. 1: Are complex searches just not supported? I want to simply do: Sshkey | tag == some_tag and type == rsa | (the type is mandatory, but this won't let me do complex searches, so i'm stuck only collecting the ones I want for this, where as i'd rather collect them all and export them as needed) I'm trying to avoid collecting some keys: Sshkey | hostname != 'banned' | but this results in only returning the local host ssh key and none of the ones that other nodes have exported to storedconfigs. Cheers, Paul -- 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/-/NUUVqRqg9Z0J. 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] Re: Removing lines from a file
Hi John I can see where 'file_line' will add a line but I don't know enough ruby to know, will it remove a line that does exist? 'ensurable' sounds like it can manage both 'ensure = present' and 'ensure = absent'. And sure enough, if you look into the provider: https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/lib/puppet/provider/file_line/ruby.rb there is code for removing the line as well. I would also recommend that you take a look at the awesome concat module: https://github.com/ripienaar/puppet-concat if you cannot manage the whole file easily using templates. Cheers, Paul -- 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/-/l2caIElWDu8J. 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] Re: Puppet Windows exec
Hi Jay, exec { 'ExecCreatedFolder': command = mkdir C:\PuppetOrdner\ExecCreatedFolder, } mkdir is a command implemented by the windows command processor cmd.exe, not a callable program. http://docs.puppetlabs.com/references/stable/type.html#exec states that the Windows provider can only call executables instead of giving commands to a shell. That said, have you tried something like 'command = cmd /c mkdir c:\test' ? Also, I hope you bring up mkdir purely for the sake of discussion, since file { 'C:/test': ensure = directory } works for creating directories. Cheers, Paul -- 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/-/Ih2d0TjkOYAJ. 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] Re: Removing lines from a file
One (hopefully) last question...How do I take the file_line.rb file and put it so puppet recognises it? Do I do that with a define or can I just take the file and place it somewhere for it to work? Read about modules ( http://docs.puppetlabs.com/guides/modules.html ) and use the puppet-stdlib module as a whole. Don't pick individual files. Paul -- 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/-/KcINS6R_zXQJ. 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] Re: Looping through all registered client nodes?
Hi, I'm looking to see if there's a way that I can set up a class on my puppetmaster node to loop through all of the defined nodes and add a hosts entry for the internal IP. I think I'm good with the actual adding of the entry, but I'm curious as to how to get access to all defined hosts and loop through their facts. Not really defined nodes, but it should be possible to use exported resources to export the ip address of each node and then collect them. http://docs.puppetlabs.com/guides/exported_resources.html Cheers, Paul -- 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/-/yfczszBhR40J. 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] Re: Capture the output of exec command
Hi Sateesh, I need to capture the output of an exec command in puppet manifest variable. How can I do this. You cannot, since the manifest is compiled into a catalog on the puppet master and then the catalog is sent to the agent, which can be on a different machine, and only then is the command defined by the exec run. Can you describe in more detail what you are actually trying to do? ( http://www.joelonsoftware.com/items/2008/01/22.html ) Cheers, Paul -- 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/-/tj3xSM8JgTAJ. 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.