From e795114a216f6948bc44f973b45e96eba938c6b6 Mon Sep 17 00:00:00 2001 From: Longgeek Date: Thu, 26 Jun 2014 20:19:15 +0800 Subject: [PATCH] Update puppet coding style Change-Id: I99eb0b2ed2f78be179605595105bfc798897cd3e Closes-Bug: #1334627 --- .../config-scripts/example-puppet-manifest.pp | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/hot/software-config/example-templates/config-scripts/example-puppet-manifest.pp b/hot/software-config/example-templates/config-scripts/example-puppet-manifest.pp index a876c6d8..f2c8432a 100644 --- a/hot/software-config/example-templates/config-scripts/example-puppet-manifest.pp +++ b/hot/software-config/example-templates/config-scripts/example-puppet-manifest.pp @@ -1,12 +1,13 @@ -file {'barfile': - ensure => file, - mode => 0644, - path => "/tmp/$::bar", - content => "$::foo", +file { 'barfile': + ensure => file, + mode => '0644', + path => '/tmp/$::bar', + content => '$::foo', +} + +file { 'output_result': + ensure => file, + path => '$::heat_outputs_path.result', + mode => '0644', + content => 'The file /tmp/$::bar contains $::foo', } -file {'output_result': - ensure => file, - path => "$::heat_outputs_path.result", - mode => 0644, - content => "The file /tmp/$::bar contains $::foo", -} \ No newline at end of file