Displaying 20 results from an estimated 2000 matches similar to: "machine classes"
2007 Apr 09
8
cert problem with client
I recently had a working puppet server serving around 4-5 clients. One of
the clients needed to be re-built and now only that client cannot connect.
puppetca --clean hostname did not work
So here is what I did on both the server/client I removed /var/lib/puppet/*
Then I restarted the server via
puppetmasterd --mkusers --verbose
I then connect in via the client with
/usr/bin/ruby
2008 Nov 10
2
1 command ssh session
I wrote a patch to bash to log commands.. Now when I run the following
command
ssh user at hostname.com w
It never seems to spawn a bash session. Is there some ssh internal shell
that handles commands getting passed in like this?
Thanks
Mike
2005 May 13
2
not deleting from the root
I have a bit of an issue with rsync. I am using to keep directories in
sync via another server for backup.
Here is the server config
[w1]
path = /w1
comment = w1 web dir
[w2]
path = /w2
comment = w2 web dir
Now on the client i run this command
rsync -avv --delete --force domain.com::w1/ /w1/
It will NOT delete anything that is no on the server anymore.. for
example on the server/client there
2007 Apr 01
0
No subject
file. I don''t know why it will work for other hosts but these steps do not
work for this.. there are no extra outputs from using --debug
On 4/9/07, Atom Powers <atom.powers at gmail.com> wrote:
>
> On 4/9/07, Mike Zupan <hijinks at gmail.com> wrote:
> > I recently had a working puppet server serving around 4-5 clients. One
> of
> > the clients needed to
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
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"
}
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
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
2012 Aug 29
1
augeas and cron.allow
Hi.
I am having a few problems with augeas and need some help.
What I am trying to use is augeas to update the cron.allow file. I can get augeas to add the required name but I am having problems with getting it to add the name once.
augeas { "check_mk_cron.allow" :
context => "/files/etc/cron.allow",
# changes => "set
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
2007 Mar 18
1
A wish or possible?
Hi,
One thing I''d like to be able to do is this...
define sedfile ( $file = '''', $target = '''', $pattern = '''', $options = ''-i -n''
, onlyif = '''' ) {
case $file {
'''': { err ( "Require valid filename: ''$file''" ) }
}
case $target {
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 {
2010 Jun 30
7
augeas and sudo woes
The following function is based on code I found here in an earlier
thread.
define sudoer() {
augeas { "sudo${name}":
context => "/files/etc/sudoers",
changes => [
"set spec[last() + 1]/user ${name}",
"set spec[last()]/host_group/host ALL",
"set spec[last()]/host_group/command NOPASSWD: ALL",
"set
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
2010 Feb 18
7
Augeas pam.d argument checking
I''m trying to change the password complexity requirements in
pam.d/system-auth using augeas. I can append the values (lcredit=-1,
ucredit=-1, etc) onto the correct place, but if another value is
already present (i.e. lcredit=-2), the onlyif match statement doesn''t
seem to support checking regular expressions inside of strings. How do
I check that any numeric value exists in the
2009 Oct 26
17
Relation to DMTF's CIM
I was wondering how Puppet relates to the DMTF''s CIM. AFAICT there is
a clear connection between the two, but I see very little discussion
on the topic on the list.
Thanks,
Cameron.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to
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
2010 Dec 23
2
Multiple AllowGroups entries in sshd_config with Puppet and Augeas
Hi,
After extensively looking into puppet + augeas for managing the
AllowGroups in sshd_config, I came to the conclusion that it won''t
work as I expected :( So I''m sharing my thoughts here.
The main objective is allowing multiple groups per-node, depending on
what the security team wants. Since I want this to be dynamic, I
created a define in a class:
class ssh::server::config
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 31
4
Long processing time using Augeas
Hi!
I using Augeas to handle dump and passno for certain mount points in
/etc/fstab. Each mount point is defined as it''s own augeas block:
augeas { ''homeLV'':
context =>
''/files/etc/fstab'',
changes => [