Hi folks,
I have the following resource on my test environ:
exec { "/bin/sed -i 's/^SELINUX=enforcing/SELINUX=disabled/'
/etc/selinux/config":
path => [ '/usr/bin', '/bin' ],
onlyif => "/bin/grep '^SELINUX=enforcing' /etc/sysconfig/selinux
2>/dev/null",
logoutput => true,
}
Whenever I run:
puppet agent --no-daemonize --test --environment development
I get the following:
debug: Exec[/bin/sed -i 's/^SELINUX=enforcing/SELINUX=disabled/'
/etc/selinux/config](provider=posix): Executing check '/bin/grep
'^SELINUX=enforcing' /etc/sysconfig/selinux
2>/dev/null'
debug: Executing '/bin/grep '^SELINUX=enforcing' /etc/sysconfig/selinux
2>/dev/null'
If I run these commands individually, it works fine. When I run through
puppet, it fails to get the file changes. Does anyone know why? Could it be
because of the --test switch, although it does not execute in --noop mode?
I appreciate any help
thanks,
-fred
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.