Displaying 20 results from an estimated 5000 matches similar to: "ensuring apt-get update is run first"
2006 Aug 27
5
Re: preseeding files only on reinstall
On Aug 27, 2006, at 9:55 AM, Thorsten Sandfuchs wrote:
> hio,
> me again :)
>
> In Debian, there is a mechanism to preseed debconf (configuration-
> database for
> the system) with decisions, before installing a package. Debconf
> mussn''t ask
> the user then. I wrote this pp for preseeding-support:
[snip]
Very cool. Seems like that''s something that
2007 Sep 04
9
exec creates and subscribe
I have the following test case:
file { sendmail-conf:
path => "/etc/mail/${fqdn}.mc",
owner => "root",
group => "wheel",
mode => 0644,
links => follow,
source => "puppet:///sendmail/${hostname}.mc"
}
$mail_dir = "/etc/mail"
$cf_dir = "/usr/share/sendmail/cf/"
exec { build-conf:
command => "/usr/bin/m4
2013 Mar 12
2
Only running database_grant the first time.
I''m using puppet through Vagrant to manage my dev VM, and as part of that I
have a few database grants that I run after creating users, but when I
subsequently run vagrant up or provision these grants fail (because of some
changes I make to the mysql config after they have been created.)
I''m using database_grant to execute the grants, but there doesn''t seem to
be a
2008 Dec 02
5
[Bug 1543] New: ~C always opens command prompt on master session
https://bugzilla.mindrot.org/show_bug.cgi?id=1543
Summary: ~C always opens command prompt on master session
Product: Portable OpenSSH
Version: 5.1p1
Platform: All
URL: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=50754
1
OS/Version: Linux
Status: NEW
Severity: normal
Priority:
2012 Oct 02
3
PROBLEM : Cannot require an Exec
hello:
i currently am using Puppet to run some commands in a sequence. there are
two sequences of exec resources. we found that we cannot use require =>
Exec and it does not work at all as expected. here is some sample code.
exec { "exec-AAA":
command => "/bin/true",
returns => 0,
notify => Exec["exec-BBB"],
}
exec { "exec-BBB":
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
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''
2012 Sep 27
0
Retrieve initial content of files when using audit => content
Hi,
I want to audit some files on content and planned to do this with puppet
filebucket. Lets say for example that I have a list of audit_files as a
parameter from puppet dashboard with a list of files to audit.
Output from ENC for this particular parameter:
audit_files: "[\"/etc/passwd\",\"/etc/resolv.conf\", \"/tmp/mawi\",
2010 Aug 31
23
Puppet + APT, I am lost...
Hi,
For the past week, I have been trying to figure out the best way to do
package management with Puppet on an Ubuntu system. I have studied many
solutons I found on the web, but none of them seem to do exactly what I want.
Among other things, I have tried everything that is discussed here:
http://groups.google.com/group/puppet-users/browse_thread/thread/af7349171a5821a4/db96b809c97f6006
but
2007 Mar 31
1
convert plugin failing
I'm struggling to get the convert plugin working using the Debian etch
packages. When starting dovecot it was trying to create files in
/.temp.hostname... convert-plugin.c looks like it has a couple of
typos in it - it checks "mail" three times for NULL rather than mail,
user, home.
I changed this but it's getting called when these three items are set
to:
2012 Dec 26
2
problem with restart a service when a file changes
Hello,
I have problem with my class when the archive is changed and the service is
not restarted when i apply change and run the puppet agent, I have the next
error:
[..............]
* err: /Stage[main]/Spam_rule/Exec[zmamavisdctl]: Failed to call refresh:
/opt/zimbra/bin/zmamavisdctl returned 1 instead of one of [0] at
/etc/puppet/modules/spam_rule/manifests/init.pp:25*
[..............]
2010 Feb 06
4
why do I get ensure changed 'purged' to 'present' on a package when it is already installed
Hi all,
I have created a squid class that also installs squidGuard. When I
run puppetd I always get
notice: //Node[xxxx.xxxxxx.xxx]/squid/squid::install/
Package[squidGuard]/ensure: ensure changed ''purged'' to ''present''
even though the package is already installed - why is this change in
package status happening as it then triggers my exec resource which is
2007 Jun 02
6
exec subscribe refresh not working
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I''m trying to figure out why exec{} which subscribes to a file, doesn''t
get triggered when the file is touched by puppet. I''ve got the following:
exec {
"/usr/sbin/postmap /etc/postfix/checks/access":
refreshonly => true,
subscribe => File["/etc/postfix/checks/access"];
2007 Sep 13
3
Templates and undefined variables
Using puppet 0.23.2, I have a template where I wish to do something
like this:
<% if defined? some_variable %>
....
<% end %>
Ideally I''d like to tell these three cases apart:
a) defined to a non-empty value
b) defined to an empty value
c) undefined
However case c) causes problems - in
templatewrapper.rb::method_missing it causes an error to be thrown.
I''ve changed
2004 May 15
2
Re: [Logcheck-commits] CVS logcheck/src
hey todd,
looked again at that return value check merge:
@@ -557,7 +584,8 @@
# the same lines) and reduce CPU and memory usage afterwards.
debug "Sorting logs"
$SORT -m $TMPDIR/logoutput/* | uniq | sed -e 's/ *$//' \
- > $TMPDIR/logoutput-sorted
+ > $TMPDIR/logoutput-sorted \
+ ||error "Could not output to $TMPDIR/logoutput-sorted Disk Full?"
i guess
2012 Aug 08
2
Exec resource don't write file after the command
Hi all,
I''m trying to have the exec resource write a file after the command but it
don''t.
here is the resource declaration
class gepet {
notify { ''begin'':}
file { ''/root/essai/html'':
ensure => present,
content => "Wrote By Yves Nton",
notify => Exec[''test''],
}
exec { ''test'':
path
2007 Oct 08
2
Noop functionality
I''m thinking about how to set up the processes for Production puppet
runs now. Being ultra-conservative here, we''d like to see what would
happen before pressing the red button.
I can run in noop mode, and everything is evaluated but nothing is done.
A YAML report magically appears on the Puppetmaster which my script
parses and spits out something the management can read
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":
2013 Mar 14
4
exec resource not refreshed when subscribed resource changes
Hello,
I''ve created a little class which should unpack a 7z archive on Windows.
The class has a parameter for passing in the archive version, so that I can
trigger an update when a new version of the archive is available. A
simplyfied version looks like this (requires 7z):
class my_archive ($version = undef) {
file { ''version'':
path =>
2007 Dec 13
2
logoutput attribute on exec type
so here I am trying to track down why one of my execs isn''t working properly
and I notice in the wiki[1]the option on_failure for logoutput. Turns out
it does''t work (in 0.23.0)
err: Parameter logoutput failed: Invalid ''logoutput'' value "on_failure".
Valid values are true, false, debug, info, notice, warning, err, alert,
emerg, crit.
err: Could not