Re: [Puppet Users] Puppetmaster performance optimization/best practices?
Start by setting up passenger. I am always amazed why people even start with mongrel for anything but debugging. The packages from puppetlabs are there and are stable. They will setup the whole thing for you - you just apt-get install or yum install them. Also I am not sure if you will get better memory usage from puppetdb but it will be much faster for exported resources. Migration to puppet3 might also help although I will start with the others first. -- Nikola On Tue, Jul 02, 2013 at 10:09:42PM -0400, Jeff Zellner wrote: I've recently started to have a problem with my puppetmaster using more and more memory over a few days, and eventually hitting swap. Restarting the puppetmaster services puts things back to normal for a bit. (see: http://i.imgur.com/E8xPYqn.png) I'm running 2.7.11 on distro-standard ruby 1.8.7, with 4 mongrel puppetmaster processes, on a pretty standard Ubuntu 12.04 VM, puppetmasters are behind nginx. Nginx handles the files (ala: http://www.masterzen.fr/2010/03/21/more-puppet-offloading/). Running foreman on the same machine, though it's not used for much. Puppet is setup to use a remote MySQL db. We have ~200 servers in a single environment running against this puppetmaster, which doesn't seem like it should be a seriously taxing load, so having to restart the service occasionally seems like an indication I'm doing something wrong. What am I missing? Should I be using Unicorn? Should I be using a different Ruby? What should I be tuning or optimizing? Is there a good resource for puppetmaster setup best practices? Thanks! -Jeff -- 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. -- 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] variables inside variable names
I think that you are having a problem here because $java is not expanded/interpolated as a variable and the template solves it. You can safely use the fully qualified name and this should work: $java_home = ${java::jdk_1_7_u10::home} Of course if you want to use $java as a variable you will have to use a templates. If you tell us more about your usecase and setup - there are often better ways to do what you want - hiera comes mind first; also java::params class comes second with the home set as parameter for different setups -- Nikola On Tue, Jul 02, 2013 at 05:53:24PM -0700, Schofield wrote: Given class java::jdk_1_7_u10{ home=/usr/java/jdk-1.7.0-10 } $java = jdk_1_7_u10 $java_home = ${java::$java::home} I would like $java_home to be equal to /usr/java/jdk-1.7.0-10. Is there an elegant way to make this work? We currently use an inline template to make it work. java_home = inline_template(%=scope.lookupvar('java::${java}::home')%), But this has always felt like a hack to me so I am curious to know if there is a better way? Currently running puppet 3.0.0. -- 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. -- 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] Puppet for Cassandra cluster automation
I like to use fabric[1] for this. I always think that some things are better done with push tools like fabric instead of pull tools like puppet. Of course there are other tools that solve the same problem and are based on other languages - I just like python [1] http://docs.fabfile.org/en/latest/ -- Nikola On Tue, Jul 02, 2013 at 04:56:57PM -0700, Jingyan Wang wrote: Hi, I am using Puppet to set up (and later resize) a Cassandra cluster, where I would like to have the configuration changes applied immediately instead of after a certain time interval. Is MCollective the only method to push configuration changes from master to clients (since puppet kick is deprecated)? What are the possible ways to achieve this Cassandra deployment? Thanks! -Jingyan -- 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. -- 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] Re-create my.cnf when using Puppet MySQL module
You can use custom settings that will be put in /etc/mysq/conf.d/ and will be included in you setup by overriding any setting in my.cnf. Here is an example from our setup: mysql::server::config{ 'my-cool-settings': settings = { 'mysqld'= { 'max_connections' = '400', #the maximum number of open connections 'max_connect_errors' = '1000', # sane value because the default is 10 which is not enough at all! 'character-set-server'= 'utf8', #use utf8 by default 'innodb_buffer_pool_size' = $innodb_buffer_pool_size, #innodb buffer size } } } -- Nikola On Tue, Jul 02, 2013 at 04:42:56AM -0700, dusan.dorde...@clavistechnology.com wrote: Hi, I am using Puppet MySQL module from forge and everything works as expected. It downloaded and installed mysql, created database, set pass, etc. I wanted to make few configuration changes, so I changed mysql/templates/my.cnf.erb but it seems Puppet did not detected that change. What be the best way to trigger re-creation of my.cnf file ? Thanks, Dusan -- 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. -- 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] Passenger serving both direct and proxied clients (security standpoint)
Hi Puppetmasters, I have a working configuration of a standard passenger/puppet setup to which I added a second virtual host to be accessed only via reverse proxy (mod_proxy). Passenger and mod_proxy are on different servers. The scenario is: direct: client --(ssl)-- passenger:8140 proxied: client --(ssl)-- mod_proxy:8141 --ssl-- passenger:8141-(accessible only from proxy IP) I'm reviewing from a security stanpoint. AFAIK the setup should have the same level of security of standard passenger and standard balanced solutions. Direct virtual host (8140) has: SSLOptions +StdEnvVars RequestHeader set X-SSL-Subject %{SSL_CLIENT_S_DN}e RequestHeader set X-Client-DN %{SSL_CLIENT_S_DN}e RequestHeader set X-Client-Verify %{SSL_CLIENT_VERIFY}e proxied VH (IP limited access) has: SetEnvIf X-Client-Verify (.*) HTTP_X_CLIENT_VERIFY=$1 SetEnvIf X-Client-DN (.*) HTTP_X_CLIENT_DN=$1 SetEnvIf X-Forwarded-For (.*) REMOTE_ADDR=$1 proxy has: SSLVerifyClient optional SSLVerifyDepth 1 SSLOptions +StdEnvVars RequestHeader set X-SSL-Subject %{SSL_CLIENT_S_DN}e RequestHeader set X-Client-DN %{SSL_CLIENT_S_DN}e RequestHeader set X-Client-Verify %{SSL_CLIENT_VERIFY}e puppet.conf: ssl_client_header = HTTP_X_CLIENT_DN ssl_client_verify_header = HTTP_X_CLIENT_VERIFY Do you have similar setups, or have any suggestion? Thank you Regards Paolo -- 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: PSON and JSON
Seems that I had my Head in the sand... to close this: puppet sends a valid json structure, but there's just one key (values) returning a simle ruby hash: When having received a response ( with activeRessource or her) all it takes to get the values is: #Puppet is a module connected to my puppetmaster using the her gem. 2.0.0-p247 :023 Puppet.find(johndoe.local).values['uptime'] = 286 days thats it :) Am Dienstag, 2. Juli 2013 13:08:46 UTC+2 schrieb bjoern pohl: HI, i'm currently trying to connect a rails app using the her gem/library (since active ressource is gone since rails 4) to Puppet's REST API. Now, her or activeressource both speak json, while Puppet speaks pson, which should be nearly the same according to some posts here. Communication already works but it seems that the response objects are not decoded as they should. Is there any documentation around where the differences are? Google does not offer too much for pson :) BTW.: I've seen that there is a Ruby Puppet Module included since some releases, there's not much documentation around there, has anyone already used it? thanks best regards, Björn -- 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] How to: In nodes.pp - point node to hostnames in a file
Sounds like you might want to look at using an ENC - see: http://docs.puppetlabs.com/guides/external_nodes.html On 2 July 2013 19:30, Dax Jack cubef...@gmail.com wrote: I am working on a project that involves host names with now sequence to them. I would like my node hostnames in nodes.pp to point to a file with a list of these hostnames. Example: node {path/filename} { instead of the usual: node 'www1.example.com' { or node /^www\d+$/ { Can this be done? Can anyone show my an example of how this was achieved? Thanks in advance. -- 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. -- 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] How to restart Apache server instances (running on nodes) with Puppet MCollective ?
On 05/12/2013 09:50 PM, Shreejit Nair wrote: 1) How can I make puppet mcollective work together to call a puppet script placed on server to execute commands on other Nodes (In which puppet agent is installed) ? If you want to see what nodes respond to mcollective: # mco ping To see what agents a node supports: # mco rpc rpcutil agent_inventory -I hostname To restart a 'httpd' service on a single node: # mco rpc service restart service=httpd -I hostname 2) How can I manually restart more than one apache instances running on the Nodes using mcollective and puppet ? Use discovery filters: http://docs.puppetlabs.com/mcollective/reference/basic/basic_cli_usage.html#selecting-request-targets-using-filters -- 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] variables inside variable names
On Tue, Jul 2, 2013 at 5:53 PM, Schofield dbschofi...@gmail.com wrote: Given class java::jdk_1_7_u10{ home=/usr/java/jdk-1.7.0-10 } $java = jdk_1_7_u10 $java_home = ${java::$java::home} I would like $java_home to be equal to /usr/java/jdk-1.7.0-10. Is there an elegant way to make this work? We currently use an inline template to make it work. java_home = inline_template(%=scope.lookupvar('java::${java}::home')%), But this has always felt like a hack to me so I am curious to know if there is a better way? Currently running puppet 3.0.0. Try puppetlabs-stdlib getvar function. Nan -- 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: Weird encoding error: 0xF3 to UTF-8 in conversion from ASCII...
I've confirmed it's not the time/date sync. It's not a firewall. It's not the software version, it does not work in 3.0, 3.2.2 or even 3.2.3-rc1. Can it be the domain in which machines are? The windows one has no domain asociated. I don't see how can this relate to the error but... The error is this one: SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A This happens once the client cert is signed in the puppetmaster. El martes, 2 de julio de 2013 18:16:43 UTC+2, Álvaro Acción - CiTIUS escribió: A little update. I don't know the real reason behind the problem, but it seems that after changing the network address of the server the problem has suddenly dissapeared. The trace I pasted is the only clue I've got. Now I get a error when calling fork(), but it's a known bug and has already a temporal solution. And after that one, a SSL error. I'm not at work no so I'll try to update tomorrow with more info. Thanks! -- 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] Postfix/Dovecot modules supporting virtual domains/users?
Hello, In our environment, we are running Postfix/Dovecot with virtual domains and users. I tried searching on the Forge, but have been unable to come across a module that I don't believe supports this type of setup utilizing a MySQL backend. Is anyone able to recommend a module that exists that supports these features? Thanks -Brendan -- 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] Certificate errors
Hi all, I launched a Puppet service a few month ago and it did function pretty well for some time. Last week, I tried to clean old entries but I think I deleted too much information as I can no more synchronize my clients. I get a certificate error : *[root@REBITPUPPET01 ~]# puppet agent --test Warning: Unable to fetch my node definition, but the agent run will continue: Warning: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed: [certificate signature failure for /CN=rebitpuppet01.cegedim] Info: Retrieving plugin Error: /File[/var/lib/puppet/lib]: Failed to generate additional resources using 'eval_generate: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed: [certificate signature failure for /CN=rebitpuppet01.cegedim] Error: /File[/var/lib/puppet/lib]: Could not evaluate: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed: [certificate signature failure for /CN=rebitpuppet01.cegedim] Could not retrieve file metadata for puppet://rebitpuppet01.cegedim/plugins: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed: [certificate signature failure for /CN=rebitpuppet01.cegedim]* I tried a lot of things following the different threads but I only managed to mess a little bit more with my server :-( At least, I know my truststore should be wrong as *keytool -list -keystore /etc/puppetdb/ssl/truststore* and *openssl x509 -noout -in /var/lib/puppet/ssl/ca/ca_crt.pem -fingerprint* do not match. The only thing is that I do not have the first idea on how to solve this... Any idea ? Puppetmaster, dashboard puppedb are on the same server (Distro = RHEL5.9) I get the same error even on the puppetmaster server. Regards -- 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] puppet enterprise fresh install
So I just installed puppet enterprise 3.0 on a centos 6 server. Everything went smoothly during the install, and then I logged into the console and I get a error for the server it's self. Could not retrieve facts from inventory service: 400 Bad Request I could not figure out why the local server can not connect. Everything appears to be running smoothly. So to be clear all conponents are all installed on the same server. I have not added any additional clients except for the server it's self. Thanks -- 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] Deploy config file for custom reports
Hi, I've written a custom report which just makes an HTTP call to one of my servers so that I can log the event. The report installs itself when the puppetmaster puppets itself. The report script is copied from $MODULE_NAME/lib/puppet/reports/callback.rb into the puppetmaster's /var/lib/puppet/lib/puppet/reports directory. The problem is the config file. Is there a nice way for puppet to deploy this itself? We build puppetmasters automatically and it's annoying to have to copy the config file in each time. The puppetmaster has a heira file containing the necessary values, and I have a template and rule to put it in place: file { callback_report_processor_config: name = /etc/puppet/callback.yaml, content = template(${module_name}/etc/puppet/callback.yaml.erb), ensure = file, owner = puppet, group = puppet, } But this does not run early enough when the puppetmaster is puppeting itself. Is there a special location in the catalogue I can put the config file so that it is installed properly like the report script. I'm running puppet 2.7. Thanks, Dan -- 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] Postfix/Dovecot modules supporting virtual domains/users?
On 7/3/2013 9:08 AM, Brendan Murtagh wrote: Hello, In our environment, we are running Postfix/Dovecot with virtual domains and users. I tried searching on the Forge, but have been unable to come across a module that I don't believe supports this type of setup utilizing a MySQL backend. Is anyone able to recommend a module that exists that supports these features? https://forge.puppetlabs.com/thias/postfix looks the most complete and has some support for db driven virtual hosting though it is far from complete. Also doesn't appear to deal with permissions on files that contain credentials either or use the database to query virtual domains which makes for a painful config. Assuming you're familiar with Postfix/Dovecot virtual hosting I'd write it yourself. Should be fairly straightforward and a chance to use Hiera to drive the the config. I wrote an example around Postfix and Hiera a few months ago which might be interesting to you. https://ask.puppetlabs.com/question/271/a-heira-example-with-complicated-data/ Ramin -- 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] Packages on fedora19
Howdy! Probably this is being worked but just throwing it out there as f19 is already out, I guess the package for it will be soon available on http://yum.puppetlabs.com/fedora/ ? Thanks! -- Tony http://tonyskapunk.net -- 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] puppet module search using an HTTP proxy
Can anyone confirm that PE 3.0 supports this? I exported $http_proxy correctly, I beleive. $ puppet module search something Notice: Searching *https://forge.puppetlabs.com*https://forge.puppetlabs.com/... Error: Could not connect to *https://forge.puppetlabs.com*https://forge.puppetlabs.com/ There was a network communications problem The error we caught said '407 Proxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )' Check your network connection and try again Error: Try 'puppet help module search' for usage -- 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] Can a type-provider 'require' other files? Do all files in the type-provider tree get sent to the agent?
I'm turning an existing ruby script into a type-provider pair. My first desire was to simply 'require' the original ruby file in the new provider file. Unfortunately my ruby file doesn't get downloaded from master to agent. Is there something reasonably simple I can do to ensure that this file is available for provider.rb? Or should I transfer the original code into the provider.rb file and eliminate the issue? -- 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] Packages on fedora19
I was just wondering the same thing. My dev environment runs in Fedora 18 and I almost upgraded yesterday but thought some testing was in order first. I am likely to do what I did last time and try installing the versions from the previous release. I will be running up a Fedora 19 vm and install puppet from the Fedora 18 repo shortly and will let you know how it goes. If I can find srpms I may rebuild them and see how that goes. :) On 4 July 2013 06:04, Tony G. tony...@gmail.com wrote: Howdy! Probably this is being worked but just throwing it out there as f19 is already out, I guess the package for it will be soon available on http://yum.puppetlabs.com/fedora/ ? Thanks! -- Tony http://tonyskapunk.net -- 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. -- 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] Copy script from source - run it - delete it again
Hi, So from a guess based on the name of the script it installs some javascript file somewhere. Am I correct? With maybe something extra like optimising it afterwards? Is there any reason you can't optimize that file and get puppet to install it on your node? This will give you a whole lot more repeatability than using a script. You could even put in in an rpm or dpkg and put it in local repository and install it as a package. On 19 May 2013 21:01, flip flipk...@gmail.com wrote: Hi, i want to deploy a build script, run it and delete if afterwards. To deploy and run, i use this: file { /root/get_phantomjs.sh: ensure = present, mode = 0700, source = puppet:///modules/phantomjs/get_phantomjs.sh, require = Package[libfontconfig1-dev], } exec { /root/get_phantomjs.sh: creates = /usr/local/bin/phantomjs, require = File[/root/get_phantomjs.sh], } What would be an elegant way to delete the get_phantom.js file after the exec? flip -- 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. -- 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: Can a type-provider 'require' other files? Do all files in the type-provider tree get sent to the agent?
http://docs.puppetlabs.com/guides/plugins_in_modules.html put it in your modules's lib directory, and it will be transfered to client i think. On Thursday, July 4, 2013 6:23:11 AM UTC+8, Larry Fast wrote: I'm turning an existing ruby script into a type-provider pair. My first desire was to simply 'require' the original ruby file in the new provider file. Unfortunately my ruby file doesn't get downloaded from master to agent. Is there something reasonably simple I can do to ensure that this file is available for provider.rb? Or should I transfer the original code into the provider.rb file and eliminate the issue? -- 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: Can a type-provider 'require' other files? Do all files in the type-provider tree get sent to the agent?
Thanks, yes it was that simple. It would have worked first time if I just had put the file in the provider folder instead of the type folder. Doh! Cheers, Larry -- 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] Packages on fedora19
We will be working to add fedora 19 support to yum.puppetlabs.com in the coming month, and will probably have current packages built for f19 next week. I'll respond back to this thread when they are all ready. On Wed, Jul 3, 2013 at 4:24 PM, Pete Brown rendhal...@gmail.com wrote: I was just wondering the same thing. My dev environment runs in Fedora 18 and I almost upgraded yesterday but thought some testing was in order first. I am likely to do what I did last time and try installing the versions from the previous release. I will be running up a Fedora 19 vm and install puppet from the Fedora 18 repo shortly and will let you know how it goes. If I can find srpms I may rebuild them and see how that goes. :) On 4 July 2013 06:04, Tony G. tony...@gmail.com wrote: Howdy! Probably this is being worked but just throwing it out there as f19 is already out, I guess the package for it will be soon available on http://yum.puppetlabs.com/fedora/ ? Thanks! -- Tony http://tonyskapunk.net -- 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. -- 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. -- Matthaus Owens Release Manager, Puppet Labs Join us at PuppetConf 2013, August 22-23 in San Francisco - http://bit.ly/pupconf13 Register now and take advantage of the Early Bird discount - save 25%! -- 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] Packages on fedora19
On Wed, Jul 3, 2013 at 4:24 PM, Pete Brown rendhal...@gmail.com wrote: I was just wondering the same thing. My dev environment runs in Fedora 18 and I almost upgraded yesterday but thought some testing was in order first. I am likely to do what I did last time and try installing the versions from the previous release. I will be running up a Fedora 19 vm and install puppet from the Fedora 18 repo shortly and will let you know how it goes. If I can find srpms I may rebuild them and see how that goes. :) As Haus said, we will try to get to these next week. I care deeply about Fedora, since that's what I run :) As an aside, all SRPMS are up on yum.puppetlabs.com already, so you shouldn't have much of an issue with rebuilds. On 4 July 2013 06:04, Tony G. tony...@gmail.com wrote: Howdy! Probably this is being worked but just throwing it out there as f19 is already out, I guess the package for it will be soon available on http://yum.puppetlabs.com/fedora/ ? Thanks! -- Tony http://tonyskapunk.net -- 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. -- 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. -- 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] Packages on fedora19
On 4 July 2013 14:06, Michael Stahnke stah...@puppetlabs.com wrote: On Wed, Jul 3, 2013 at 4:24 PM, Pete Brown rendhal...@gmail.com wrote: I was just wondering the same thing. My dev environment runs in Fedora 18 and I almost upgraded yesterday but thought some testing was in order first. I am likely to do what I did last time and try installing the versions from the previous release. I will be running up a Fedora 19 vm and install puppet from the Fedora 18 repo shortly and will let you know how it goes. If I can find srpms I may rebuild them and see how that goes. :) As Haus said, we will try to get to these next week. I care deeply about Fedora, since that's what I run :) Awesome! I am very happy to beta test in my dev environment . As an aside, all SRPMS are up on yum.puppetlabs.com already, so you shouldn't have much of an issue with rebuilds. Cool I shall see if I get enough spare time to run those up. On 4 July 2013 06:04, Tony G. tony...@gmail.com wrote: Howdy! Probably this is being worked but just throwing it out there as f19 is already out, I guess the package for it will be soon available on http://yum.puppetlabs.com/fedora/ ? Thanks! -- Tony http://tonyskapunk.net -- 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. -- 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. -- 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. -- 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.