similar to: What characters do you have to ''\'' escape in exec?

Displaying 20 results from an estimated 7000 matches similar to: "What characters do you have to ''\'' escape in exec?"

2008 Jul 30
6
Refreshonly question
Does anyone have a technique for performing an exec the first time puppetd runs but then reverting to refreshonly => true state for subsequent runs? The basic idea is: file { "/etc/foo": notify => Exec["bar"] } exec { "bar": command => "Do stuff to /etc/foo", refreshonly => true } Should I use a fact that is unset based on a
2006 Dec 14
11
Puppet and Cfengine Differences
Hello, I''ve recently begun looking at Puppet as an alternative to Cfengine and I have a couple of questions. 1) Besides the information posted on the Puppet website, are there any critical differences between Puppet and Cfengine? 2) Does Puppet allow for client-specific file text manipulation. For instance, in Cfengine I can add a line of text to a file if the line doesn''t
2007 Feb 06
31
Removing circular dependant RPM files with Package.
Hello, I just attempted to remove both the ypbind and the yp-tools packages using the package parameter with yum. As it turns out, both of these packages depend on each other. Is there a way of forcing package removal and, if there is not, is there a way of making all packages to be removed be collapsed into the same yum command? Either of these solutions would solve the problem with the
2007 Mar 05
1
How to add a custom function to return something to file => content
I''m having a heck of a time with this. Basically I want to write a custom function that returns a value to the file content type. Ex: file { /blah: content => do_stuff(option) } I looked at the wiki posting but just haven''t been able to figure out how to make this work. The first error that I get when I try to actually use ''return'' is: "return
2007 Jul 19
2
Problem to make service/package has installed and started before "exec" task
I am trying to manage MySQL DB with puppet. So I create a class and would like to set the mysql SQL root password at the beginning. However, the "exec" will run before mysql-server has installed or started which make "exec" failed. how can I make sure the package has installed/run before "exec" task? class mysql-server { package { "mysql":
2009 Aug 13
6
Mongrel Memory Usage
All, I''m trying to figure out the best way to estimate the amount of memory usage that will be taken up by Mongrel and I''m hoping that you have some estimates that can help me. I''m currently estimating the following: Memory Required = Number of running puppetmasters * size of manifests * number of clients managed The mongrel model doesn''t seem to *ever*
2007 Mar 07
2
Doing something ''on demand''
What techniques are people using to do particular tasks once in a great while? For example, usually you don''t want to automatically upgrade the kernel until it''s fully tested but, of course one day you will. How do you work through Puppet to perform this activity on an on-demand basis instead of a periodic job. Are you using state files like "if file X exists do Y"
2007 Jul 19
5
Perhaps greater integration with RedHat?
https://build-automation.108.redhat.com/ Just a thought that it might get some more press. Trevor
2007 Apr 18
4
Graceful recovery on bad config
Would it be possible to... ( I suppose that this is an enhancement request )... automatically do the following on a client-side manifest failure: 1. Wipe localconfig.yaml and state.yaml and try again (seems to fix most things for me) 2. Revert to a last known good configuration if all else fails. Thanks, Trevor _______________________________________________ Puppet-users mailing list
2009 Oct 08
3
quick split function question
With 0.25 we can use the split function to parse a string in to an array. In puppet how can I reference a single element of that array? $temp = "1,2,3,4" Then i''d lilke to do : $val = split($temp,'','')[0] Thanks, Matt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2007 Dec 19
7
Kerberos for authentication?
Greetings! Are there any plans of using Kerberos for authentication in addition to (or in place of) SSL certificates in Puppet? Kerberos provides mutual, cryptographically strong authentication. A number of different services are Kerberos-enabled (SSH, NFSv4 and HTTP are common examples), and thus use the same authentication mechanism system-wide. At our site, almost all services and users are
2007 Feb 06
14
Unless in exec doesn''t seem to be honored on notify.
This was a fun one to track down... I was trying to use the append_if_no_such_line script from the wiki and it was working fine EXCEPT when I threw a notify at it. The notify appears to completely ignore both unless and onlyif within the exec for some reason. If I put the same test in the actual command line, it works fine. Example: unless => "/bin/grep -Fqe ''$line''
2007 Jan 18
4
File type attribute "type"
I''m having a bit of trouble understanding what to do with the ''type'' attribute of ''file''. I would like to perform different operations on directories vs. files under the same structure, can ''type'' be used for this? Are there any other examples of doing this kind of thing? Thanks, Trevor
2006 Jun 30
7
Inspiring Web 2.0 Rails Sites?
Anybody know of any Rails-using web sites that really capture the essence of the nebulous Web 2.Oh from which ideas, instruction, and inspiration can be drawn? BTW, what exactly IS Web 2.0? Joe -- Posted via http://www.ruby-forum.com/.
2007 Feb 13
2
Scope question
If I do something like the following: class blah { File { mode => 111 } file { "/cheese": } } Will the File override stay within the class or break outside? Also, if I then do: class moo inherits blah { File { owner => bob } file { "/bobsfile": } } What will happen? Thanks, Trevor _______________________________________________ Puppet-users mailing
2007 Feb 27
2
Restricting host access to files
I suppose that this is a question about fileserver.conf but what I''m trying to do is to have something like the following in fileserver.conf: [$hostname] path /var/lib/puppet/files/privatefiles/$hostname.txt allow $hostname Basically, this would allow access to a file named <hostname>.txt for only the host to which it should be delivered. I''m not entirely sure
2007 Jan 24
3
Another ''found a bug'' problem - This time with user purging.
Ok, given the statement on the web page about unlesssystemuser under Resources ( http://reductivelabs.com/projects/puppet/documentation/typedocs.html#resources), I assume that users can be purged. However, when I attempt to do this with resources { user: purge => true, noop => true } and what I get is: err: Found a bug: private method ''split'' called for nil:NilClass.
2007 Jan 18
2
Remounting after changing mount options.
Unfortunately, this is another "I don''t yet know ruby" question, but I''m hoping that someone can help me out. I''ve just tried to write some mount options via puppet and I noticed that, while fstab is written, the managed mounts are not remounted to effect the stated changes. For instance: Original - /home, options: rw Puppet - /home, options: rw,acl
2009 Jul 13
7
puppetd no-daemonize
So I have been trying to run puppet once in my kickstart %post scripts but every time it detaches and daemonizes even though I have explicitly stated otherwise. Am I missing something? # rpm -q puppet puppet-0.24.8-1 # /usr/sbin/puppetd --onetime --no-daemonize --verbose --debug debug: Creating default schedules debug: Failed to load library ''shadow'' for feature
2007 Jul 27
2
Patch to tighten down the permissions and ownership in configuration.rb
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Attached is a patch which attempts to enforce ''proper'' permissions of all files controlled directly by the puppet processes. All owners and groups are explicitly set as are all permissions. The idea is that the Puppet process configuration files should be relatively tamper resistant and at least throw a warning that the