Displaying 20 results from an estimated 6000 matches similar to: "Using onlyif for Windows exec"
2007 Apr 05
2
URL check URL validity
Hi everyone,
I have a web app that at some point asks for a URL ... and i need to
check that url''s validity ... is there a way to do that in RoR...
- in C# i would to something along the lines of
HttpWebRequest hReq =
(HttpWebRequest)WebRequest.Create(url................);
HttpWebResponse hRes = (HttpWebResponse)hReq.GetResponse();
rCode = hRes.get_StatusCode()...etc
Any input is
2012 Mar 12
10
Use onlyif in EXEC
Hi guys!
I need configure one command exec with onlyif parameter.
I want test file size exist or no.
Ho i do this?
Tks in advanced.
Douglas
--
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
2012 Apr 23
3
How to check if an MSI has not been removed in Windows?
Hello,
I''m using the Package feature to perform the installation of MSI files
on Windows. However, if the user performing the uninstall the MSI, I''m
not having as require you to reinstall automatically. How can I do
this?
Thank you.
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to
2011 May 02
2
exec resource: negate onlyif condition
Hi,
today I''m stupid. How can I negate the test for execs onlyif?
I want to run the exec onlyif command returns 1.
regards, Andreas
--
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
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 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"
}
2013 Nov 06
4
augeas onlyif problem
I''m trying to make sure a specific user has a special ssh key used as his
identity file.
so I''m trying something like:
augeas{"user_second_key":
context => "/files/home/user/.ssh/config",
changes => [ "ins IdentityFile after
/files/home/user/.ssh/config/IdentityFile[last()]",
" set
2011 Jun 24
7
Different users within same exec
I have the following exec in my manifest :
exec { some_exec:
path => [ "/bin","/usr/bin","/usr/local/bin" ],
command => "EXECUTE COMMAND 1",
onlyif => "EXECUTE COMMAND 2",
logoutput => "on_failure"
}
I want that the "COMMAND 1" should be executed by "USER 1" and
"COMMAND 2"
2012 Jul 03
6
Using onlyif
Here''s what I''m using:
exec { "cert-fix":
command => "curl http://curl.haxx.se/ca/cacert.pem -o
/etc/pki/tls/certs/ca-bundle.crt",
onlyif => "test -e /etc/pki/tls/certs/ca-bundle.crt",
}
But it keeps on failing:
> [default] Running Puppet with /tmp/vagrant-puppet/manifests/acid.pp...
> Parameter onlyif failed: ''test -e
2012 Jul 09
11
manifest for files executable on windows
Hello Puppet Users,
I need a puppet master (Ubuntu) to push the executable files to the agent
(windows 7) and install those executables
I believe the manifest file should be set up to push such config to the
windows agent. I came up with something like this:
class wireshark {
exec { ''wireshark'':
command =>
2013 Sep 16
4
Executing command via puppet !
Hi,
Is it possible to get response of a command from puppet ?
For example if I run "nginx -t" it would give some details about the
configurations i.e. if configuration has some error then which file has the
error !
Regards
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving
2009 Dec 17
1
unless & onlyif for the exec
Hello,
Can I specify multiple onlyif''s and/or unless''s in an exec statement?
A quick look through the recipes didn''t find any...
Thanks,
-Roy
--
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
2010 Oct 06
3
Using Augeas to manage /etc/network/interfaces from Puppet
Hi,
Sorry for the broad distribution, I''m not sure who best can help me.
I''m trying to add a new interface stanza to /etc/network/interfaces.
With augtool, I can accomplish this with the following:
set /files/etc/network/interfaces/iface[last()+1] bond1
set /files/etc/network/interfaces/iface[last()]/family inet
set /files/etc/network/interfaces/iface[last()]/method dhcp
set
2011 Nov 01
12
What's the canonical way to enforce permissions/ownership on a directory subtree?
I''ve just tried this (we assume /opt/jetty-6.1.26 already exists):
file { "/opt/jetty-6.1.26":
owner => "jetty",
group => "users",
recurse => true,
}
... but it''s taking an *age*. What''s the Right Way?
Cheers, Robert.
--
You received this message because you are subscribed to the Google Groups
2013 Feb 14
8
Checking GIT updates
Hello all,
I''m using puppet to deploy my codebase from GIT. I have everything working,
but i currently don''t have any way to check to make sure there is actually
something TO deploy before it goes through the entire process of deploying
the code. I want to create a conditional that only re-deploys the code if
the revision actually changed.
So far, I can have it as part of
2012 Feb 16
5
Puppet on Windows
Hi,
I want to run Puppet on a Windows 2003 Server. I already have a
working Puppetmaster (Scientific Linux).
I installed Puppet on Windows like shown here:
http://projects.puppetlabs.com/projects/1/wiki/Puppet_Windows
This worked very well.
But when I want to run puppet.
puppet agent --test --debug
I get the following output: (I already tried different ruby and puppet
versions without
2012 Jul 25
7
cwd dot folders
Hi,
I am trying to
exec { myexectest:
path => "/bin:/usr/bin:/usr/sbin",
cwd => "/home/user/.ssh",
command =>"echo test > test.txt",
onlyif => "test -f test.txt"
}
it doesnt work any clues why? I think it cannot change directory to a DOT
directory
please HELP!!
--Nikos Hatzopoulos
--
You received
2010 Aug 31
2
Executing check times out
Hi,
Just recently two nodes begun to hang, I cant see that there have been
any changes in our manifest.
Debug output:
[...]
debug: //Node[X]/X[X]/Exec[create dir]: Executing check ''test \! -d /
dir''
debug: Executing ''test \! -d /dir''
[...]
Here it hangs for several minutes, executin the statement manually
works of course.
The manifest:
exec {
2010 Sep 06
6
augeas and /etc/securetty
Hi, I need to add one line to /etc/securetty, say it needs to be ttyS1. Do
not add it if ttyS1 already exists in file /etc/securetty.
How to achieve this using puppet module in puppet 2.5? This file is
different than the other examples using augeas, this one only has value per
line, not name-val pair.
Thanks,
Hai
--
You received this message because you are subscribed to the Google Groups
2013 Aug 28
3
Creating Windows services
Hello,
Documentation mentions that Windows service resource provider "can start,
stop, enable, and disable services".
Is it possible to create (register) a service using this provider?
I''m running stand-alone Puppet agent 3.4.2 on Windows.
Thanks,
Igor.
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To