Re: [Puppet Users] How to create / update resources at puppetmaster without restarting puppetmaster
Hi, You will need to provide more detail as to what you are doing. We have no idea what the following does: testclass.pp or testmanifest.rb Loosely speaking puppet will rescan files in /etc/puppet without the need to restart the master (depending on your version of puppet). Cheers Den On 02/02/2012, at 18:41, Waqar Aziz waqar.a...@pikessoft.com wrote: Guys, I am trying to add new resources to puppetmaster i am following steps below 1. Creating a testclass.pp in manifests/services directory 2. Trying to apply newly created class to the node using ruby script ie testmanifest.rb As a result of above steps i am getting error below err: Could not retrieve catalog from remote server: Error 400 on SERVER: Cannot find definition Class on node Please help how may i create new resources and use them without restarting -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Re: Is puppet right for us?
Thank you Jeff. This is what I am looking for. But is there any other tool where we can install on a private cloud rather than Amazon EC2. Thanks in advance, Sateesh B. Jeff McCune wrote: On Tue, Jan 31, 2012 at 9:08 PM, sateesh bbalasate...@gmail.com wrote: Thanks Jeff for your response. But I hope the URL's that you provided require Amazon account. But I need to do this in a provate cloud. I need to install the Openstack on newly created VM in our Private cloud. In chef we have a command with knife where we can provide the IP address of our newly created VM, credentials and the module that need to be installed on that plain Ubuntu VM. The chef server will install the specified module on that VM. Is there any way to do this using puppet? Yes, but a slight customization to cloud provisioner is necessary. The `puppet node install` command accepts an IP address and will install Puppet or Puppet Enterprise onto the system with that IP address. Cloud Provisioner uses SSH to log into the remote system and install Puppet. We stop there though. None of the installation scripts [1] are able to download a module and run Puppet using that module. You could take the puppet-community script [2] and copy it to a new name in the same directory. If you add the commands required to install the puppet module and run puppet against a manifest inside the module then this will accomplish your goal. For example: cat puppet-community-localcopy.erb #!/bin/bash ... provision_puppet # Install the Puppet Module tool gem install puppet-module # Install a module from the Forge cd /etc/puppetlabs/modules puppet-module install puppetlabs-stdlib puppet-module install puppetlabs-ntp # Do a puppet configuration run with the NTP class included in the configuration catalog puppet apply -v -e 'include ntp' With this custom script template you can install on the targ Hope this helps [1] https://github.com/puppetlabs/puppetlabs-cloud-provisioner/tree/master/lib/puppet/cloudpack/scripts [2] https://github.com/puppetlabs/puppetlabs-cloud-provisioner/blob/master/lib/puppet/cloudpack/scripts/puppet-community.erb -- Jeff McCune -- 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: Chef knife equivalent in puppet
Hi Cody, Probably that may also solve my problem. My requirement is I need to run a command line that takes the IP, user, password and module to be installed on that IP. By giving that command it should install that module on that IP. So, in chef after doing that command (it is knife bootstrap), the new IP will be installed with chef and registers with the server along with installing the specified recipe. In dashboard we can see what all the agents are associated to that server. Also, is there any Dashboard where we can manage the clients that are registered to the Puppet server. Thanks, Sateesh B. On Feb 2, 7:07 am, Cody Herriges c.a.herri...@gmail.com wrote: Sateesh, I think Nan's response isn't fully answering your question since it isn't clear how you are executing Chef. Reading your question I foresee that you are actually in fact running Chef Solo, knife is configured with an ssh key that is capable to logging into a specific machine, uploading a cookbook, and executing it? Your trying to implement the same workflow using Puppet's stand alone mode? If this assumption is correct than we can point you in a better direction. Nan's response would be relevant if you were using Chef Server vs. Puppet Master. Regards, -- Cody Herriges Professional Service Engineer - Puppet Labs pgp key: 0x5DB77142 @ pgp.mit.edu On Jan 31, 2012, at 8:58 PM, sateesh wrote: Thanks Nan for your response. So, can't we install the required module on a plain ubuntu machine using puppet? Only procedure is to install the Puppet client on the plain ubuntu machine and make it as a agent for the server and include the node code in the server. Am I right? or is there any other technique for that? Thanks in advance, Sateesh B. On Feb 1, 9:03 am, Nan Liu n...@puppetlabs.com wrote: On Tue, Jan 31, 2012 at 7:49 AM, sateesh bbalasate...@gmail.com wrote: Is there any tool like chef knife in puppet. My requirement is, I need to install a specified module on a plane ubuntu machine with a single line command as chef has with knife. In chef knife we will specify the IP, username, password, and the recipe to install on a plane new ubuntu machine. Which installs the chef and the specified module on the plane ubuntu machine. So the model isn't the same, puppet doesn't deploy the module on the agent, a catalog is compiled on the server and the catalog is what the client enforces. With that said, if you have a specific system in mind that you want to deploy a puppet module, on the master: node 'hostname' { include 'class_name' } If you use an ENC such as dashboard, you can use rake task or REST API to modify the system's class. HTH, Nan -- 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 athttp://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: Chef knife equivalent in puppet
Hi Cody, Probably that may also solve my problem. My requirement is I need to run a command line that takes the IP, user, password and module to be installed on that IP. By giving that command it should install that module on that IP. So, in chef after doing that command (it is knife bootstrap), the new IP will be installed with chef and registers with the server along with installing the specified recipe. In dashboard we can see what all the agents are associated to that server. Also, is there any Dashboard where we can manage the clients that are registered to the Puppet server. Thanks, Sateesh B. On Feb 2, 7:07 am, Cody Herriges c.a.herri...@gmail.com wrote: Sateesh, I think Nan's response isn't fully answering your question since it isn't clear how you are executing Chef. Reading your question I foresee that you are actually in fact running Chef Solo, knife is configured with an ssh key that is capable to logging into a specific machine, uploading a cookbook, and executing it? Your trying to implement the same workflow using Puppet's stand alone mode? If this assumption is correct than we can point you in a better direction. Nan's response would be relevant if you were using Chef Server vs. Puppet Master. Regards, -- Cody Herriges Professional Service Engineer - Puppet Labs pgp key: 0x5DB77142 @ pgp.mit.edu On Jan 31, 2012, at 8:58 PM, sateesh wrote: Thanks Nan for your response. So, can't we install the required module on a plain ubuntu machine using puppet? Only procedure is to install the Puppet client on the plain ubuntu machine and make it as a agent for the server and include the node code in the server. Am I right? or is there any other technique for that? Thanks in advance, Sateesh B. On Feb 1, 9:03 am, Nan Liu n...@puppetlabs.com wrote: On Tue, Jan 31, 2012 at 7:49 AM, sateesh bbalasate...@gmail.com wrote: Is there any tool like chef knife in puppet. My requirement is, I need to install a specified module on a plane ubuntu machine with a single line command as chef has with knife. In chef knife we will specify the IP, username, password, and the recipe to install on a plane new ubuntu machine. Which installs the chef and the specified module on the plane ubuntu machine. So the model isn't the same, puppet doesn't deploy the module on the agent, a catalog is compiled on the server and the catalog is what the client enforces. With that said, if you have a specific system in mind that you want to deploy a puppet module, on the master: node 'hostname' { include 'class_name' } If you use an ENC such as dashboard, you can use rake task or REST API to modify the system's class. HTH, Nan -- 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 athttp://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: Chef knife equivalent in puppet
Hi Cody, Probably that may also solve my problem. My requirement is I need to run a command line that takes the IP, user, password and module to be installed on that IP. By giving that command it should install that module on that IP. So, in chef after doing that command (it is knife bootstrap), the new IP will be installed with chef and registers with the server along with installing the specified recipe. In dashboard we can see what all the agents are associated to that server. Also, is there any Dashboard where we can manage the clients that are registered to the Puppet server. Thanks, Sateesh B. On Feb 2, 7:07 am, Cody Herriges c.a.herri...@gmail.com wrote: Sateesh, I think Nan's response isn't fully answering your question since it isn't clear how you are executing Chef. Reading your question I foresee that you are actually in fact running Chef Solo, knife is configured with an ssh key that is capable to logging into a specific machine, uploading a cookbook, and executing it? Your trying to implement the same workflow using Puppet's stand alone mode? If this assumption is correct than we can point you in a better direction. Nan's response would be relevant if you were using Chef Server vs. Puppet Master. Regards, -- Cody Herriges Professional Service Engineer - Puppet Labs pgp key: 0x5DB77142 @ pgp.mit.edu On Jan 31, 2012, at 8:58 PM, sateesh wrote: Thanks Nan for your response. So, can't we install the required module on a plain ubuntu machine using puppet? Only procedure is to install the Puppet client on the plain ubuntu machine and make it as a agent for the server and include the node code in the server. Am I right? or is there any other technique for that? Thanks in advance, Sateesh B. On Feb 1, 9:03 am, Nan Liu n...@puppetlabs.com wrote: On Tue, Jan 31, 2012 at 7:49 AM, sateesh bbalasate...@gmail.com wrote: Is there any tool like chef knife in puppet. My requirement is, I need to install a specified module on a plane ubuntu machine with a single line command as chef has with knife. In chef knife we will specify the IP, username, password, and the recipe to install on a plane new ubuntu machine. Which installs the chef and the specified module on the plane ubuntu machine. So the model isn't the same, puppet doesn't deploy the module on the agent, a catalog is compiled on the server and the catalog is what the client enforces. With that said, if you have a specific system in mind that you want to deploy a puppet module, on the master: node 'hostname' { include 'class_name' } If you use an ENC such as dashboard, you can use rake task or REST API to modify the system's class. HTH, Nan -- 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 athttp://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: How to specify the modules dependencies
On Feb 1, 12:23 am, sateesh bbalasate...@gmail.com wrote: Hi, I have following code in site.pp node default{ include abc include mno include xyz } when I trying to apply the modules are installed in parallel. No, they're not. The Puppet agent is single-threaded, so it never does anything in parallel. On the other hand, the relative order of application is undefined for classes and resources that have no ordering relationship between them. This is intentional. I need to run the mno, only after completing the abc, and xyz only after completing mno. But I have noticed that the statements in the modules are executed irrespective to the order specified. Do we have any feature like require in Exec to include the modules. The 'require' metaparameter is available for all resources, as are its friends 'before', 'notify', and 'subscribe'. Furthremore, if Class['mno'] always depends on Class['abc'] being applied first, on every node, then you can put require 'abc''' at the top of its body (this is different from the 'require' metaparameter). In that case, you would no longer need your node definition to 'include' abc, as 'include'ing mno would bring in abc automatically. The same applies to class xyz: it can 'require' one or both of abc and mno (regardless of what class mno does in this regard). Alternatively, you can specify order of application in your node definition by using the arrow operators. For example: Class['abc'] - Class['mno'] - Class['xyz'] John -- 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: Conditional copy of file
On Feb 1, 8:21 am, kashif kashif.a...@gmail.com wrote: Hi It may have been answered earlier but I could not find anywhere. My requirement is that I want to copy a file from server to agent in few conditions but don't want to touch file in rest of the condition class example { case $hostname { node1 : {$conf_file = 'file1'} node2: {$conf_file = 'file2'} } file { '/etc/network/test': ensure = file, source = puppet:///modules/example/ $conf_file, } } It is working but I want that in case none of the above condition is true then 'test' file should not be touched. But what is happening here that, if hostname is different from node1 or 2 then puppet creates a empty test directory in /etc/network/ folder. Any suggestion ? class example { case $hostname { node1 : {$conf_file = 'file1'} node2: {$conf_file = 'file2'} default: {$conf_file = ''} } if $conf_file != '' { file { '/etc/network/test': ensure = file, source = puppet:///modules/example/$conf_file, } } } Note that this leaves File['/etc/network/test'] *unmanaged* for nodes other than node1 and node2, which is quite a different thing from ensuring it absent or empty. You might want to consider those options too. Note also that the above will ensure at every Puppet run that the contents of /etc/network/test are exactly what the same as those of the master's specified file. If you don't want to keep the file contents synchronized with the master after the file is initially copied (or created some other way) then add replace = false to the File resource's parameters. John -- 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: How to create / update resources at puppetmaster without restarting puppetmaster
On Feb 2, 2:55 am, Denmat tu2bg...@gmail.com wrote: Hi, You will need to provide more detail as to what you are doing. We have no idea what the following does: testclass.pp or testmanifest.rb Loosely speaking puppet will rescan files in /etc/puppet without the need to restart the master (depending on your version of puppet). Yes, but also Puppet will not autoload manifest files from manifests/ services/, and I think not even from manifests/. If you put your manifests in those places then you need to 'import' them for Puppet to be able to see their contents. It would be far better, however, to put substantially all manifests into modules, following the standard module layout, so that the autoloader can find them. That could look like this: 1) testclass.pp goes in modules/test/manifests/ 2) an empty init.pp also goes in modules/test/manifests/ 3) testclass.pp contains a single class named 'test::testclass' Node definitions would then assign that class by include 'test::testclass' or possibly class { 'test::testclass': } John -- 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: Schedule for own resources?
On Feb 2, 5:18 am, Os ozzim...@googlemail.com wrote: Hello, I am testing some schedule configurations and was wondering if I can use the schedule type in my own defines? As far as I can claim from my own tests, this is not possible? For example, the schedule morning does not work with my self-written define my_crontab: # class crontab { schedule {morning: range = 8-9, } my_crontab{user-crontab: hostname = 'foobar001', schedule = 'einmal', } } # Am I missing something or is it impossible to use the schedule type with my own defines? You are missing something, I think. The 'schedule' metaparameter can be used with any resource, including those of defined types. Could it be as simple as the fact that you name your schedule 'morning', but assign a different, possibly missing, schedule 'einmal' to the resource? Anyway, you didn't specify what does not work means. What is the nature of the [mis]behavior you see? Is it possible that you have the wrong expectations? Schedules in Puppet limit when or how often resources are managed, but that's modulated by when and how often the node checks in to request a catalog. John -- 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: Schedule for own resources?
On Feb 2, 3:34 pm, jcbollinger john.bollin...@stjude.org wrote: You are missing something, I think. The 'schedule' metaparameter can be used with any resource, including those of defined types. Could it be as simple as the fact that you name your schedule 'morning', but assign a different, possibly missing, schedule 'einmal' to the resource? Anyway, you didn't specify what does not work means. What is the nature of the [mis]behavior you see? Is it possible that you have the wrong expectations? Schedules in Puppet limit when or how often resources are managed, but that's modulated by when and how often the node checks in to request a catalog. John Ah, I am sorry. You are absolutly right! I have a typo in my example. Actually I use the schedule morning in my resource. Perhaps some background is useful: the define my_crontab is using a cron type in the background. When I did some tests, I inserted the schedule in the cron part and it worked. But when I try to use the schedule directly in the call of the define my_crontab (like in the example), it does not work. I am expecting in the example above that the resource my_crontab{user- crontab} is only activated during 8 and 9'o clock, assuming there is a puppet run at this time. -- 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] Announcement: Geppetto 2.1.2 released
Hi, I am happy to announce that Geppetto 2.1.2 has been released and is available as an update from within Geppetto. If you do not already have Geppetto installed, start by downloading version 2.1.0 here https://github.com/cloudsmith/geppetto/downloads In release 2.1.2 * Code completion of variables and quick fixes based on closest matching names. Works in string interpolation too. * Turns on puppet nature automatically when opening editor on a .pp file * SVN and Git support are now separately updateable (and uninstallable). This enables users to switch to Subclipse (from the bundled Subversion) to get support for SVN 1.7. * Helps correct problems with the confusing addition and removal of hyphen as a legal character in variable names. These are now validated and quickfixes are available. * Save actions preferences that will automatically remove trailing whitespace from lines, replace all funky spaces (non breaking space, and all other variants of space) with regular space, and ensuring that file ends with a newline. These save actions are configurable for the workspace and projects can have individual (persisted) settings. * Preferences available for Potential Problems, and Stylistic Problems where it is possible to control if these checks should be made and if they are ignored, flagged as errors or warnings. * Checks added for selector expressions and case statements (default, duplicated and unreachable entries, etc.) * Improved validation: - Illegal assignments to numerical variables - false != false, true != true - Numerical operations on known non-numerical operands (e.g. 1 + 'hello') - Missing comma between entries improved (better message, and quickfix added) * Files external to Geppetto workspace can now be opened and edited. Geppetto links them to an automatically created special project (and unlinks them on close). This makes the files open in a reasonable context, and it is possible to navigate to them from error markers etc. This is not a substitute for having proper projects, but is very useful when just wanting to look at/edit/copy text from a file available in the filesystem. (Note that files in this special project resolve references against all other files in the same project). See https://github.com/cloudsmith/geppetto/wiki/Release-Notes for more detailed information about fixed issues. Please see http://cloudsmith.github.com/geppetto/faq.html for information if you run into problems updating. Checkout http://cloudsmith.github.com/geppetto/faq.html#2011/06/28/how-do-i-update if you don't know how to update. Regards - henrik -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Re: Chef knife equivalent in puppet
On Feb 2, 2012, at 5:18 AM, sateesh wrote: Hi Cody, Probably that may also solve my problem. My requirement is I need to run a command line that takes the IP, user, password and module to be installed on that IP. By giving that command it should install that module on that IP. So, in chef after doing that command (it is knife bootstrap), the new IP will be installed with chef and registers with the server along with installing the specified recipe. In dashboard we can see what all the agents are associated to that server. Also, is there any Dashboard where we can manage the clients that are registered to the Puppet server. Ah! So the end goal is to really just be able to bootstrap puppet on a machine, not necessarily run an arbitrary module? If that is the case you should look at the following module, https://github.com/puppetlabs/puppetlabs-cloud-provisioner. Yes it says it is for provisioning cloud instances but it is in fact two faces. One for launching aws nodes and another for bootstrapping Puppet, via SSH. Last I checked the install via SSH did require keys though, wouldn't allow for passwords to be given on the command line. I think there is already a feature request for passwords. -- Cody Herriges Professional Service Engineer - Puppet Labs pgp key: 0x5DB77142 @ pgp.mit.edu -- 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: /etc/init.d/mysql =fail mysqld=success
I'm having the same problem in Ubuntu Oneiric 11.10 64-bit. It seems puppet runs this command: debug: Service[mysql](provider=debian): Executing '/etc/init.d/mysql status' which outputs : $ /etc/init.d/mysql status Rather than invoking init scripts through /etc/init.d, use the service(8) utility, e.g. service mysql status Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the status(8) utility, e.g. status mysql mysql stop/waiting Using: status = '/usr/sbin/service mysql status', still doesn't solve the problem. I'm still confused.. On Oct 11 2011, 9:47 am, John Bower olympus.sta...@gmail.com wrote: Hello. This is my mysql-server.pp file, both master and client are runing ubuntu. class mysql-server { package { mysql-server: ensure = installed } package { mysql-client: ensure = installed } service { mysql: enable = true, ensure = running, require = Package[mysql-server], } file { /etc/mysql/my.cnf: owner = mysql, group = mysql, source = puppet:///modules/mysql-server/my.cnf, notify = Service[mysql], require = Package[mysql-server], } exec { set-mysql-password: unless = mysqladmin -uroot -psecret, path = [/bin, /usr/bin], command = mysqladmin -uroot password secret, require = Service[mysql], } exec { set-nagios-password: unless = mysqladmin -unagiostest -psecret, path = [/bin, /usr/bin], command = mysqladmin -unagiostest password secret, require = Service[mysql], } } --- When I run /etc/init.d/mysql start sql doesnt run Code: root@cloneubuntu:/var/log/mysql# date Mon Oct 10 19:32:56 PDT 2011 root@cloneubuntu:/var/log/mysql# /etc/init.d/mysql start Rather than invoking init scripts through /etc/init.d, use the service(8) utility, e.g. service mysql start Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the start(8) utility, e.g. start mysql start: Job is already running: mysql root@cloneubuntu:/var/log/mysql# cat /var/log/mysql/error.log root@cloneubuntu:/var/log/mysql# ps ax | grep sql 4797 pts/0 S+ 0:00 grep --color=auto sql root@cloneubuntu:/var/log/mysql# cat /etc/mysql/my.cnf [client] port = 3306 socket = /var/run/mysqld/mysqld.sock [mysqld_safe] socket = /var/run/mysqld/mysqld.sock nice = 0 [mysqld] user = mysql socket = /var/run/mysqld/mysqld.sock port = 3306 basedir = /usr datadir = /var/lib/mysql tmpdir = /tmp skip-external-locking bind-address = 0.0.0.0 key_buffer = 16M max_allowed_packet = 16M thread_stack = 192K thread_cache_size = 8 myisam-recover = BACKUP query_cache_limit = 1M query_cache_size = 16M log_error = /var/log/mysql/error.log expire_logs_days = 10 max_binlog_size = 100M [mysqldump] quick quote-names max_allowed_packet = 16M [mysql] [isamchk] key_buffer = 16M !includedir /etc/mysql/conf.d/ root@cloneubuntu:/var/log/mysql# However when i run mysqld alone, it works Code: root@cloneubuntu:/var/log/mysql# date Mon Oct 10 19:34:21 PDT 2011 root@cloneubuntu:/var/log/mysql# mysqld [1] 4815 root@cloneubuntu:/var/log/mysql# cat /var/log/mysql/error.log 111010 19:34:30 [Note] Plugin 'FEDERATED' is disabled. 111010 19:34:30 InnoDB: Started; log sequence number 0 44233 111010 19:34:30 [Note] Event Scheduler: Loaded 0 events 111010 19:34:30 [Note] mysqld: ready for connections. Version: '5.1.41-3ubuntu12.10' socket: '/var/run/mysqld/mysqld.sock' port: 3306 (Ubuntu) root@cloneubuntu:/var/log/mysql# ps ax | grep sql 4815 pts/0 Sl 0:00 mysqld 4830 pts/0 S+ 0:00 grep --color=auto sql root@cloneubuntu:/var/log/mysql# mysql -u root Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.1.41-3ubuntu12.10 (Ubuntu) Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql I cannot reinstall mysql, I have a feeling it's an issue with the init.d script or somethign along those lines. Please help :S -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] MCollective Cost?
We even package and freely distribute rpms for the the stable release. http://yum.puppetlabs.com/el/6/products/i386/ -- Cody Herriges Professional Service Engineer - Puppet Labs pgp key: 0x5DB77142 @ pgp.mit.edu On Feb 1, 2012, at 9:52 AM, R.I.Pienaar wrote: - Original Message - Someone told me yesterday that collective wasn't free, New to me. Has something changed in the past month, or are they looking at the commercial version? The web site must be somewhat confusing if a new user thinks it costs, but it doesn't. mcollective is Apache 2 licence, Puppet Enterprise has a commercial web dashboard that is not. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Re: /etc/init.d/mysql =fail mysqld=success
On Thu, Feb 2, 2012 at 4:39 AM, Hendy Irawan ceefour...@gmail.com wrote: I'm having the same problem in Ubuntu Oneiric 11.10 64-bit. It seems puppet runs this command: debug: Service[mysql](provider=debian): Executing '/etc/init.d/mysql status' which outputs : $ /etc/init.d/mysql status Rather than invoking init scripts through /etc/init.d, use the service(8) utility, e.g. service mysql status Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the status(8) utility, e.g. status mysql mysql stop/waiting Using: status = '/usr/sbin/service mysql status', still doesn't solve the problem. I'm still confused.. Is the service command returning appropriate exit code? Depending on your puppet version, try adding: service { 'mysql': ... provider = 'upstart', } Thanks, Nan -- 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: Network config module won't work. -Mac address errors
Thanks for your help. I removed the mac. The issue actually turned out to be I needed to do a dos2unix on my template files :{ On Jan 19, 10:38 am, Ger Apeldoorn i...@gerapeldoorn.nl wrote: If you omit the macaddress in the ifcfg-eth0 file, it should work properly if there are no persistent network configs. On Redhat, the 70-persistent-net.rules assigns a specific ethx device to a specific nic. Your 'ignoring' messages strongly point in the direction of such a mechanism. So if you have a template with a macaddress, the 70-persistent-net.rules file always assigns eth0 to it. The nic in the cloned machine (with a new mac) will be named eth1. I do not use puppet to configure the network, but made a script that combines a few parts of PE and configures the network too. (Seehttp://www.gerapeldoorn.nl/freelance/linux-automationfor the script..) Regards, Ger. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] ldap.conf modification problem
I hit the exact same issue, thanks for confirming this. Basically one run (other than cert request run) in kickstart is not possible for puppet to completely configure a node in LDAP environment. On 3/10/11, Daniel Pittman dan...@puppetlabs.com wrote: Actually, it is worse than that: it is libc, as used by Ruby, as used by Puppet; we are several layers abstracted from the NSS data source, and if that doesn't dynamically update we are totally stuck. Which I understand to be the root cause here. Regards, Daniel On Tue, Mar 8, 2011 at 12:48, Disconnect dc.disconn...@gmail.com wrote: If you are changing how the system sees users (eg before the run, 'id user' would fail) then the some provider is puppet. The workaround is to do two runs - a bootstrap base environment that sets up ldap, then a second run that uses those users. On Thu, Feb 17, 2011 at 6:50 AM, Felix Frank felix.fr...@alumni.tu-berlin.de wrote: On 02/15/2011 11:49 PM, Jay N. wrote: Hi Puppet Users, In my configuration, I modify in the pre stage the ldap.conf file which is originally generic and useless. Then, in the main stage, I try to modify the ownership of files with ldap users and groups and I have an error Cannot find user/group. I have done several tests : - just after the modification of the ldap.conf, I added an exec object : 'id any_ldap_user' and it worked but there were always the error when modifying the ownership of files - when I do a second puppet pass just after the first without any modification, it works and the modifications are applied It's like the modification of the ldap.conf wasn't taken into account. Any clue? Hi, apparently some provider reads your LDAP DB upon initialization, and cannot catch on to your changes mid-run. Is there a fact that changes when LDAP was configured (during your first run)? If so, you could ignore all the dependent resources if LDAP isn't ready prior to your run (puppet reads facts at startup, too). A custom fact will work for this as well. HTH, Felix -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- ⎋ Puppet Labs Developer – http://puppetlabs.com ✉ Daniel Pittman dan...@puppetlabs.com ✆ Contact me via gtalk, email, or phone: +1 (877) 575-9775 ♲ Made with 100 percent post-consumer electrons -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: Schedule for own resources?
On Feb 2, 9:10 am, Os ozzim...@googlemail.com wrote: On Feb 2, 3:34 pm, jcbollinger john.bollin...@stjude.org wrote: You are missing something, I think. The 'schedule' metaparameter can be used with any resource, including those of defined types. Hmm. That statement may have been overly optimistic. I think it's pretty clear clear cut that schedules *should* work for defined type instances, but perhaps Puppet is buggy in that regard. Could it be as simple as the fact that you name your schedule 'morning', but assign a different, possibly missing, schedule 'einmal' to the resource? Anyway, you didn't specify what does not work means. What is the nature of the [mis]behavior you see? Is it possible that you have the wrong expectations? Schedules in Puppet limit when or how often resources are managed, but that's modulated by when and how often the node checks in to request a catalog. John Ah, I am sorry. You are absolutly right! I have a typo in my example. Actually I use the schedule morning in my resource. Perhaps some background is useful: the define my_crontab is using a cron type in the background. When I did some tests, I inserted the schedule in the cron part and it worked. But when I try to use the schedule directly in the call of the define my_crontab (like in the example), it does not work. I am expecting in the example above that the resource my_crontab{user- crontab} is only activated during 8 and 9'o clock, assuming there is a puppet run at this time. I don't see anything wrong with your manifest or your expectations. I would submit a bug report / feature request. This seems to be related to, but distinct from, open (and accepted) feature request 5856: http://projects.puppetlabs.com/issues/5856. John -- 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: pass values to puppet-lvm
On Feb 2, 1:53 pm, Luke lutay...@gmail.com wrote: Thank you for your help. I am pretty new to puppet but am making some progress. One question how do I get the: lvm::volume {'setvolume': vg = 'myvg', pv = '/dev/sdb', fstype = 'ext3', name = 'mylv', size ='8G', ensure = 'present', } To work within a node? I can pass variables to classes easy enough within nodes but I can't seem to be able to get the nodes to do anything with defined resource types. Thanks again for the help. If you are writing node definitions by hand, for example in a nodes.pp manifest, then you should be able to just put that code snippet inside one or more of them: node 'mynode' { lvm::volume {'setvolume': vg = 'myvg', pv = '/dev/sdb', fstype = 'ext3', name = 'mylv', size ='8G', ensure = 'present', } } If you are using an external node classifier (ENC) such as Foreman or the Puppet Dashboard, however, then you need to know that the ENC interface does not support assigning ordinary resources to nodes. With an ENC, everything has to be bundled into classes. John -- 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] How do I track updates to forge modules?
Is there a way to watch modules and be notified if they are updated? I can't see anything obvious in the documentation Thanks John -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Catalog Service
On Wed, Feb 1, 2012 at 17:01, Nigel Kersten ni...@puppetlabs.com wrote: On Tue, Jan 31, 2012 at 10:53 AM, blomquisg blomqu...@gmail.com wrote: A while back I stumbled on http://projects.puppetlabs.com/projects/puppet/wiki/CatalogServiceArchitecture. What's the status of the Catalog Service Architecture? I couldn't find references to it on this list It's rather out of date, and we're going to update/delete that doc to make it clear. I had a look over it, and while it lives on in the history of the wiki, it is far enough from current thoughts that removing it was the better option. -- Daniel Pittman ⎋ Puppet Labs Developer – http://puppetlabs.com ♲ Made with 100 percent post-consumer electrons -- 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] Puppet Enterprise 2.0.2 is available
Hello, Puppet Enterprise users! Puppet Enterprise 2.0.2 is available. This is a maintenance release PE with bug fixes. The main issues addressed were improving upgrades on EL 4 and cloud provisioner packaging updates for debian/ubuntu. As always, if upgrading, it is recommended to upgrade your master and console servers first. As a current Puppet Enterprise user you can upgrade to this new version as part of your annual subscription. To see a detailed list of what's new in 2.0.2 see http://docs.puppetlabs.com/pe/2.0/welcome_whats_new.html We want to hear more about your experiences with Puppet Enterprise, whichever version you’re using. And if you have any questions about upgrading, be sure to get in touch with Support. So post here or get in contact with us directly. Thanks, Matthaus Litteken Release Engineer Puppet Labs -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Re: Upgrade 2.7.9 to 2.7.10; puppet client hangs
FYI I had this same problem after an upgrade from 2.7.9 to 2.7.10. I'm running a CentOS 5.7 OpenVZ VPS don't have access to update the kernel ; # uname -r 2.6.18-274.7.1.el5.028stab095.1 # facter puppetversion rubyversion virtual puppetversion = 2.7.10 rubyversion = 1.8.5 virtual = openvzve Following another thread related to a performance regression in puppet 2.7.10 ; http://projects.puppetlabs.com/issues/12310 I decided to remove puppet/util/instrumentation/listeners/process_name.rb test. I can confirm that this has resolved my problem. Regards, Grant mv /usr/lib/ruby/site_ruby/1.8/puppet/util/instrumentation/listeners/process_name.rb /usr/lib/ruby/site_ruby/1.8/puppet/util/instrumentation/listeners/process_name.rb.bad On 29 January 2012 08:07, Stefan Heijmans heijm...@rechtspraak.nl wrote: Tried the same puppet setup in my homelab, no problems after upgrading. Looking at the diffs, one of them was a kernel difference; - test environment RHEL57 2.6.18-274.12.1.el5 - homelabRHEL57 2.6.18-274.17.1.el5 Remembered this bug; http://projects.puppetlabs.com/issues/10418, it was updated with positive result on RHEL57 2.6.18-274.17.1.el5 kernel. So the problem is now fixed with a new kernel in the test environment. Stefan. -- 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/-/JJwRMD6U0nkJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: Chef knife equivalent in puppet
Hi Cody, Thanks for your response. As Specified by you I understood this way. Please correct me if I am wrong. 1) I will be having a ready new VM with Ubuntu installed. So I dont need to execute the step puppet node create --image ami-2342a94a -- keypair jeff --type t1.micro in the link https://github.com/puppetlabs/puppetlabs-cloud-provisioner. 2) In the step ssh -i ~/.ssh/jeff.pem r...@ec2-107-20-18-142.compute-1.amazonaws.com, I can replace the amazon url with my local VM IP. (Ex: xx.xxx.xx.xxx). 3) The command puppet node install --login root --keyfile ~/.ssh/ jeff.pem ec2-107-20-18-142.compute-1.amazonaws.com (replaced with my local IP) will install the puppet on the specified IP. 4) Command ssh r...@ec2-107-20-18-142.compute-1.amazonaws.com puppet --version will display the puppet version of the newly installed local IP. (Will the puppet is installed with the new version. And how can we specify the which version to install in this step.) The next step is now I need to install some modules that are located in the server on to newly created IP. I think in chef the server will copy on to the new VM in /tmp location and install the modules on that IP. After installing it will delete the copied module. So, is there any mechanism in Puppet. Also, in chef if we bootstrap any vm, that will be registered as agent to the server and logs what modules have been installed on that machine. There is a search functionality where we can get the list of IP's where a particular module has been installed (by writing a query in the recipe). Thanks in advance, Sateesh B. On Feb 2, 10:24 pm, Cody Herriges c.a.herri...@gmail.com wrote: On Feb 2, 2012, at 5:18 AM, sateesh wrote: Hi Cody, Probably that may also solve my problem. My requirement is I need to run a command line that takes the IP, user, password and module to be installed on that IP. By giving that command it should install that module on that IP. So, in chef after doing that command (it is knife bootstrap), the new IP will be installed with chef and registers with the server along with installing the specified recipe. In dashboard we can see what all the agents are associated to that server. Also, is there any Dashboard where we can manage the clients that are registered to the Puppet server. Ah! So the end goal is to really just be able to bootstrap puppet on a machine, not necessarily run an arbitrary module? If that is the case you should look at the following module,https://github.com/puppetlabs/puppetlabs-cloud-provisioner. Yes it says it is for provisioning cloud instances but it is in fact two faces. One for launching aws nodes and another for bootstrapping Puppet, via SSH. Last I checked the install via SSH did require keys though, wouldn't allow for passwords to be given on the command line. I think there is already a feature request for passwords. -- Cody Herriges Professional Service Engineer - Puppet Labs pgp key: 0x5DB77142 @ pgp.mit.edu -- 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: Schedule for own resources?
On Feb 2, 9:43 pm, jcbollinger john.bollin...@stjude.org wrote: Hmm. That statement may have been overly optimistic. I think it's pretty clear clear cut that schedules *should* work for defined type instances, but perhaps Puppet is buggy in that regard. I don't see anything wrong with your manifest or your expectations. I would submit a bug report / feature request. This seems to be related to, but distinct from, open (and accepted) feature request 5856:http://projects.puppetlabs.com/issues/5856. John Many Thanks for the reply and the link. I will keep that in mind, For now I will simply set the schedule in the cron-resource as a workaround. Regards, Martin -- 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.