From 3baff19bef41d290661ba1eb25522d2a26a73a0c Mon Sep 17 00:00:00 2001 From: Darren Coxall Date: Wed, 1 Oct 2014 21:44:30 +0100 Subject: [PATCH] Correct indentation and alignment --- manifests/init.pp | 2 +- modules/golang/manifests/init.pp | 42 ++++++++++++++++---------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index aaf3d6e..15ba2ee 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,3 +1,3 @@ class { "golang": - version => "1.3.1" + version => "1.3.1" } diff --git a/modules/golang/manifests/init.pp b/modules/golang/manifests/init.pp index e3af706..986d9a4 100644 --- a/modules/golang/manifests/init.pp +++ b/modules/golang/manifests/init.pp @@ -1,29 +1,29 @@ class golang ( $version = "1.3.1" ) { - exec { "download-golang": - command => "/usr/bin/wget --no-check-certificate -O /usr/local/src/go$version.linux-amd64.tar.gz http://golang.org/dl/go$version.linux-amd64.tar.gz", - creates => "/usr/local/src/go$version.linux-amd64.tar.gz" - } + exec { "download-golang": + command => "/usr/bin/wget --no-check-certificate -O /usr/local/src/go$version.linux-amd64.tar.gz http://golang.org/dl/go$version.linux-amd64.tar.gz", + creates => "/usr/local/src/go$version.linux-amd64.tar.gz" + } - exec { "remove-previous-version": - command => "/bin/rm -r /usr/local/go", - onlyif => "/usr/bin/test -d /usr/local/go", - before => Exec["unarchive-golang-tools"] - } + exec { "remove-previous-version": + command => "/bin/rm -r /usr/local/go", + onlyif => "/usr/bin/test -d /usr/local/go", + before => Exec["unarchive-golang-tools"] + } - exec { "unarchive-golang-tools": - command => "/bin/tar -C /usr/local -xzf /usr/local/src/go$version.linux-amd64.tar.gz", - require => Exec["download-golang"] - } + exec { "unarchive-golang-tools": + command => "/bin/tar -C /usr/local -xzf /usr/local/src/go$version.linux-amd64.tar.gz", + require => Exec["download-golang"] + } - exec { "setup-path": - command => "/bin/echo 'export PATH=/vagrant/bin:/usr/local/go/bin:\$PATH' >> /home/vagrant/.profile", - unless => "/bin/grep -q /usr/local/go /home/vagrant/.profile ; /usr/bin/test $? -eq 0" - } + exec { "setup-path": + command => "/bin/echo 'export PATH=/vagrant/bin:/usr/local/go/bin:\$PATH' >> /home/vagrant/.profile", + unless => "/bin/grep -q /usr/local/go /home/vagrant/.profile ; /usr/bin/test $? -eq 0" + } - exec { "setup-workspace": - command => "/bin/echo 'export GOPATH=/vagrant' >> /home/vagrant/.profile", - unless => "/bin/grep -q GOPATH /home/vagrant/.profile ; /usr/bin/test $? -eq 0" - } + exec { "setup-workspace": + command => "/bin/echo 'export GOPATH=/vagrant' >> /home/vagrant/.profile", + unless => "/bin/grep -q GOPATH /home/vagrant/.profile ; /usr/bin/test $? -eq 0" + } }