From 5050f8fa5b7ee0cba4cb2f112474ee64650eda31 Mon Sep 17 00:00:00 2001 From: Darren Coxall Date: Sat, 7 Dec 2013 18:31:20 +0000 Subject: [PATCH] Updated to Go 1.2 --- README.md | 2 +- manifests/init.pp | 2 +- modules/golang/manifests/init.pp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 554eb22..c2edac3 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ hello ``` ## Choosing golang version -This repo is hardcoded to use 1.1.2 although this can easily be changed after cloning. If you want to use another version simply +This repo is hardcoded to use 1.2 although this can easily be changed after cloning. If you want to use another version simply change the `$version` parameter in `manifests/init.pp`. The version string is taken from the [golang downloads list](https://code.google.com/p/go/downloads/list). Once changed you can either call `vagrant up` if you haven't already setup the vagrant box or `vagrant provision` if the machine is already up. diff --git a/manifests/init.pp b/manifests/init.pp index 9567fa5..09f5c5c 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,3 +1,3 @@ class { "golang": - version => "1.1.2" + version => "1.2" } diff --git a/modules/golang/manifests/init.pp b/modules/golang/manifests/init.pp index c5cd376..70d4453 100644 --- a/modules/golang/manifests/init.pp +++ b/modules/golang/manifests/init.pp @@ -1,4 +1,4 @@ -class golang ( $version = "1.1.2" ) { +class golang ( $version = "1.2" ) { exec { "download-golang": command => "/usr/bin/wget -O /usr/local/src/go$version.linux-amd64.tar.gz https://go.googlecode.com/files/go$version.linux-amd64.tar.gz",