Displaying 20 results from an estimated 10000 matches similar to: "replacing mkdir -p"
2011 Nov 10
1
Managing /etc/fstab with puppet
Hey everyone,
I''m trying to figure out how to manage my /etc/fstab with puppet on
all my servers. Does anybody have an idea for me how to do? I tried it
with augeas but I didn''t like the results I got so far... here is what
I''ve tried:
define conf (
$id = "01",
$spec = " ",
$file = " ",
$vfstype = "
2013 Oct 28
1
inline_template private method `gets' called for false:FalseClass
Hi,
I am new to Ruby ERB and inline_template. Can anyone spot what''s wrong
with this inline_template?
$moddedContent = inline_template("<%= puts gets(nil).gsub(/one
two three/,\"\") /tmp/blah %>")
exec {
"/bin/echo ''${moddedContent}'' > /tmp/blah" :
}
When I try to apply it, I
2008 Sep 04
2
Ubuntu 8.04 Hardy Heron bridged networking xen connectivity loss
Last problem I had involved changing one character in my configuration
scripts. Really easy once someone showed me what was wrong.
Well I think this issue is just the same. The moment I used apt to
install the Xen kernal and tools I lost internet connectivity. I have
been managing because I can restore connectivity be deleting the bridge
mpower@dodtsair:~$ sudo ifdown eth0
2011 Sep 28
6
I can't seem to create mountpoint and change permissions after mounting in 2.7.3
Hi,
I''m using puppet 2.7.3 on RHEL/CentOS and I have an issue which is now
a big blocking issue within my environment. What I''m trying to
accomplish wit puppet is a create a mountpoint, mount a filesystem on
it and install an application on that filesystems are set proper user/
group and permissions on it, but it fails big time.
The issues I currently run into are about 3
2013 Feb 11
3
Error: Could not find class <class> for <host> on node <host>
I''m a first time user that just installed Puppet 3.1.0 over the weekend and
hit a road block that I can''t seem to get across. I have a Linux master
(Mageia 2) and two Windows 7 clients. I was able to get basic recipes
working by putting the resources directly in the node definitions. Now I''m
trying to move to the next step and start using classes. I am *not*
2011 Jul 02
8
err: Could not retrieve catalog from remote server: Could not intern from pson: Could not convert from pson: Could not find relationship target "File[]"
I''m running Puppet 2.7.1 on the master as well as the agent and just
received a new error which doesn''t actually reference a module or a file, so
I''m somewhat stuck as to how to debug this. Any pointers?
The error is err: Could not retrieve catalog from remote server: Could not
intern from pson: Could not convert from pson: Could not find relationship
target
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 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.
2013 Jan 19
3
Does a service resource autorequire its package resource?
I''ve seen a couple of instances where a service resource has failed with an
error because it''s
been evaluated before its corresponding package is installed. I can fix
this by adding an explicit
require to the service resource, or by just running puppet again, but I
thought that there would be
an implicit or automatic require from a service object to the associate
service
2012 Jul 05
1
Ruby DSL parameterized classes and defaults
I''ve been reading the Docs on this, and its not very clear.
I want to have a parameterized class that takes arrays and objects as
parameters.
I''m using puppet 2.6.16.
I define a hostclass like this:
hostclass :test, :arguments => { :param1 => "blah" } do
end
I call from Puppet DSL:
class {"test":
}
I get this as an error:
err: Could not
2006 Dec 01
3
"All resource specifications require names": wot?
Hi, everyone --
I downloaded puppet and have been playing with it. I''m using the RPM''s for RHE4 created by David (mentioned on the install page: http://people.redhat.com/dlutter/yum/rhel4/) with RHE''s ruby 1.8.1-7:
ruby-1.8.1-7.EL4.8
ruby-libs-1.8.1-7.EL4.8
ruby-devel-1.8.1-7.EL4.8
I''m sure this is an easy one; all the same, I''m stumped. Please
2011 Sep 12
1
Could not match
I am getting a error and do not understand why it is failing. There
output is below
puppet apply /etc/puppetlabs/puppet/modules/authconfig/tests/init.pp -
vvvvvv --noop --debug
info: Loading facts in iptables
info: Loading facts in serve
info: Loading facts in serve
info: Loading facts in iptables
debug: Executing ''cd /etc/puppetlabs/puppet && git rev-parse HEAD''
debug:
2013 Nov 14
5
Nested parametrized defines
Dear puppet wizards,
http://docs.puppetlabs.com/puppet/3/reference/lang_defined_types.html does not suggest to me that nested parametrized defines would be forbidden, hence I expected the following code to work:
add_to_ssh_authorized_keys.pp:
--------
define a::ssh_keys::add_to_ssh_authorized_keys($homebasedir="/home", $targetuser="root", $keyowner, $keyownername,
2008 Oct 08
10
The puppet equivalent of mkdir -p
Hi all,
I''d like to add a several directories and I can''t seem to do it with a
single "file" directive.
Say /home/jeff exists and I want to add /home/jeff/src/my/dir/path
I tried:
file { "/home/jeff/src/my/dir/path":
path => "/home/jeff/src/my/dir/path",
mode => 0755,
owner => jeff,
group => jeff,
ensure =>
2007 Feb 12
8
How to validate puppet manifests without actually executing puppet?
Hi,
I want to validate my puppet manifests before I check them into source
control. I just want to make sure that the manifest syntaxes are legal, not
to do any more complex testing - the checkin may be on my laptop and not on
the system that the manifests may be intended to run on.
Ideally I''d be able to do this from ruby code - and I did try to instantiate
some classes and override
2013 Jul 13
10
username/password combo for custom provider (couchbase)
Hi,
I''m trying to program custom type for managing Couchbase buckets.
Problem is that every RW operation to Couchbase cluster (creating,
deleting, resizing bucket) requires admin privileges (username/password).
Do you have any suggestion how should I pass the username/password to
provider? If I make it a param, then every resource of type
''couchbucket'' will need to
2008 May 02
4
Functions vs. Module Plugins vs. Facts
Hey all,
I am trying to get a modified hostname (converting "blah-1234567" to
"1234567") to use in my manifests and templates. I have it working for
templates by using Ruby (*<%= hostname.split(''-'').pop.downcase %>*) but I
haven''t been able to use it in manifests because they don''t process ERB.
The way I see it I could do one of two
2009 Apr 21
1
line wrap in R console under windows
I would like the R console to wrap lines at 80 cols.
It does not do so, even though I have used the Rgui Configuration
Editor to set the Console cols at 80 and the Pager cols at 80.
Please tell me how to set it up so I have word wrap.
Just to be clear: in older/other R versions, console input is wrapped
at 80 cols and so you have something that looks like
> blah blah blah blah blah blah blah
2011 Aug 25
2
replicate lines of data frame
Greetings!
I am just now learning to use R for my dissertation project. I need
to manipulate a lot of text and numeric data. I created a data frame
that has 7 columns and 127 unique rows. Now I need to replicate each
line 6 times and then later change values in the first 2 columns.
I am trying to figure out how to accomplish this. I think that I need
to use rep(my.df, each=6) but it does
2011 Feb 03
3
2.6.2 excluding an exported resource
I have the class below to export host entries.
However I wish to override the entry for my host to 127.0.0.1
So for all of the hosts other than foo.bar.com I would like them to
have the real IP address but for foo.bar.com I would like to just have
the loopback host entry. 2.6.2 doesn''t allow multiple tags and if I
put in another entry for localhost there is a collision.
Is there any