On Jun 8, 2011, at 11:01 AM, hyzhang wrote:
> Hi,
>
> I have a piece of puppet code. I want puppet do nothing if it is true.
> How do I do that? Of course this code would not code.
>
> exec { 'runlevel':
>command => $is_virtual ? {
>'false' => "/bin/sed -i 's/id:3:initde
On Wed, Jun 8, 2011 at 11:01 AM, hyzhang wrote:
> Hi,
>
> I have a piece of puppet code. I want puppet do nothing if it is true.
> How do I do that? Of course this code would not code.
>
> exec { 'runlevel':
>command => $is_virtual ? {
>'false' => "/bin/sed -i 's/id:3:init
Hi,
I have a piece of puppet code. I want puppet do nothing if it is true.
How do I do that? Of course this code would not code.
exec { 'runlevel':
command => $is_virtual ? {
'false' => "/bin/sed -i 's/id:3:initdefault:/id:
5:initdefault:/' /etc/inittab",
'