Displaying 20 results from an estimated 10000 matches similar to: "Installing a lot of packages"
2009 Aug 30
3
restart puppetmaster when files change
I create this class pmaster in order to restart puppetmaster daemon
after /etc/puppet/puppet.conf file change.
class pmaster {
file { "/etc/puppet/puppet.conf":
ensure => "file";
}
service { "puppetmaster":
ensure => "running",
enable => "true",
hasrestart => "true",
subscribe => File [
2010 Dec 14
7
source /etc/profile
Hello ,
There is a way to source /etc/profile inside puppet on demand?
My problem is that I install Java, afterwards I set JAVA_HOME variable
in /etc/profile.
After Java is installed, a gem which depends on Java starts to
install ... but as it needs JAVA_HOME environment to be set, it fails.
I am not sure what can I do ...
Thank you,
Adrian
--
You received this message because you are
2009 Sep 08
1
variables on files
I have this configuration:
class monit {
# Installing packages.
package { "monit":
ensure => latest;
}
file {
"/etc/default/monit":
owner => "root",
group => "root",
mode => "0644",
source => "puppet:///monit/etc/default/monit",
}
file {
"/etc/monit/monitrc":
owner => "root",
group =>
2012 Jan 16
6
pip provider
I am running puppet 2.7.9 and using the pip provider.
The package gets/is installed but puppet installs it on every run. Do
other people run into this. I tried search bugs and the group and
have not seen any mention of it.
Chris
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to
2008 Jan 08
3
cfrun equivalent
Is there an equivalent to cfrun in puppet. On the cfengine master you
can do the command cfrun <hostname> which allows you to tell the
cfengine client to run. This is useful for immediately pushing
changes out immediately (or telling the client to pull).
Chris
2008 Apr 10
5
ldap trouble
I am trying to setup puppet for use with ldap. Following the page (http://www.reductivelabs.com/trac/puppet/wiki/LdapNodes
) I run ruby -rldap -e ''puts :installed'' with success, however ruby -
rpuppet -e ''p Puppet.features.ldap?'' fails with ruby: no such file to
load -- puppet (LoadError)
I imagine that it is related to how I have things installed. I am
2011 Aug 08
12
Hash Interpolation inside double quotes?
I''ve got this:
file {
''/opt/sugarsync/tomcat/tomcat-home/current'':
ensure => "tomcat-$config[''tomcat_version_server'']";
where $config[''tomcat_version_server''] was set with extlookup (the yaml
one), by loading:
---
tomcat_config:
tomcat_version_server: 6.0.20-1
tomcat_version_libs: 1.0-1
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
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
2011 Jun 16
7
Problem with usage of arrays
Hi there,
i can''t use array in puppet. Here is my codesnipplet:
$callapidata = [ ''wert1'',''wert2'']
notice $callapidata[1]
A puppetrun results in:
Could not retrieve catalog from remote server: Error 400 on SERVER:
can''t convert String into Integer at /etc/puppet/myenv/modules/
uc4client/manifests/init.pp:41 on node testnode
Thanks for your
2012 Jul 25
3
manifest variable with sed - problem
Hello,
i have a problem in my sudo manifest file, because in the variable $name
comes sometimes usernames like user.lastname, but i need for sudo
(includedir */etc/sudoers.d/*) file names with no dots (like user_lastname).
I need a new variable, where is the dots change by underscores.
My first try was like this, but it isn''t working well.
$name_underscore = "`echo $name | sed
2013 Apr 15
5
Using onlyif for Windows exec
Hello,
I am in the process of "trying out" Puppet, and so far, it is going really
well, and I can see a clear line of how we can use it internally.
I do have one question though with regard to the using the onlyif parameter
of the exec command (as per here
http://docs.puppetlabs.com/references/latest/type.html#exec).
Ideally, what I would like to do is to only run a PowerShell exec
2010 Oct 14
8
manipulating facter variable
I''m trying to manipulate the following facter variable:
ipaddress => 10.85.207.2
What I need is the second group of digits. If it''s 84 then location is
A, but if it''s 85 then location is B.
In puppet I couldn''t grab this second set of digits, but maybe there
is a way?
I''ve already tried to make a custom fact, but my ruby knowledge is
*ahem* pretty
2012 Apr 25
5
exec's onlyif parameter fails for a bash one-liner
I would like to ''exec'' an installation script ''onlyif'' an installation
directory is empty. I tried using following bash one-liner however it
didn''t work:
<code>
exec{$one_install_script:
require => File[$one_install_script],
onlyif => "[ \"$(/bin/ls -A $one_location)\" ] && exit 1 || exit
0"
}
2008 Oct 08
10
Puppet Augeas Plugin
Bryan -- I''m using the puppet augeas plugin at
http://git.et.redhat.com/?p=ace.git;a=blob;f=modules/augeas/plugins/puppet/type/augeas.rb;h=2346c37d724d7607ed4e09b0413700bec2b7cbed;hb=HEAD
I''m running into a behavior that I wouldn''t expect. I''d like to confirm
an entry in sysctl.conf by changing the value if necessary or appending
the key/value if it
2009 Jun 30
6
Variable named "memory" in templates
I tried to use a Puppet variable named "$memory" and access it from
a template, like this:
$memory = 4711
file {
"/tmp/test.txt":
content => inline_template("memory = <%= memory %>\n");
}
One would think that my file would contain "memory = 4711" after that,
but instead the memory variable seems to hold a
2009 Mar 02
31
Using Augeas type to update sshd_config's AllowGroups
Hey gang,
I seem to be having a brain disconnect on how to get the Augeas type to
manage things that have multiple values (i.e. an Augeas tree) via Puppet.
If I run this in augtool:
augtool> set /files/etc/ssh/sshd_config/AllowGroups/1000 sshuser
augtool> save
I see this in /etc/ssh/sshd_config:
AllowGroups sshuser
However, if I try this in an Augeas type:
augeas {
2011 Apr 21
6
ssh_authorized_key fails when home directory doesn't exist
Here is my situation:
1. We use Active directory (LDAP) to store all user info which is retrieved from linux
2. A home directory is not created until the first time the user logs into the linux system
I am using the ssh_authorized_key type to push out my ssh keys to every system. However, because I haven''t logged into every system at least once. Puppet errors out due to a missing
2012 Mar 27
1
Arrays from templates
Hi,
I am having an issue trying to use the inline_template function to
return an array. This is what I do:
$array = inline_template ("<%= a=[''a1'',''b2'',''c3'']; a %>")
notify {"array: ${array}":}
And that works, showing the typical comma-less string:
notice: /Stage[main]//Notify[array: a1b2c3]/message: defined
2011 Feb 02
11
How to include the Scope(...) in a generated string?
I''d like to include similar information that notice() spits out in a
file I am generating -- basically so that anyone looking at the
generated file (actually a file fragment) could trace it back to the
class that is generating the entry.
Using $name within the file fragment is the closest I am getting to
what I want -- is there anything better?
--
You received this message because you