To make "go get" work in most cases you need either git or mercurial installed to clone the dependencies. Now the golang class will install these but the requirement to update aptitude (on debian based machines) is not a concern for the golang class and so is handled outside of the class.
16 lines
199 B
Puppet
16 lines
199 B
Puppet
stage { "prepare":
|
|
before => Stage["main"],
|
|
}
|
|
|
|
class setup {
|
|
exec { "update-aptitude":
|
|
command => "/usr/bin/apt-get update -y",
|
|
}
|
|
}
|
|
|
|
class {
|
|
"setup":
|
|
stage => prepare;
|
|
"golang":;
|
|
}
|