Updated to Go 1.2

This commit is contained in:
Darren Coxall
2013-12-07 18:31:20 +00:00
parent 558777ce36
commit 5050f8fa5b
3 changed files with 3 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ hello
``` ```
## Choosing golang version ## 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 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 [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. haven't already setup the vagrant box or `vagrant provision` if the machine is already up.

View File

@@ -1,3 +1,3 @@
class { "golang": class { "golang":
version => "1.1.2" version => "1.2"
} }

View File

@@ -1,4 +1,4 @@
class golang ( $version = "1.1.2" ) { class golang ( $version = "1.2" ) {
exec { "download-golang": 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", 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",